@@ -335,6 +335,145 @@ ParenthesizedPattern.cs:
335
335
# 27| 0: [TypeAccessPatternExpr] access to type String
336
336
# 27| 0: [TypeMention] string
337
337
# 27| 2: [IntLiteral] 5
338
+ TargetType.cs:
339
+ # 5| [Class] TargetType
340
+ # 7| 5: [Method] M2
341
+ # 7| -1: [TypeMention] Void
342
+ # 8| 4: [BlockStmt] {...}
343
+ # 9| 0: [LocalVariableDeclStmt] ... ...;
344
+ # 9| 0: [LocalVariableDeclAndInitExpr] Random rand = ...
345
+ # 9| -1: [TypeMention] Random
346
+ # 9| 0: [LocalVariableAccess] access to local variable rand
347
+ # 9| 1: [ObjectCreation] object creation of type Random
348
+ # 9| 0: [TypeMention] Random
349
+ # 10| 1: [LocalVariableDeclStmt] ... ...;
350
+ # 10| 0: [LocalVariableDeclAndInitExpr] Boolean condition = ...
351
+ # 10| -1: [TypeMention] bool
352
+ # 10| 0: [LocalVariableAccess] access to local variable condition
353
+ # 10| 1: [GTExpr] ... > ...
354
+ # 10| 0: [MethodCall] call to method NextDouble
355
+ # 10| -1: [LocalVariableAccess] access to local variable rand
356
+ # 10| 1: [DoubleLiteral] 0.5
357
+ # 12| 2: [LocalVariableDeclStmt] ... ...;
358
+ # 12| 0: [LocalVariableDeclAndInitExpr] Nullable<Int32> x0 = ...
359
+ # 12| -1: [TypeMention] int?
360
+ # 12| 1: [TypeMention] int
361
+ # 12| 0: [LocalVariableAccess] access to local variable x0
362
+ # 12| 1: [CastExpr] (...) ...
363
+ # 12| 1: [IntLiteral] 12
364
+ # 13| 3: [ExprStmt] ...;
365
+ # 13| 0: [AssignExpr] ... = ...
366
+ # 13| 0: [LocalVariableAccess] access to local variable x0
367
+ # 13| 1: [CastExpr] (...) ...
368
+ # 13| 1: [IntLiteral] 13
369
+ # 14| 4: [LocalVariableDeclStmt] ... ...;
370
+ # 14| 0: [LocalVariableDeclAndInitExpr] Nullable<Int32> x1 = ...
371
+ # 14| -1: [TypeMention] int?
372
+ # 14| 1: [TypeMention] int
373
+ # 14| 0: [LocalVariableAccess] access to local variable x1
374
+ # 14| 1: [NullLiteral] null
375
+ # 16| 5: [LocalVariableDeclStmt] ... ...;
376
+ # 16| 0: [LocalVariableDeclAndInitExpr] Nullable<Int32> x2 = ...
377
+ # 16| -1: [TypeMention] int?
378
+ # 16| 1: [TypeMention] int
379
+ # 16| 0: [LocalVariableAccess] access to local variable x2
380
+ # 16| 1: [ConditionalExpr] ... ? ... : ...
381
+ # 16| 0: [LocalVariableAccess] access to local variable condition
382
+ # 17| 1: [CastExpr] (...) ...
383
+ # 17| 1: [IntLiteral] 12
384
+ # 18| 2: [NullLiteral] null
385
+ # 20| 6: [LocalVariableDeclStmt] ... ...;
386
+ # 20| 0: [LocalVariableDeclAndInitExpr] Nullable<Int32> x3 = ...
387
+ # 20| -1: [TypeMention] int?
388
+ # 20| 1: [TypeMention] int
389
+ # 20| 0: [LocalVariableAccess] access to local variable x3
390
+ # 20| 1: [ConditionalExpr] ... ? ... : ...
391
+ # 20| 0: [LocalVariableAccess] access to local variable condition
392
+ # 21| 1: [CastExpr] (...) ...
393
+ # 21| 0: [TypeAccess] access to type Nullable<Int32>
394
+ # 21| 0: [TypeMention] int?
395
+ # 21| 1: [TypeMention] int
396
+ # 21| 1: [IntLiteral] 12
397
+ # 22| 2: [NullLiteral] null
398
+ # 24| 7: [LocalVariableDeclStmt] ... ...;
399
+ # 24| 0: [LocalVariableDeclAndInitExpr] Nullable<Int32> x4 = ...
400
+ # 24| -1: [TypeMention] int?
401
+ # 24| 1: [TypeMention] int
402
+ # 24| 0: [LocalVariableAccess] access to local variable x4
403
+ # 24| 1: [ConditionalExpr] ... ? ... : ...
404
+ # 24| 0: [LocalVariableAccess] access to local variable condition
405
+ # 25| 1: [CastExpr] (...) ...
406
+ # 25| 1: [IntLiteral] 12
407
+ # 26| 2: [CastExpr] (...) ...
408
+ # 26| 0: [TypeAccess] access to type Nullable<Int32>
409
+ # 26| 0: [TypeMention] int?
410
+ # 26| 1: [TypeMention] int
411
+ # 26| 1: [NullLiteral] null
412
+ # 28| 8: [LocalVariableDeclStmt] ... ...;
413
+ # 28| 0: [LocalVariableDeclAndInitExpr] IEnumerable<Int32> xs0 = ...
414
+ # 28| -1: [TypeMention] IEnumerable<Int32>
415
+ # 28| 1: [TypeMention] int
416
+ # 28| 0: [LocalVariableAccess] access to local variable xs0
417
+ # 28| 1: [ObjectCreation] object creation of type List<Int32>
418
+ # 28| -2: [TypeMention] List<Int32>
419
+ # 28| 1: [TypeMention] int
420
+ # 28| -1: [CollectionInitializer] { ..., ... }
421
+ # 28| 0: [ElementInitializer] call to method Add
422
+ # 28| 0: [IntLiteral] 0
423
+ # 28| 1: [ElementInitializer] call to method Add
424
+ # 28| 0: [IntLiteral] 1
425
+ # 29| 9: [LocalVariableDeclStmt] ... ...;
426
+ # 29| 0: [LocalVariableDeclAndInitExpr] IEnumerable<Int32> xs1 = ...
427
+ # 29| -1: [TypeMention] IEnumerable<Int32>
428
+ # 29| 1: [TypeMention] int
429
+ # 29| 0: [LocalVariableAccess] access to local variable xs1
430
+ # 29| 1: [ArrayCreation] array creation of type Int32[]
431
+ # 29| -2: [TypeMention] Int32[]
432
+ # 29| 1: [TypeMention] int
433
+ # 29| -1: [ArrayInitializer] { ..., ... }
434
+ # 29| 0: [IntLiteral] 2
435
+ # 29| 1: [IntLiteral] 3
436
+ # 31| 10: [LocalVariableDeclStmt] ... ...;
437
+ # 31| 0: [LocalVariableDeclAndInitExpr] IEnumerable<Int32> xs2 = ...
438
+ # 31| -1: [TypeMention] IEnumerable<Int32>
439
+ # 31| 1: [TypeMention] int
440
+ # 31| 0: [LocalVariableAccess] access to local variable xs2
441
+ # 31| 1: [ConditionalExpr] ... ? ... : ...
442
+ # 31| 0: [IsExpr] ... is ...
443
+ # 31| 0: [LocalVariableAccess] access to local variable x2
444
+ # 31| 1: [ConstantPatternExpr,NullLiteral] null
445
+ # 32| 1: [ObjectCreation] object creation of type List<Int32>
446
+ # 32| -2: [TypeMention] List<Int32>
447
+ # 32| 1: [TypeMention] int
448
+ # 32| -1: [CollectionInitializer] { ..., ... }
449
+ # 32| 0: [ElementInitializer] call to method Add
450
+ # 32| 0: [IntLiteral] 0
451
+ # 32| 1: [ElementInitializer] call to method Add
452
+ # 32| 0: [IntLiteral] 1
453
+ # 33| 2: [ArrayCreation] array creation of type Int32[]
454
+ # 33| -2: [TypeMention] Int32[]
455
+ # 33| 1: [TypeMention] int
456
+ # 33| -1: [ArrayInitializer] { ..., ... }
457
+ # 33| 0: [IntLiteral] 2
458
+ # 33| 1: [IntLiteral] 3
459
+ # 35| 11: [LocalVariableDeclStmt] ... ...;
460
+ # 35| 0: [LocalVariableDeclAndInitExpr] Nullable<Int32> c = ...
461
+ # 35| -1: [TypeMention] int?
462
+ # 35| 1: [TypeMention] int
463
+ # 35| 0: [LocalVariableAccess] access to local variable c
464
+ # 35| 1: [CastExpr] (...) ...
465
+ # 35| 1: [ConditionalExpr] ... ? ... : ...
466
+ # 35| 0: [LocalVariableAccess] access to local variable condition
467
+ # 36| 1: [OperatorCall] call to operator implicit conversion
468
+ # 36| 0: [ObjectCreation] object creation of type TargetType
469
+ # 36| 0: [TypeMention] TargetType
470
+ # 37| 2: [IntLiteral] 12
471
+ # 40| 6: [ImplicitConversionOperator] implicit conversion
472
+ # 40| -1: [TypeMention] int
473
+ #-----| 2: (Parameters)
474
+ # 40| 0: [Parameter] d
475
+ # 40| -1: [TypeMention] TargetType
476
+ # 40| 4: [IntLiteral] 0
338
477
TypeParameterNullability.cs:
339
478
# 1| [Interface] I1
340
479
# 3| [Class] A2
0 commit comments