@@ -6432,6 +6432,120 @@ samConversion.kt:
6432
6432
# 59| -1: [VarAccess] i0
6433
6433
# 59| 0: [IntegerLiteral] 1
6434
6434
# 59| 1: [IntegerLiteral] 2
6435
+ # 74| 6: [Method] propertyRefsTest
6436
+ # 74| 3: [TypeAccess] Unit
6437
+ #-----| 4: (Parameters)
6438
+ # 74| 0: [Parameter] prt
6439
+ # 74| 0: [TypeAccess] PropertyRefsTest
6440
+ # 74| 5: [BlockStmt] { ... }
6441
+ # 75| 0: [LocalVariableDeclStmt] var ...;
6442
+ # 75| 1: [LocalVariableDeclExpr] test1
6443
+ # 75| 0: [CastExpr] (...)...
6444
+ # 75| 0: [TypeAccess] IntGetter
6445
+ # 75| 1: [ClassInstanceExpr] new (...)
6446
+ # 75| -4: [AnonymousClass] new IntGetter(...) { ... }
6447
+ # 75| 1: [Constructor]
6448
+ #-----| 4: (Parameters)
6449
+ # 75| 0: [Parameter] <fn>
6450
+ # 75| 5: [BlockStmt] { ... }
6451
+ # 75| 0: [SuperConstructorInvocationStmt] super(...)
6452
+ # 75| 1: [ExprStmt] <Expr>;
6453
+ # 75| 0: [AssignExpr] ...=...
6454
+ # 75| 0: [VarAccess] this.<fn>
6455
+ # 75| -1: [ThisAccess] this
6456
+ # 75| 1: [VarAccess] <fn>
6457
+ # 75| 2: [FieldDeclaration] Function0<Integer> <fn>;
6458
+ # 75| -1: [TypeAccess] Function0<Integer>
6459
+ # 75| 0: [TypeAccess] Integer
6460
+ # 75| 3: [Method] f
6461
+ # 75| 3: [TypeAccess] int
6462
+ # 75| 5: [BlockStmt] { ... }
6463
+ # 75| 0: [ReturnStmt] return ...
6464
+ # 75| 0: [MethodAccess] invoke(...)
6465
+ # 75| -1: [VarAccess] <fn>
6466
+ # 75| -3: [TypeAccess] IntGetter
6467
+ # 75| 0: [PropertyRefExpr] ...::...
6468
+ # 75| -4: [AnonymousClass] new KProperty0<Integer>(...) { ... }
6469
+ # 75| 1: [Constructor]
6470
+ #-----| 4: (Parameters)
6471
+ # 75| 0: [Parameter] <dispatchReceiver>
6472
+ # 75| 5: [BlockStmt] { ... }
6473
+ # 75| 0: [SuperConstructorInvocationStmt] super(...)
6474
+ # 75| 1: [ExprStmt] <Expr>;
6475
+ # 75| 0: [AssignExpr] ...=...
6476
+ # 75| 0: [VarAccess] this.<dispatchReceiver>
6477
+ # 75| -1: [ThisAccess] this
6478
+ # 75| 1: [VarAccess] <dispatchReceiver>
6479
+ # 75| 2: [FieldDeclaration] PropertyRefsTest <dispatchReceiver>;
6480
+ # 75| -1: [TypeAccess] PropertyRefsTest
6481
+ # 75| 3: [Method] get
6482
+ # 75| 5: [BlockStmt] { ... }
6483
+ # 75| 0: [ReturnStmt] return ...
6484
+ # 75| 0: [MethodAccess] getX(...)
6485
+ # 75| -1: [VarAccess] this.<dispatchReceiver>
6486
+ # 75| -1: [ThisAccess] this
6487
+ # 75| 4: [Method] invoke
6488
+ # 75| 5: [BlockStmt] { ... }
6489
+ # 75| 0: [ReturnStmt] return ...
6490
+ # 75| 0: [MethodAccess] get(...)
6491
+ # 75| -1: [ThisAccess] this
6492
+ # 75| -3: [TypeAccess] KProperty0<Integer>
6493
+ # 75| 0: [TypeAccess] Integer
6494
+ # 75| 0: [VarAccess] prt
6495
+ # 76| 1: [LocalVariableDeclStmt] var ...;
6496
+ # 76| 1: [LocalVariableDeclExpr] test2
6497
+ # 76| 0: [CastExpr] (...)...
6498
+ # 76| 0: [TypeAccess] PropertyRefsGetter
6499
+ # 76| 1: [ClassInstanceExpr] new (...)
6500
+ # 76| -4: [AnonymousClass] new PropertyRefsGetter(...) { ... }
6501
+ # 76| 1: [Constructor]
6502
+ #-----| 4: (Parameters)
6503
+ # 76| 0: [Parameter] <fn>
6504
+ # 76| 5: [BlockStmt] { ... }
6505
+ # 76| 0: [SuperConstructorInvocationStmt] super(...)
6506
+ # 76| 1: [ExprStmt] <Expr>;
6507
+ # 76| 0: [AssignExpr] ...=...
6508
+ # 76| 0: [VarAccess] this.<fn>
6509
+ # 76| -1: [ThisAccess] this
6510
+ # 76| 1: [VarAccess] <fn>
6511
+ # 76| 2: [FieldDeclaration] Function1<PropertyRefsTest,Integer> <fn>;
6512
+ # 76| -1: [TypeAccess] Function1<PropertyRefsTest,Integer>
6513
+ # 76| 0: [TypeAccess] PropertyRefsTest
6514
+ # 76| 1: [TypeAccess] Integer
6515
+ # 76| 3: [Method] f
6516
+ # 76| 3: [TypeAccess] int
6517
+ #-----| 4: (Parameters)
6518
+ # 76| 0: [Parameter] prt
6519
+ # 76| 0: [TypeAccess] PropertyRefsTest
6520
+ # 76| 5: [BlockStmt] { ... }
6521
+ # 76| 0: [ReturnStmt] return ...
6522
+ # 76| 0: [MethodAccess] invoke(...)
6523
+ # 76| -1: [VarAccess] <fn>
6524
+ # 76| 0: [VarAccess] prt
6525
+ # 76| -3: [TypeAccess] PropertyRefsGetter
6526
+ # 76| 0: [PropertyRefExpr] ...::...
6527
+ # 76| -4: [AnonymousClass] new KProperty1<PropertyRefsTest,Integer>(...) { ... }
6528
+ # 76| 1: [Constructor]
6529
+ # 76| 5: [BlockStmt] { ... }
6530
+ # 76| 0: [SuperConstructorInvocationStmt] super(...)
6531
+ # 76| 2: [Method] get
6532
+ #-----| 4: (Parameters)
6533
+ # 76| 0: [Parameter] a0
6534
+ # 76| 5: [BlockStmt] { ... }
6535
+ # 76| 0: [ReturnStmt] return ...
6536
+ # 76| 0: [MethodAccess] getX(...)
6537
+ # 76| -1: [VarAccess] a0
6538
+ # 76| 3: [Method] invoke
6539
+ #-----| 4: (Parameters)
6540
+ # 76| 0: [Parameter] a0
6541
+ # 76| 5: [BlockStmt] { ... }
6542
+ # 76| 0: [ReturnStmt] return ...
6543
+ # 76| 0: [MethodAccess] get(...)
6544
+ # 76| -1: [ThisAccess] this
6545
+ # 76| 0: [VarAccess] a0
6546
+ # 76| -3: [TypeAccess] KProperty1<PropertyRefsTest,Integer>
6547
+ # 76| 0: [TypeAccess] PropertyRefsTest
6548
+ # 76| 1: [TypeAccess] Integer
6435
6549
# 16| 2: [Interface] IntPredicate
6436
6550
# 17| 1: [Method] accept
6437
6551
# 17| 3: [TypeAccess] boolean
@@ -6520,6 +6634,32 @@ samConversion.kt:
6520
6634
# 54| 0: [TypeAccess] int
6521
6635
# 54| 1: [Parameter] j
6522
6636
# 54| 0: [TypeAccess] int
6637
+ # 62| 8: [Class] PropertyRefsTest
6638
+ # 62| 1: [Constructor] PropertyRefsTest
6639
+ # 62| 5: [BlockStmt] { ... }
6640
+ # 62| 0: [SuperConstructorInvocationStmt] super(...)
6641
+ # 62| 1: [BlockStmt] { ... }
6642
+ # 63| 0: [ExprStmt] <Expr>;
6643
+ # 63| 0: [KtInitializerAssignExpr] ...=...
6644
+ # 63| 0: [VarAccess] x
6645
+ # 63| 2: [Method] getX
6646
+ # 63| 3: [TypeAccess] int
6647
+ # 63| 5: [BlockStmt] { ... }
6648
+ # 63| 0: [ReturnStmt] return ...
6649
+ # 63| 0: [VarAccess] this.x
6650
+ # 63| -1: [ThisAccess] this
6651
+ # 63| 3: [FieldDeclaration] int x;
6652
+ # 63| -1: [TypeAccess] int
6653
+ # 63| 0: [IntegerLiteral] 1
6654
+ # 66| 9: [Interface] PropertyRefsGetter
6655
+ # 67| 1: [Method] f
6656
+ # 67| 3: [TypeAccess] int
6657
+ #-----| 4: (Parameters)
6658
+ # 67| 0: [Parameter] prt
6659
+ # 67| 0: [TypeAccess] PropertyRefsTest
6660
+ # 70| 10: [Interface] IntGetter
6661
+ # 71| 1: [Method] f
6662
+ # 71| 3: [TypeAccess] int
6523
6663
whenExpr.kt:
6524
6664
# 0| [CompilationUnit] whenExpr
6525
6665
# 0| 1: [Class] WhenExprKt
0 commit comments