提交 85dcb019 编写于 作者: C Charles Stoner

Fix typos

上级 7971a1e4
......@@ -2788,6 +2788,15 @@ internal class CSharpResources {
}
}
/// <summary>
/// Looks up a localized string similar to Length of String constant exceeds current memory limit. Try splitting the string into multiple constants..
/// </summary>
internal static string ERR_ConstantStringTooLong {
get {
return ResourceManager.GetString("ERR_ConstantStringTooLong", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Constant value &apos;{0}&apos; cannot be converted to a &apos;{1}&apos;.
/// </summary>
......@@ -2851,15 +2860,6 @@ internal class CSharpResources {
}
}
/// <summary>
/// Looks up a localized string similar to Length of String constant exceeds current memory limit. Try splitting the string into multiple constants..
/// </summary>
internal static string ERR_ContantStringTooLong {
get {
return ResourceManager.GetString("ERR_ContantStringTooLong", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to User-defined conversion must convert to or from the enclosing type.
/// </summary>
......
......@@ -4635,7 +4635,7 @@ To remove the warning, you can use /reference instead (set the Embed Interop Typ
<data name="WRN_AlignmentMagnitude_Title" xml:space="preserve">
<value>Alignment value has a magnitude that may result in a large formatted string</value>
</data>
<data name="ERR_ContantStringTooLong" xml:space="preserve">
<data name="ERR_ConstantStringTooLong" xml:space="preserve">
<value>Length of String constant exceeds current memory limit. Try splitting the string into multiple constants.</value>
</data>
</root>
\ No newline at end of file
......@@ -8650,7 +8650,7 @@ static void Main()
var err = compilation.GetDiagnostics().Single();
Assert.Equal((int)ErrorCode.ERR_ContantStringTooLong, err.Code);
Assert.Equal((int)ErrorCode.ERR_ConstantStringTooLong, err.Code);
Assert.Equal("Length of String constant exceeds current memory limit. Try splitting the string into multiple constants.", err.GetMessage(EnsureEnglishUICulture.PreferredOrNull));
}
......
......@@ -499,7 +499,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
ReportDiagnostic(diagnostics, node, ErrorFactory.ErrorInfo(ERRID.ERR_ZeroDivide))
ElseIf compoundLengthOutOfLimit
Debug.Assert(value.IsBad)
ReportDiagnostic(diagnostics, node, ErrorFactory.ErrorInfo(ERRID.ERR_ContantStringTooLong))
ReportDiagnostic(diagnostics, node, ErrorFactory.ErrorInfo(ERRID.ERR_ConstantStringTooLong))
ElseIf (value.IsBad OrElse integerOverflow) Then
' Overflows are reported regardless of the value of OptionRemoveIntegerOverflowChecks, Dev10 behavior.
ReportDiagnostic(diagnostics, node, ErrorFactory.ErrorInfo(ERRID.ERR_ExpressionOverflow1, operatorResultType))
......
......@@ -988,7 +988,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
'// Failure to do so may break customer code.
'// AVAILABLE 31451 - 31497
ERR_ContantStringTooLong = 31498
ERR_ConstantStringTooLong = 31498
ERR_MustInheritEventNotOverridden = 31499
ERR_BadAttributeSharedProperty1 = 31500
ERR_BadAttributeReadOnlyProperty1 = 31501
......
......@@ -2368,6 +2368,15 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
End Get
End Property
'''<summary>
''' Looks up a localized string similar to Length of String constant exceeds current memory limit. Try splitting the string into multiple constants..
'''</summary>
Friend ReadOnly Property ERR_ConstantStringTooLong() As String
Get
Return ResourceManager.GetString("ERR_ConstantStringTooLong", resourceCulture)
End Get
End Property
'''<summary>
''' Looks up a localized string similar to Constants must have a value..
'''</summary>
......@@ -2495,15 +2504,6 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
End Get
End Property
'''<summary>
''' Looks up a localized string similar to Length of String constant exceeds current memory limit. Try splitting the string into multiple constants..
'''</summary>
Friend ReadOnly Property ERR_ContantStringTooLong() As String
Get
Return ResourceManager.GetString("ERR_ContantStringTooLong", resourceCulture)
End Get
End Property
'''<summary>
''' Looks up a localized string similar to &apos;Continue Do&apos; can only appear inside a &apos;Do&apos; statement..
'''</summary>
......
......@@ -5250,7 +5250,7 @@
<data name="HDN_UnusedImportStatement_Title" xml:space="preserve">
<value>Unused import statement</value>
</data>
<data name="ERR_ContantStringTooLong" xml:space="preserve">
<data name="ERR_ConstantStringTooLong" xml:space="preserve">
<value>Length of String constant exceeds current memory limit. Try splitting the string into multiple constants.</value>
</data>
<data name="ERR_LanguageVersion" xml:space="preserve">
......
......@@ -1436,7 +1436,7 @@ Module M
Dim err = compilation.GetDiagnostics().Single()
Assert.Equal(ERRID.ERR_ContantStringTooLong, err.Code)
Assert.Equal(ERRID.ERR_ConstantStringTooLong, err.Code)
Assert.Equal("Length of String constant exceeds current memory limit. Try splitting the string into multiple constants.", err.GetMessage(EnsureEnglishUICulture.PreferredOrNull))
End Sub
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册