Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
e2646d8e
R
roslyn
项目概览
lwm1986
/
roslyn
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
roslyn
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e2646d8e
编写于
2月 15, 2017
作者:
O
Omar Tawfik
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Clean up
上级
c67bd7be
变更
7
显示空白变更内容
内联
并排
Showing
7 changed file
with
44 addition
and
8 deletion
+44
-8
src/Compilers/CSharp/Portable/CSharpResources.Designer.cs
src/Compilers/CSharp/Portable/CSharpResources.Designer.cs
+19
-1
src/Compilers/CSharp/Portable/CSharpResources.resx
src/Compilers/CSharp/Portable/CSharpResources.resx
+7
-1
src/Compilers/CSharp/Test/Semantic/Diagnostics/GetDiagnosticsTests.cs
...s/CSharp/Test/Semantic/Diagnostics/GetDiagnosticsTests.cs
+1
-1
src/Compilers/Core/Portable/SourceCodeKind.cs
src/Compilers/Core/Portable/SourceCodeKind.cs
+2
-2
src/Compilers/VisualBasic/Portable/VBResources.Designer.vb
src/Compilers/VisualBasic/Portable/VBResources.Designer.vb
+10
-1
src/Compilers/VisualBasic/Portable/VBResources.resx
src/Compilers/VisualBasic/Portable/VBResources.resx
+4
-1
src/Compilers/VisualBasic/Test/Semantic/Diagnostics/GetDiagnosticsTests.vb
...ualBasic/Test/Semantic/Diagnostics/GetDiagnosticsTests.vb
+1
-1
未找到文件。
src/Compilers/CSharp/Portable/CSharpResources.Designer.cs
浏览文件 @
e2646d8e
...
...
@@ -11106,7 +11106,7 @@ internal class CSharpResources {
}
/// <summary>
/// Looks up a localized string similar to Provided Source Code Kind is unsupported or invalid: '{0}'.
.
/// Looks up a localized string similar to Provided Source Code Kind is unsupported or invalid: '{0}'.
/// </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 '{0}' 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>
...
...
src/Compilers/CSharp/Portable/CSharpResources.resx
浏览文件 @
e2646d8e
...
...
@@ -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
src/Compilers/CSharp/Test/Semantic/Diagnostics/GetDiagnosticsTests.cs
浏览文件 @
e2646d8e
...
...
@@ -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
));
}
...
...
src/Compilers/Core/Portable/SourceCodeKind.cs
浏览文件 @
e2646d8e
...
...
@@ -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"
);
...
...
src/Compilers/VisualBasic/Portable/VBResources.Designer.vb
浏览文件 @
e2646d8e
...
...
@@ -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: '{0}'.
.
''' Looks up a localized string similar to Provided Source Code Kind is unsupported or invalid: '{0}'.
'''</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 '{0}'; ignored.
'''</summary>
...
...
src/Compilers/VisualBasic/Portable/VBResources.resx
浏览文件 @
e2646d8e
...
...
@@ -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
src/Compilers/VisualBasic/Test/Semantic/Diagnostics/GetDiagnosticsTests.vb
浏览文件 @
e2646d8e
...
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录