Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
6f6910c4
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,发现更多精彩内容 >>
未验证
提交
6f6910c4
编写于
8月 16, 2018
作者:
T
Tomáš Matoušek
提交者:
GitHub
8月 16, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Recover from an unexpected exception during EnC document analysis (#29330)
上级
de17e32f
变更
19
隐藏空白更改
内联
并排
Showing
19 changed file
with
90 addition
and
6 deletion
+90
-6
src/EditorFeatures/Test/EditAndContinue/RudeEditDiagnosticTests.cs
...rFeatures/Test/EditAndContinue/RudeEditDiagnosticTests.cs
+2
-1
src/Features/Core/Portable/EditAndContinue/AbstractEditAndContinueAnalyzer.cs
...rtable/EditAndContinue/AbstractEditAndContinueAnalyzer.cs
+4
-2
src/Features/Core/Portable/EditAndContinue/RudeEditDiagnosticDescriptors.cs
...Portable/EditAndContinue/RudeEditDiagnosticDescriptors.cs
+4
-3
src/Features/Core/Portable/EditAndContinue/RudeEditKind.cs
src/Features/Core/Portable/EditAndContinue/RudeEditKind.cs
+2
-0
src/Features/Core/Portable/FeaturesResources.Designer.cs
src/Features/Core/Portable/FeaturesResources.Designer.cs
+10
-0
src/Features/Core/Portable/FeaturesResources.resx
src/Features/Core/Portable/FeaturesResources.resx
+3
-0
src/Features/Core/Portable/xlf/FeaturesResources.cs.xlf
src/Features/Core/Portable/xlf/FeaturesResources.cs.xlf
+5
-0
src/Features/Core/Portable/xlf/FeaturesResources.de.xlf
src/Features/Core/Portable/xlf/FeaturesResources.de.xlf
+5
-0
src/Features/Core/Portable/xlf/FeaturesResources.es.xlf
src/Features/Core/Portable/xlf/FeaturesResources.es.xlf
+5
-0
src/Features/Core/Portable/xlf/FeaturesResources.fr.xlf
src/Features/Core/Portable/xlf/FeaturesResources.fr.xlf
+5
-0
src/Features/Core/Portable/xlf/FeaturesResources.it.xlf
src/Features/Core/Portable/xlf/FeaturesResources.it.xlf
+5
-0
src/Features/Core/Portable/xlf/FeaturesResources.ja.xlf
src/Features/Core/Portable/xlf/FeaturesResources.ja.xlf
+5
-0
src/Features/Core/Portable/xlf/FeaturesResources.ko.xlf
src/Features/Core/Portable/xlf/FeaturesResources.ko.xlf
+5
-0
src/Features/Core/Portable/xlf/FeaturesResources.pl.xlf
src/Features/Core/Portable/xlf/FeaturesResources.pl.xlf
+5
-0
src/Features/Core/Portable/xlf/FeaturesResources.pt-BR.xlf
src/Features/Core/Portable/xlf/FeaturesResources.pt-BR.xlf
+5
-0
src/Features/Core/Portable/xlf/FeaturesResources.ru.xlf
src/Features/Core/Portable/xlf/FeaturesResources.ru.xlf
+5
-0
src/Features/Core/Portable/xlf/FeaturesResources.tr.xlf
src/Features/Core/Portable/xlf/FeaturesResources.tr.xlf
+5
-0
src/Features/Core/Portable/xlf/FeaturesResources.zh-Hans.xlf
src/Features/Core/Portable/xlf/FeaturesResources.zh-Hans.xlf
+5
-0
src/Features/Core/Portable/xlf/FeaturesResources.zh-Hant.xlf
src/Features/Core/Portable/xlf/FeaturesResources.zh-Hant.xlf
+5
-0
未找到文件。
src/EditorFeatures/Test/EditAndContinue/RudeEditDiagnosticTests.cs
浏览文件 @
6f6910c4
...
...
@@ -61,7 +61,8 @@ public void ToDiagnostic()
RudeEditKind
.
ChangingCapturedVariableType
,
RudeEditKind
.
AccessingCapturedVariableInLambda
,
RudeEditKind
.
NotAccessingCapturedVariableInLambda
,
RudeEditKind
.
RenamingCapturedVariable
RudeEditKind
.
RenamingCapturedVariable
,
RudeEditKind
.
InternalError
,
};
var
arg3
=
new
HashSet
<
RudeEditKind
>()
...
...
src/Features/Core/Portable/EditAndContinue/AbstractEditAndContinueAnalyzer.cs
浏览文件 @
6f6910c4
...
...
@@ -508,7 +508,9 @@ private SyntaxNode FindStatement(SyntaxNode declarationBody, int position, out i
}
catch
(
Exception
e
)
when
(
ReportFatalErrorAnalyzeDocumentAsync
(
baseActiveStatements
,
e
))
{
throw
ExceptionUtilities
.
Unreachable
;
// The same behavior as if there was a syntax error - we are unable to analyze the document.
return
DocumentAnalysisResults
.
SyntaxErrors
(
ImmutableArray
.
Create
(
new
RudeEditDiagnostic
(
RudeEditKind
.
InternalError
,
span
:
default
,
arguments
:
new
[]
{
document
.
FilePath
,
e
.
ToString
()
})));
}
}
...
...
@@ -523,7 +525,7 @@ private static bool ReportFatalErrorAnalyzeDocumentAsync(ImmutableArray<ActiveSt
s_fatalErrorBaseActiveStatements
=
baseActiveStatements
.
ToArray
();
}
return
FatalError
.
ReportUnlessCanceled
(
e
);
return
FatalError
.
Report
WithoutCrash
UnlessCanceled
(
e
);
}
internal
Dictionary
<
SyntaxNode
,
EditKind
>
BuildEditMap
(
EditScript
<
SyntaxNode
>
editScript
)
...
...
src/Features/Core/Portable/EditAndContinue/RudeEditDiagnosticDescriptors.cs
浏览文件 @
6f6910c4
...
...
@@ -80,9 +80,10 @@ internal static class RudeEditDiagnosticDescriptors
{
GetDescriptorPair
(
RudeEditKind
.
UpdatingStateMachineMethodAroundActiveStatement
,
FeaturesResources
.
Updating_async_or_iterator_modifier_around_an_active_statement_will_prevent_the_debug_session_from_continuing
)
},
{
GetDescriptorPair
(
RudeEditKind
.
UpdatingStateMachineMethodMissingAttribute
,
FeaturesResources
.
Attribute_0_is_missing_Updating_an_async_method_or_an_iterator_will_prevent_the_debug_session_from_continuing
)
},
{
GetDescriptorPair
(
RudeEditKind
.
SwitchBetweenLambdaAndLocalFunction
,
FeaturesResources
.
Switching_between_lambda_and_local_function_will_prevent_the_debug_session_from_continuing
)
},
{
GetDescriptorPair
(
RudeEditKind
.
RefStruct
,
FeaturesResources
.
Using_ref_structs_will_prevent_the_debug_session_from_continuing
)
},
{
GetDescriptorPair
(
RudeEditKind
.
ReadOnlyStruct
,
FeaturesResources
.
Using_readonly_structs_will_prevent_the_debug_session_from_continuing
)
},
{
GetDescriptorPair
(
RudeEditKind
.
ReadOnlyReferences
,
FeaturesResources
.
Using_readonly_references_will_prevent_the_debug_session_from_continuing
)
},
{
GetDescriptorPair
(
RudeEditKind
.
RefStruct
,
FeaturesResources
.
Using_ref_structs_will_prevent_the_debug_session_from_continuing
)
},
{
GetDescriptorPair
(
RudeEditKind
.
ReadOnlyStruct
,
FeaturesResources
.
Using_readonly_structs_will_prevent_the_debug_session_from_continuing
)
},
{
GetDescriptorPair
(
RudeEditKind
.
ReadOnlyReferences
,
FeaturesResources
.
Using_readonly_references_will_prevent_the_debug_session_from_continuing
)
},
{
GetDescriptorPair
(
RudeEditKind
.
InternalError
,
FeaturesResources
.
Modifying_source_file_will_prevent_the_debug_session_from_continuing_due_to_internal_error
)
},
{
GetDescriptorPair
(
RudeEditKind
.
RUDE_EDIT_COMPLEX_QUERY_EXPRESSION
,
FeaturesResources
.
Modifying_0_which_contains_an_Aggregate_Group_By_or_Join_query_clauses_will_prevent_the_debug_session_from_continuing
)
},
// VB specific,
...
...
src/Features/Core/Portable/EditAndContinue/RudeEditKind.cs
浏览文件 @
6f6910c4
...
...
@@ -97,6 +97,8 @@ internal enum RudeEditKind : ushort
ReadOnlyStruct
=
78
,
ReadOnlyReferences
=
79
,
InternalError
=
80
,
// TODO: remove values below
RUDE_EDIT_COMPLEX_QUERY_EXPRESSION
=
0x103
,
}
...
...
src/Features/Core/Portable/FeaturesResources.Designer.cs
浏览文件 @
6f6910c4
...
...
@@ -2222,6 +2222,16 @@ internal class FeaturesResources {
}
}
/// <summary>
/// Looks up a localized string similar to Modifying source file {0} will prevent the debug session from continuing due to internal error: {1}..
/// </summary>
internal
static
string
Modifying_source_file_will_prevent_the_debug_session_from_continuing_due_to_internal_error
{
get
{
return
ResourceManager
.
GetString
(
"Modifying_source_file_will_prevent_the_debug_session_from_continuing_due_to_inter"
+
"nal_error"
,
resourceCulture
);
}
}
/// <summary>
/// Looks up a localized string similar to Modifying source with experimental language features enabled will prevent the debug session from continuing..
/// </summary>
...
...
src/Features/Core/Portable/FeaturesResources.resx
浏览文件 @
6f6910c4
...
...
@@ -1379,4 +1379,7 @@ This version used in: {2}</value>
<data
name=
"Formatting_document"
xml:space=
"preserve"
>
<value>
Formatting document
</value>
</data>
<data
name=
"Modifying_source_file_will_prevent_the_debug_session_from_continuing_due_to_internal_error"
xml:space=
"preserve"
>
<value>
Modifying source file {0} will prevent the debug session from continuing due to internal error: {1}.
</value>
</data>
</root>
\ No newline at end of file
src/Features/Core/Portable/xlf/FeaturesResources.cs.xlf
浏览文件 @
6f6910c4
...
...
@@ -37,6 +37,11 @@
<target
state=
"new"
>
Formatting document
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Modifying_source_file_will_prevent_the_debug_session_from_continuing_due_to_internal_error"
>
<source>
Modifying source file {0} will prevent the debug session from continuing due to internal error: {1}.
</source>
<target
state=
"new"
>
Modifying source file {0} will prevent the debug session from continuing due to internal error: {1}.
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Related_method_signatures_found_in_metadata_will_not_be_updated"
>
<source>
Related method signatures found in metadata will not be updated.
</source>
<target
state=
"new"
>
Related method signatures found in metadata will not be updated.
</target>
...
...
src/Features/Core/Portable/xlf/FeaturesResources.de.xlf
浏览文件 @
6f6910c4
...
...
@@ -37,6 +37,11 @@
<target
state=
"new"
>
Formatting document
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Modifying_source_file_will_prevent_the_debug_session_from_continuing_due_to_internal_error"
>
<source>
Modifying source file {0} will prevent the debug session from continuing due to internal error: {1}.
</source>
<target
state=
"new"
>
Modifying source file {0} will prevent the debug session from continuing due to internal error: {1}.
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Related_method_signatures_found_in_metadata_will_not_be_updated"
>
<source>
Related method signatures found in metadata will not be updated.
</source>
<target
state=
"new"
>
Related method signatures found in metadata will not be updated.
</target>
...
...
src/Features/Core/Portable/xlf/FeaturesResources.es.xlf
浏览文件 @
6f6910c4
...
...
@@ -37,6 +37,11 @@
<target
state=
"new"
>
Formatting document
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Modifying_source_file_will_prevent_the_debug_session_from_continuing_due_to_internal_error"
>
<source>
Modifying source file {0} will prevent the debug session from continuing due to internal error: {1}.
</source>
<target
state=
"new"
>
Modifying source file {0} will prevent the debug session from continuing due to internal error: {1}.
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Related_method_signatures_found_in_metadata_will_not_be_updated"
>
<source>
Related method signatures found in metadata will not be updated.
</source>
<target
state=
"new"
>
Related method signatures found in metadata will not be updated.
</target>
...
...
src/Features/Core/Portable/xlf/FeaturesResources.fr.xlf
浏览文件 @
6f6910c4
...
...
@@ -37,6 +37,11 @@
<target
state=
"new"
>
Formatting document
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Modifying_source_file_will_prevent_the_debug_session_from_continuing_due_to_internal_error"
>
<source>
Modifying source file {0} will prevent the debug session from continuing due to internal error: {1}.
</source>
<target
state=
"new"
>
Modifying source file {0} will prevent the debug session from continuing due to internal error: {1}.
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Related_method_signatures_found_in_metadata_will_not_be_updated"
>
<source>
Related method signatures found in metadata will not be updated.
</source>
<target
state=
"new"
>
Related method signatures found in metadata will not be updated.
</target>
...
...
src/Features/Core/Portable/xlf/FeaturesResources.it.xlf
浏览文件 @
6f6910c4
...
...
@@ -37,6 +37,11 @@
<target
state=
"new"
>
Formatting document
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Modifying_source_file_will_prevent_the_debug_session_from_continuing_due_to_internal_error"
>
<source>
Modifying source file {0} will prevent the debug session from continuing due to internal error: {1}.
</source>
<target
state=
"new"
>
Modifying source file {0} will prevent the debug session from continuing due to internal error: {1}.
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Related_method_signatures_found_in_metadata_will_not_be_updated"
>
<source>
Related method signatures found in metadata will not be updated.
</source>
<target
state=
"new"
>
Related method signatures found in metadata will not be updated.
</target>
...
...
src/Features/Core/Portable/xlf/FeaturesResources.ja.xlf
浏览文件 @
6f6910c4
...
...
@@ -37,6 +37,11 @@
<target
state=
"new"
>
Formatting document
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Modifying_source_file_will_prevent_the_debug_session_from_continuing_due_to_internal_error"
>
<source>
Modifying source file {0} will prevent the debug session from continuing due to internal error: {1}.
</source>
<target
state=
"new"
>
Modifying source file {0} will prevent the debug session from continuing due to internal error: {1}.
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Related_method_signatures_found_in_metadata_will_not_be_updated"
>
<source>
Related method signatures found in metadata will not be updated.
</source>
<target
state=
"new"
>
Related method signatures found in metadata will not be updated.
</target>
...
...
src/Features/Core/Portable/xlf/FeaturesResources.ko.xlf
浏览文件 @
6f6910c4
...
...
@@ -37,6 +37,11 @@
<target
state=
"new"
>
Formatting document
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Modifying_source_file_will_prevent_the_debug_session_from_continuing_due_to_internal_error"
>
<source>
Modifying source file {0} will prevent the debug session from continuing due to internal error: {1}.
</source>
<target
state=
"new"
>
Modifying source file {0} will prevent the debug session from continuing due to internal error: {1}.
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Related_method_signatures_found_in_metadata_will_not_be_updated"
>
<source>
Related method signatures found in metadata will not be updated.
</source>
<target
state=
"new"
>
Related method signatures found in metadata will not be updated.
</target>
...
...
src/Features/Core/Portable/xlf/FeaturesResources.pl.xlf
浏览文件 @
6f6910c4
...
...
@@ -37,6 +37,11 @@
<target
state=
"new"
>
Formatting document
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Modifying_source_file_will_prevent_the_debug_session_from_continuing_due_to_internal_error"
>
<source>
Modifying source file {0} will prevent the debug session from continuing due to internal error: {1}.
</source>
<target
state=
"new"
>
Modifying source file {0} will prevent the debug session from continuing due to internal error: {1}.
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Related_method_signatures_found_in_metadata_will_not_be_updated"
>
<source>
Related method signatures found in metadata will not be updated.
</source>
<target
state=
"new"
>
Related method signatures found in metadata will not be updated.
</target>
...
...
src/Features/Core/Portable/xlf/FeaturesResources.pt-BR.xlf
浏览文件 @
6f6910c4
...
...
@@ -37,6 +37,11 @@
<target
state=
"new"
>
Formatting document
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Modifying_source_file_will_prevent_the_debug_session_from_continuing_due_to_internal_error"
>
<source>
Modifying source file {0} will prevent the debug session from continuing due to internal error: {1}.
</source>
<target
state=
"new"
>
Modifying source file {0} will prevent the debug session from continuing due to internal error: {1}.
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Related_method_signatures_found_in_metadata_will_not_be_updated"
>
<source>
Related method signatures found in metadata will not be updated.
</source>
<target
state=
"new"
>
Related method signatures found in metadata will not be updated.
</target>
...
...
src/Features/Core/Portable/xlf/FeaturesResources.ru.xlf
浏览文件 @
6f6910c4
...
...
@@ -37,6 +37,11 @@
<target
state=
"new"
>
Formatting document
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Modifying_source_file_will_prevent_the_debug_session_from_continuing_due_to_internal_error"
>
<source>
Modifying source file {0} will prevent the debug session from continuing due to internal error: {1}.
</source>
<target
state=
"new"
>
Modifying source file {0} will prevent the debug session from continuing due to internal error: {1}.
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Related_method_signatures_found_in_metadata_will_not_be_updated"
>
<source>
Related method signatures found in metadata will not be updated.
</source>
<target
state=
"new"
>
Related method signatures found in metadata will not be updated.
</target>
...
...
src/Features/Core/Portable/xlf/FeaturesResources.tr.xlf
浏览文件 @
6f6910c4
...
...
@@ -37,6 +37,11 @@
<target
state=
"new"
>
Formatting document
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Modifying_source_file_will_prevent_the_debug_session_from_continuing_due_to_internal_error"
>
<source>
Modifying source file {0} will prevent the debug session from continuing due to internal error: {1}.
</source>
<target
state=
"new"
>
Modifying source file {0} will prevent the debug session from continuing due to internal error: {1}.
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Related_method_signatures_found_in_metadata_will_not_be_updated"
>
<source>
Related method signatures found in metadata will not be updated.
</source>
<target
state=
"new"
>
Related method signatures found in metadata will not be updated.
</target>
...
...
src/Features/Core/Portable/xlf/FeaturesResources.zh-Hans.xlf
浏览文件 @
6f6910c4
...
...
@@ -37,6 +37,11 @@
<target
state=
"new"
>
Formatting document
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Modifying_source_file_will_prevent_the_debug_session_from_continuing_due_to_internal_error"
>
<source>
Modifying source file {0} will prevent the debug session from continuing due to internal error: {1}.
</source>
<target
state=
"new"
>
Modifying source file {0} will prevent the debug session from continuing due to internal error: {1}.
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Related_method_signatures_found_in_metadata_will_not_be_updated"
>
<source>
Related method signatures found in metadata will not be updated.
</source>
<target
state=
"new"
>
Related method signatures found in metadata will not be updated.
</target>
...
...
src/Features/Core/Portable/xlf/FeaturesResources.zh-Hant.xlf
浏览文件 @
6f6910c4
...
...
@@ -37,6 +37,11 @@
<target
state=
"new"
>
Formatting document
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Modifying_source_file_will_prevent_the_debug_session_from_continuing_due_to_internal_error"
>
<source>
Modifying source file {0} will prevent the debug session from continuing due to internal error: {1}.
</source>
<target
state=
"new"
>
Modifying source file {0} will prevent the debug session from continuing due to internal error: {1}.
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Related_method_signatures_found_in_metadata_will_not_be_updated"
>
<source>
Related method signatures found in metadata will not be updated.
</source>
<target
state=
"new"
>
Related method signatures found in metadata will not be updated.
</target>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录