@@ -166,6 +166,109 @@ Discard.cs:
166166# 10| 4: [BlockStmt] {...}
167167# 10| 0: [ReturnStmt] return ...;
168168# 10| 0: [IntLiteral] 0
169+ ForeachExtension.cs:
170+ # 6| [Class] Extensions
171+ # 8| 4: [ExtensionMethod] GetEnumerator
172+ # 8| -1: [TypeMention] IEnumerator<T>
173+ # 8| 1: [TypeMention] T
174+ #-----| 1: (Type parameters)
175+ # 8| 0: [TypeParameter] T
176+ #-----| 2: (Parameters)
177+ # 8| 0: [Parameter] enumerator
178+ # 8| -1: [TypeMention] IEnumerator<T>
179+ # 8| 1: [TypeMention] T
180+ # 8| 4: [ParameterAccess] access to parameter enumerator
181+ # 9| 6: [ExtensionMethod] GetAsyncEnumerator
182+ # 9| -1: [TypeMention] IAsyncEnumerator<T>
183+ # 9| 1: [TypeMention] T
184+ #-----| 1: (Type parameters)
185+ # 9| 0: [TypeParameter] T
186+ #-----| 2: (Parameters)
187+ # 9| 0: [Parameter] enumerator
188+ # 9| -1: [TypeMention] IAsyncEnumerator<T>
189+ # 9| 1: [TypeMention] T
190+ # 9| 4: [ParameterAccess] access to parameter enumerator
191+ # 10| 8: [ExtensionMethod] GetEnumerator
192+ # 10| -1: [TypeMention] IEnumerator<Int32>
193+ # 10| 1: [TypeMention] int
194+ #-----| 2: (Parameters)
195+ # 10| 0: [Parameter] count
196+ # 10| -1: [TypeMention] int
197+ # 11| 4: [BlockStmt] {...}
198+ # 12| 0: [ForStmt] for (...;...;...) ...
199+ # 12| -1: [LocalVariableDeclAndInitExpr] Int32 i = ...
200+ # 12| -1: [TypeMention] int
201+ # 12| 0: [LocalVariableAccess] access to local variable i
202+ # 12| 1: [IntLiteral] 0
203+ # 12| 0: [LTExpr] ... < ...
204+ # 12| 0: [LocalVariableAccess] access to local variable i
205+ # 12| 1: [ParameterAccess] access to parameter count
206+ # 12| 1: [PostIncrExpr] ...++
207+ # 12| 0: [LocalVariableAccess] access to local variable i
208+ # 13| 2: [BlockStmt] {...}
209+ # 14| 0: [YieldReturnStmt] yield return ...;
210+ # 14| 0: [LocalVariableAccess] access to local variable i
211+ # 19| [Class] Program
212+ # 21| 5: [Method] Main
213+ # 21| -1: [TypeMention] Task
214+ # 22| 4: [BlockStmt] {...}
215+ # 23| 0: [LocalVariableDeclStmt] ... ...;
216+ # 23| 0: [LocalVariableDeclAndInitExpr] IEnumerator<Int32> enumerator1 = ...
217+ # 23| -1: [TypeMention] IEnumerator<Int32>
218+ # 23| 1: [TypeMention] int
219+ # 23| 0: [LocalVariableAccess] access to local variable enumerator1
220+ # 23| 1: [MethodCall] call to method GetEnumerator
221+ # 23| -1: [MethodCall] call to method Range
222+ # 23| -1: [TypeAccess] access to type Enumerable
223+ # 23| 0: [TypeMention] Enumerable
224+ # 23| 0: [IntLiteral] 0
225+ # 23| 1: [IntLiteral] 10
226+ # 24| 1: [ForeachStmt] foreach (... ... in ...) ...
227+ # 24| 0: [LocalVariableDeclExpr] Int32 item
228+ # 24| 0: [TypeMention] int
229+ # 24| 1: [LocalVariableAccess] access to local variable enumerator1
230+ # 25| 2: [BlockStmt] {...}
231+ # 28| 2: [LocalVariableDeclStmt] ... ...;
232+ # 28| 0: [LocalVariableDeclAndInitExpr] IAsyncEnumerator<Int32> enumerator2 = ...
233+ # 28| -1: [TypeMention] IAsyncEnumerator<Int32>
234+ # 28| 1: [TypeMention] int
235+ # 28| 0: [LocalVariableAccess] access to local variable enumerator2
236+ # 28| 1: [MethodCall] call to method GetAsyncEnumerator
237+ # 29| 3: [ForeachStmt] foreach (... ... in ...) ...
238+ # 29| 0: [LocalVariableDeclExpr] Int32 item
239+ # 29| 0: [TypeMention] int
240+ # 29| 1: [LocalVariableAccess] access to local variable enumerator2
241+ # 30| 2: [BlockStmt] {...}
242+ # 33| 4: [ForeachStmt] foreach (... ... in ...) ...
243+ # 33| 0: [LocalVariableDeclExpr] Int32 item
244+ # 33| 0: [TypeMention] int
245+ # 33| 1: [IntLiteral] 42
246+ # 34| 2: [BlockStmt] {...}
247+ # 37| 5: [ForeachStmt] foreach (... ... in ...) ...
248+ # 37| 0: [LocalVariableDeclExpr] Int32 i
249+ # 37| 0: [TypeMention] int
250+ # 37| 1: [ArrayCreation] array creation of type Int32[]
251+ # 37| -2: [TypeMention] Int32[]
252+ # 37| 1: [TypeMention] int
253+ # 37| -1: [ArrayInitializer] { ..., ... }
254+ # 37| 0: [IntLiteral] 1
255+ # 37| 1: [IntLiteral] 2
256+ # 37| 2: [IntLiteral] 3
257+ # 38| 2: [BlockStmt] {...}
258+ # 42| 6: [Method] GetAsyncEnumerator
259+ # 42| -1: [TypeMention] IAsyncEnumerator<Int32>
260+ # 42| 1: [TypeMention] int
261+ # 43| 4: [BlockStmt] {...}
262+ # 44| 0: [YieldReturnStmt] yield return ...;
263+ # 44| 0: [IntLiteral] 0
264+ # 45| 1: [ExprStmt] ...;
265+ # 45| 0: [AwaitExpr] await ...
266+ # 45| 0: [MethodCall] call to method Delay
267+ # 45| -1: [TypeAccess] access to type Task
268+ # 45| 0: [TypeMention] Task
269+ # 45| 0: [IntLiteral] 1
270+ # 46| 2: [YieldReturnStmt] yield return ...;
271+ # 46| 0: [IntLiteral] 1
169272FunctionPointer.cs:
170273# 5| [Class] FnPointer
171274# 7| 5: [Class] Program
0 commit comments