@@ -48,7 +48,7 @@ Discard.cs:
4848# 10| 0: [ReturnStmt] return ...;
4949# 10| 0: [IntLiteral] 0
5050LocalFunction.cs:
51- # 4| [Class] Class1
51+ # 4| [Class] LocalFunction
5252# 6| 5: [Method] M1
5353# 6| -1: [TypeMention] Task
5454# 7| 4: [BlockStmt] {...}
@@ -77,6 +77,36 @@ LocalFunction.cs:
7777# 14| 0: [IntLiteral] 2
7878# 16| 3: [LocalFunctionStmt] localExtern(...)
7979# 16| 0: [LocalFunction] localExtern
80+ # 19| 6: [Method] M2
81+ # 19| -1: [TypeMention] Void
82+ # 20| 4: [BlockStmt] {...}
83+ # 21| 0: [LocalFunctionStmt] dup(...)
84+ # 21| 0: [LocalFunction] dup
85+ #-----| 0: (Attributes)
86+ # 21| 1: [Attribute] [Obsolete(...)]
87+ # 21| 0: [TypeMention] ObsoleteAttribute
88+ #-----| 2: (Parameters)
89+ # 22| 0: [Parameter] b
90+ # 22| -1: [TypeMention] bool
91+ #-----| 0: (Attributes)
92+ # 22| 1: [Attribute] [NotNullWhen(...)]
93+ # 22| -1: [TypeMention] NotNullWhenAttribute
94+ # 22| 0: [BoolLiteral] true
95+ # 22| 1: [Parameter] i
96+ # 22| -1: [TypeMention] int?
97+ # 22| 1: [TypeMention] int
98+ # 23| 4: [BlockStmt] {...}
99+ # 24| 0: [ReturnStmt] return ...;
100+ # 24| 0: [MulExpr] ... * ...
101+ # 24| 0: [CastExpr] (...) ...
102+ # 24| 1: [IntLiteral] 2
103+ # 24| 1: [ParameterAccess] access to parameter i
104+ # 27| 1: [ExprStmt] ...;
105+ # 27| 0: [LocalFunctionCall] call to local function dup
106+ # 27| -1: [LocalFunctionAccess] access to local function dup
107+ # 27| 0: [BoolLiteral] true
108+ # 27| 1: [CastExpr] (...) ...
109+ # 27| 1: [IntLiteral] 42
80110NativeInt.cs:
81111# 3| [Class] NativeInt
82112# 5| 5: [Method] M1
0 commit comments