提交 2a6eb65e 编写于 作者: J John Hamby

Reverted some gratuitous changes in lambda rewriting.

上级 604930f7
......@@ -1126,7 +1126,7 @@ private DebugId GetClosureId(SyntaxNode syntax, ArrayBuilder<ClosureDebugInfo> c
return closureId;
}
private DebugId GetLambdaId(SyntaxNode syntax, ClosureKind closureKind, int closureOrdinal)
{
Debug.Assert(syntax != null);
......
......@@ -258,10 +258,9 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
Dim syntax = scope.Syntax
Debug.Assert(syntax IsNot Nothing)
Dim localKind As SynthesizedLocalKind = If(TryCast(captured, SynthesizedLocal)?.SynthesizedKind, SynthesizedLocalKind.UserDefined)
' Frames created for delegate relaxations are just immutable wrappers of the delegate target object.
' They are not reused during EnC update and thus don't have a closure scope.
Dim isDelegateRelaxationFrame = localKind = SynthesizedLocalKind.DelegateRelaxationReceiver
Dim isDelegateRelaxationFrame = If(TryCast(captured, SynthesizedLocal)?.SynthesizedKind = SynthesizedLocalKind.DelegateRelaxationReceiver, False)
Dim methodId, closureId As DebugId
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册