@@ -353,3 +353,71 @@ arguments.cs:
353
353
# 93| 0: [Parameter] b
354
354
# 93| -1: [TypeMention] bool
355
355
# 93| 4: [BlockStmt] {...}
356
+ lambdas.cs:
357
+ # 3| [Class] LambdaArgumentsTest
358
+ # 5| 5: [Method] M1
359
+ # 5| -1: [TypeMention] Void
360
+ # 6| 4: [BlockStmt] {...}
361
+ # 7| 0: [LocalVariableDeclStmt] ... ...;
362
+ # 7| 0: [LocalVariableDeclAndInitExpr] Func<Int32,Int32> l1 = ...
363
+ # 7| -1: [TypeMention] Func<int, int>
364
+ # 7| 0: [LocalVariableAccess] access to local variable l1
365
+ # 7| 1: [LambdaExpr] (...) => ...
366
+ #-----| 2: (Parameters)
367
+ # 7| 0: [Parameter] x
368
+ # 7| -1: [TypeMention] int
369
+ # 7| 4: [AddExpr] ... + ...
370
+ # 7| 0: [ParameterAccess] access to parameter x
371
+ # 7| 1: [IntLiteral] 1
372
+ # 8| 1: [ExprStmt] ...;
373
+ # 8| 0: [DelegateCall] delegate call
374
+ # 8| -1: [LocalVariableAccess] access to local variable l1
375
+ # 8| 0: [IntLiteral] 1
376
+ # 10| 2: [LocalVariableDeclStmt] ... ...;
377
+ # 10| 0: [LocalVariableDeclAndInitExpr] <>__AnonType0<> l2 = ...
378
+ # 10| -1: [TypeMention] <>__AnonType0<>
379
+ # 10| 0: [LocalVariableAccess] access to local variable l2
380
+ # 10| 1: [LambdaExpr] (...) => ...
381
+ #-----| 2: (Parameters)
382
+ # 10| 0: [Parameter] x
383
+ # 10| -1: [TypeMention] int
384
+ # 10| 1: [Parameter] y
385
+ # 10| -1: [TypeMention] int
386
+ # 10| 1: [IntLiteral] 1
387
+ # 10| 4: [AddExpr] ... + ...
388
+ # 10| 0: [ParameterAccess] access to parameter x
389
+ # 10| 1: [ParameterAccess] access to parameter y
390
+ # 11| 3: [ExprStmt] ...;
391
+ # 11| 0: [DelegateCall] delegate call
392
+ # 11| -1: [LocalVariableAccess] access to local variable l2
393
+ # 11| 0: [IntLiteral] 2
394
+ # 11| 1: [IntLiteral] 3
395
+ # 12| 4: [ExprStmt] ...;
396
+ # 12| 0: [DelegateCall] delegate call
397
+ # 12| -1: [LocalVariableAccess] access to local variable l2
398
+ # 12| 0: [IntLiteral] 4
399
+ # 13| 5: [ExprStmt] ...;
400
+ # 13| 0: [DelegateCall] delegate call
401
+ # 13| -1: [LocalVariableAccess] access to local variable l2
402
+ # 13| 0: [IntLiteral] 5
403
+ # 13| 1: [IntLiteral] 6
404
+ # 15| 6: [LocalVariableDeclStmt] ... ...;
405
+ # 15| 0: [LocalVariableDeclAndInitExpr] <>__AnonType0<> l3 = ...
406
+ # 15| -1: [TypeMention] <>__AnonType0<>
407
+ # 15| 0: [LocalVariableAccess] access to local variable l3
408
+ # 15| 1: [LambdaExpr] (...) => ...
409
+ #-----| 2: (Parameters)
410
+ # 15| 0: [Parameter] x
411
+ # 15| -1: [TypeMention] Int32[]
412
+ # 15| 1: [TypeMention] int
413
+ # 15| 4: [PropertyCall] access to property Length
414
+ # 15| -1: [ParameterAccess] access to parameter x
415
+ # 16| 7: [ExprStmt] ...;
416
+ # 16| 0: [DelegateCall] delegate call
417
+ # 16| -1: [LocalVariableAccess] access to local variable l3
418
+ # 17| 8: [ExprStmt] ...;
419
+ # 17| 0: [DelegateCall] delegate call
420
+ # 17| -1: [LocalVariableAccess] access to local variable l3
421
+ # 17| 0: [IntLiteral] 7
422
+ # 17| 1: [IntLiteral] 8
423
+ # 17| 2: [IntLiteral] 9
0 commit comments