提交 e2646d8e 编写于 作者: O Omar Tawfik

Clean up

上级 c67bd7be
......@@ -11106,7 +11106,7 @@ internal class CSharpResources {
}
/// <summary>
/// Looks up a localized string similar to Provided Source Code Kind is unsupported or invalid: &apos;{0}&apos;..
/// Looks up a localized string similar to Provided Source Code Kind is unsupported or invalid: &apos;{0}&apos;.
/// </summary>
internal static string WRN_BadSourceCodeKind {
get {
......@@ -11114,6 +11114,15 @@ internal class CSharpResources {
}
}
/// <summary>
/// Looks up a localized string similar to Provided Source Code Kind is unsupported or invalid.
/// </summary>
internal static string WRN_BadSourceCodeKind_Title {
get {
return ResourceManager.GetString("WRN_BadSourceCodeKind_Title", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The language name &apos;{0}&apos; is invalid..
/// </summary>
......@@ -12140,6 +12149,15 @@ internal class CSharpResources {
}
}
/// <summary>
/// Looks up a localized string similar to Invalid value for a preprocessing symbol; not a valid identifier.
/// </summary>
internal static string WRN_DefineIdentifierRequired_Title {
get {
return ResourceManager.GetString("WRN_DefineIdentifierRequired_Title", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Delay signing was specified and requires a public key, but no public key was specified.
/// </summary>
......
......@@ -5021,9 +5021,15 @@ To remove the warning, you can use /reference instead (set the Embed Interop Typ
<value>Provided Documentation Mode is unsupported or invalid: '{0}'.</value>
</data>
<data name="WRN_BadSourceCodeKind" xml:space="preserve">
<value>Provided Source Code Kind is unsupported or invalid: '{0}'.</value>
<value>Provided Source Code Kind is unsupported or invalid: '{0}'</value>
</data>
<data name="ERR_BadLanguageVersion" xml:space="preserve">
<value>Provided Language Version is unsupported or invalid: '{0}'.</value>
</data>
<data name="WRN_BadSourceCodeKind_Title" xml:space="preserve">
<value>Provided Source Code Kind is unsupported or invalid</value>
</data>
<data name="WRN_DefineIdentifierRequired_Title" xml:space="preserve">
<value>Invalid value for a preprocessing symbol; not a valid identifier</value>
</data>
</root>
\ No newline at end of file
......@@ -318,7 +318,7 @@ public void CompilingCodeWithInvalidSourceCodeKindShouldProvideDiagnostics()
#pragma warning restore CS0618 // Type or member is obsolete
compilation.VerifyDiagnostics(
// warning CS8190: Provided Source Code Kind is unsupported or invalid: 'Interactive'.
// warning CS8190: Provided Source Code Kind is unsupported or invalid: 'Interactive'
Diagnostic(ErrorCode.WRN_BadSourceCodeKind).WithArguments("Interactive").WithLocation(1, 1));
}
......
......@@ -39,11 +39,11 @@ internal static SourceCodeKind MapSpecifiedToEffectiveKind(this SourceCodeKind k
case SourceCodeKind.Regular:
return SourceCodeKind.Regular;
#pragma warning disable CS0618 // SourceCodeKind.Interactive is obsolete
case SourceCodeKind.Script:
#pragma warning disable CS0618 // SourceCodeKind.Interactive is obsolete
case SourceCodeKind.Interactive:
return SourceCodeKind.Script;
#pragma warning restore CS0618 // SourceCodeKind.Interactive is obsolete
return SourceCodeKind.Script;
default:
throw new NotSupportedException($"SourceCodeKind {kind} not supported");
......
......@@ -12784,7 +12784,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
End Property
'''<summary>
''' Looks up a localized string similar to Provided Source Code Kind is unsupported or invalid: &apos;{0}&apos;..
''' Looks up a localized string similar to Provided Source Code Kind is unsupported or invalid: &apos;{0}&apos;.
'''</summary>
Friend ReadOnly Property WRN_BadSourceCodeKind() As String
Get
......@@ -12792,6 +12792,15 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
End Get
End Property
'''<summary>
''' Looks up a localized string similar to Provided Source Code Kind is unsupported or invalid.
'''</summary>
Friend ReadOnly Property WRN_BadSourceCodeKind_Title() As String
Get
Return ResourceManager.GetString("WRN_BadSourceCodeKind_Title", resourceCulture)
End Get
End Property
'''<summary>
''' Looks up a localized string similar to unrecognized option &apos;{0}&apos;; ignored.
'''</summary>
......
......@@ -5474,6 +5474,9 @@
<value>Provided Language Version is unsupported or invalid: '{0}'.</value>
</data>
<data name="WRN_BadSourceCodeKind" xml:space="preserve">
<value>Provided Source Code Kind is unsupported or invalid: '{0}'.</value>
<value>Provided Source Code Kind is unsupported or invalid: '{0}'</value>
</data>
<data name="WRN_BadSourceCodeKind_Title" xml:space="preserve">
<value>Provided Source Code Kind is unsupported or invalid</value>
</data>
</root>
\ No newline at end of file
......@@ -242,7 +242,7 @@ BC31030: Project-level conditional compilation constant '1' is not valid: Identi
#Enable Warning BC40000 ' Type or member is obsolete
CompilationUtils.AssertTheseDiagnostics(compilation, <errors>
BC37284: Provided Source Code Kind is unsupported or invalid: 'Interactive'.
BC37284: Provided Source Code Kind is unsupported or invalid: 'Interactive'
</errors>)
End Sub
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册