Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
5fbeddf4
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,发现更多精彩内容 >>
提交
5fbeddf4
编写于
6月 29, 2015
作者:
B
bkoelman
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Review comments
上级
4113ebbf
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
7 addition
and
7 deletion
+7
-7
src/Compilers/CSharp/Portable/Lowering/AsyncRewriter/AsyncExceptionHandlerRewriter.cs
...e/Lowering/AsyncRewriter/AsyncExceptionHandlerRewriter.cs
+2
-2
src/Compilers/CSharp/Portable/Lowering/IteratorRewriter/IteratorMethodToStateMachineRewriter.cs
.../IteratorRewriter/IteratorMethodToStateMachineRewriter.cs
+1
-1
src/Compilers/Core/Portable/CodeGen/ILBuilder.cs
src/Compilers/Core/Portable/CodeGen/ILBuilder.cs
+3
-3
src/Compilers/Core/Portable/DiagnosticAnalyzer/CompilerDiagnosticAnalyzer.CompilationAnalyzer.cs
...nalyzer/CompilerDiagnosticAnalyzer.CompilationAnalyzer.cs
+1
-1
未找到文件。
src/Compilers/CSharp/Portable/Lowering/AsyncRewriter/AsyncExceptionHandlerRewriter.cs
浏览文件 @
5fbeddf4
...
...
@@ -46,7 +46,7 @@ internal sealed class AsyncExceptionHandlerRewriter : BoundTreeRewriter
/// Lower a block of code by performing local rewritings.
/// The goal is to not have exception handlers that contain awaits in them.
///
/// 1) Await containing finall
ie
s:
/// 1) Await containing finall
y block
s:
/// The general strategy is to rewrite await containing handlers into synthetic handlers.
/// Synthetic handlers are not handlers in IL sense so it is ok to have awaits in them.
/// Since synthetic handlers are just blocks, we have to deal with pending exception/branch/return manually
...
...
@@ -692,7 +692,7 @@ private void PopFrame()
}
/// <summary>
/// Analyses method body for Try blocks with awaits in finall
ie
s
/// Analyses method body for Try blocks with awaits in finall
y block
s
/// Also collects labels that such blocks contain.
/// </summary>
private
sealed
class
AwaitInFinallyAnalysis
:
LabelCollector
...
...
src/Compilers/CSharp/Portable/Lowering/IteratorRewriter/IteratorMethodToStateMachineRewriter.cs
浏览文件 @
5fbeddf4
...
...
@@ -228,7 +228,7 @@ private BoundStatement HandleReturn(BoundStatement newBody)
/// break;
///
/// case state5:
/// ... another dispatch of nested states to their finall
ie
s ...
/// ... another dispatch of nested states to their finall
y block
s ...
/// break;
/// }
/// }
...
...
src/Compilers/Core/Portable/CodeGen/ILBuilder.cs
浏览文件 @
5fbeddf4
...
...
@@ -323,7 +323,7 @@ private static void MarkReachableFromBranch(ArrayBuilder<BasicBlock> reachableBl
{
// if branch is blocked by a finally, then should branch to corresponding
// BlockedBranchDestination instead. Original label may not be reachable.
// if there are no blocking finall
ie
s, then BlockedBranchDestination returns null
// if there are no blocking finall
y block
s, then BlockedBranchDestination returns null
// and we just visit the target.
var
blockedDest
=
BlockedBranchDestination
(
block
,
branchBlock
);
if
(
blockedDest
==
null
)
...
...
@@ -377,9 +377,9 @@ private static object BlockedBranchDestinationSlow(ExceptionHandlerScope destHan
destHandlerScope
=
destHandler
.
ContainingExceptionScope
;
}
// go from the source out until
we no longer crossing any finallies
// go from the source out until
no longer crossing any finally blocks
// between source and destination
// if any finall
ie
s found in the process, check if they are blocking
// if any finall
y block
s found in the process, check if they are blocking
while
(
srcHandler
!=
destHandler
)
{
// branches within same ContainingExceptionScope do not go through finally.
...
...
src/Compilers/Core/Portable/DiagnosticAnalyzer/CompilerDiagnosticAnalyzer.CompilationAnalyzer.cs
浏览文件 @
5fbeddf4
...
...
@@ -82,7 +82,7 @@ public CompilerDiagnostic(Diagnostic original, ImmutableDictionary<string, strin
_properties
=
properties
;
}
#pragma warning disable RS0013 // we are delegating
to delegate
so it is okay here
#pragma warning disable RS0013 // we are delegating so it is okay here
public
override
DiagnosticDescriptor
Descriptor
=>
_original
.
Descriptor
;
#pragma warning restore RS0013
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录