@@ -47,6 +47,66 @@ Discard.cs:
4747# 10| 4: [BlockStmt] {...}
4848# 10| 0: [ReturnStmt] return ...;
4949# 10| 0: [IntLiteral] 0
50+ LambdaModifier.cs:
51+ # 4| [Class] Class1
52+ # 6| 5: [Method] M1
53+ # 6| -1: [TypeMention] Task
54+ # 7| 4: [BlockStmt] {...}
55+ # 8| 0: [LocalFunctionStmt] m(...)
56+ # 8| 0: [LocalFunction] m
57+ #-----| 2: (Parameters)
58+ # 8| 0: [Parameter] f
59+ # 8| -1: [TypeMention] Func<Int32, Int32>
60+ # 8| 1: [TypeMention] int
61+ # 8| 2: [TypeMention] int
62+ # 8| 4: [BlockStmt] {...}
63+ # 10| 1: [LocalConstantDeclStmt] const ... ...;
64+ # 10| 0: [LocalVariableDeclAndInitExpr] Int32 z = ...
65+ # 10| -1: [TypeMention] int
66+ # 10| 0: [LocalVariableAccess] access to local variable z
67+ # 10| 1: [IntLiteral] 10
68+ # 11| 2: [ExprStmt] ...;
69+ # 11| 0: [LocalFunctionCall] call to local function m
70+ # 11| -1: [LocalFunctionAccess] access to local function m
71+ # 11| 0: [LambdaExpr] (...) => ...
72+ #-----| 2: (Parameters)
73+ # 11| 0: [Parameter] x
74+ # 11| 4: [AddExpr] ... + ...
75+ # 11| 0: [ParameterAccess] access to parameter x
76+ # 11| 1: [LocalVariableAccess] access to local variable z
77+ # 12| 3: [ExprStmt] ...;
78+ # 12| 0: [LocalFunctionCall] call to local function m
79+ # 12| -1: [LocalFunctionAccess] access to local function m
80+ # 12| 0: [LambdaExpr] (...) => ...
81+ #-----| 2: (Parameters)
82+ # 12| 0: [Parameter] x
83+ # 12| 4: [AddExpr] ... + ...
84+ # 12| 0: [ParameterAccess] access to parameter x
85+ # 12| 1: [LocalVariableAccess] access to local variable z
86+ # 13| 4: [ExprStmt] ...;
87+ # 13| 0: [LocalFunctionCall] call to local function m
88+ # 13| -1: [LocalFunctionAccess] access to local function m
89+ # 13| 0: [AnonymousMethodExpr] delegate(...) { ... }
90+ #-----| 2: (Parameters)
91+ # 13| 0: [Parameter] x
92+ # 13| -1: [TypeMention] int
93+ # 13| 4: [BlockStmt] {...}
94+ # 13| 0: [ReturnStmt] return ...;
95+ # 13| 0: [AddExpr] ... + ...
96+ # 13| 0: [ParameterAccess] access to parameter x
97+ # 13| 1: [LocalVariableAccess] access to local variable z
98+ # 15| 5: [ExprStmt] ...;
99+ # 15| 0: [AwaitExpr] await ...
100+ # 15| 0: [MethodCall] call to method Run
101+ # 15| -1: [TypeAccess] access to type Task
102+ # 15| 0: [TypeMention] Task
103+ # 15| 0: [LambdaExpr] (...) => ...
104+ # 15| 4: [BlockStmt] {...}
105+ # 15| 0: [ExprStmt] ...;
106+ # 15| 0: [AwaitExpr] await ...
107+ # 15| 0: [PropertyCall] access to property CompletedTask
108+ # 15| -1: [TypeAccess] access to type Task
109+ # 15| 0: [TypeMention] Task
50110LocalFunction.cs:
51111# 4| [Class] LocalFunction
52112# 6| 5: [Method] M1
0 commit comments