@@ -498,6 +498,66 @@ classes.kt:
498498# 127| 1: [ExprStmt] <Expr>;
499499# 127| 0: [ClassInstanceExpr] new (...)
500500# 127| -3: [TypeAccess] Object
501+ # 138| 25: [Class,GenericType,ParameterizedType] Cl0
502+ #-----| -2: (Generic Parameters)
503+ # 138| 0: [TypeVariable] U0
504+ # 138| 1: [Constructor] Cl0
505+ # 138| 5: [BlockStmt] { ... }
506+ # 138| 0: [SuperConstructorInvocationStmt] super(...)
507+ # 138| 1: [BlockStmt] { ... }
508+ # 139| 2: [Method] func1
509+ #-----| 2: (Generic Parameters)
510+ # 139| 0: [TypeVariable] U1
511+ # 139| 3: [TypeAccess] Unit
512+ # 139| 5: [BlockStmt] { ... }
513+ # 140| 0: [LocalTypeDeclStmt] class ...
514+ # 140| 0: [LocalClass]
515+ # 140| 1: [Constructor]
516+ # 140| 5: [BlockStmt] { ... }
517+ # 140| 0: [SuperConstructorInvocationStmt] super(...)
518+ # 140| 2: [Method] func2
519+ #-----| 2: (Generic Parameters)
520+ # 140| 0: [TypeVariable] U2
521+ # 140| 3: [TypeAccess] Unit
522+ # 140| 5: [BlockStmt] { ... }
523+ # 141| 0: [LocalTypeDeclStmt] class ...
524+ # 141| 0: [Class,GenericType,LocalClass,ParameterizedType] Cl1
525+ #-----| -2: (Generic Parameters)
526+ # 141| 0: [TypeVariable] U3
527+ # 141| 1: [Constructor] Cl1
528+ # 141| 5: [BlockStmt] { ... }
529+ # 141| 0: [SuperConstructorInvocationStmt] super(...)
530+ # 141| 1: [BlockStmt] { ... }
531+ # 142| 2: [Method] fn
532+ # 142| 3: [TypeAccess] Unit
533+ # 142| 5: [BlockStmt] { ... }
534+ # 143| 0: [LocalVariableDeclStmt] var ...;
535+ # 143| 1: [LocalVariableDeclExpr] x
536+ # 143| 0: [ClassInstanceExpr] new Cl1(...)
537+ # 143| -3: [TypeAccess] Cl1
538+ # 143| 0: [TypeAccess] U3
539+ # 150| 26: [Class,GenericType,ParameterizedType] Cl00
540+ #-----| -2: (Generic Parameters)
541+ # 150| 0: [TypeVariable] U0
542+ # 150| 1: [Constructor] Cl00
543+ # 150| 5: [BlockStmt] { ... }
544+ # 150| 0: [SuperConstructorInvocationStmt] super(...)
545+ # 150| 1: [BlockStmt] { ... }
546+ # 151| 2: [Class,GenericType,ParameterizedType] Cl01
547+ #-----| -2: (Generic Parameters)
548+ # 151| 0: [TypeVariable] U1
549+ # 151| 1: [Constructor] Cl01
550+ # 151| 5: [BlockStmt] { ... }
551+ # 151| 0: [SuperConstructorInvocationStmt] super(...)
552+ # 151| 1: [BlockStmt] { ... }
553+ # 152| 2: [Method] fn
554+ # 152| 3: [TypeAccess] Unit
555+ # 152| 5: [BlockStmt] { ... }
556+ # 153| 0: [LocalVariableDeclStmt] var ...;
557+ # 153| 1: [LocalVariableDeclExpr] x
558+ # 153| 0: [ClassInstanceExpr] new Cl01(...)
559+ # 153| -3: [TypeAccess] Cl01
560+ # 153| 0: [TypeAccess] U1
501561generic_anonymous.kt:
502562# 0| [CompilationUnit] generic_anonymous
503563# 0| 1: [Class] Generic_anonymousKt
@@ -592,6 +652,114 @@ generic_anonymous.kt:
592652# 7| 0: [MethodAccess] getMember(...)
593653# 7| -1: [MethodAccess] getX$private(...)
594654# 7| -1: [ThisAccess] this
655+ # 15| 3: [Class,GenericType,ParameterizedType] Outer
656+ #-----| -2: (Generic Parameters)
657+ # 15| 0: [TypeVariable] T0
658+ # 15| 6: [Constructor] Outer
659+ # 15| 5: [BlockStmt] { ... }
660+ # 15| 0: [SuperConstructorInvocationStmt] super(...)
661+ # 15| 1: [BlockStmt] { ... }
662+ # 16| 7: [GenericType,Interface,ParameterizedType] C0
663+ #-----| -2: (Generic Parameters)
664+ # 16| 0: [TypeVariable] T0
665+ # 17| 1: [Method] fn0
666+ # 17| 3: [TypeAccess] T0
667+ # 17| 5: [BlockStmt] { ... }
668+ # 17| 0: [ReturnStmt] return ...
669+ # 17| 0: [NullLiteral] null
670+ # 20| 8: [GenericType,Interface,ParameterizedType] C1
671+ #-----| -2: (Generic Parameters)
672+ # 20| 0: [TypeVariable] T1
673+ # 21| 1: [Method] fn1
674+ # 21| 3: [TypeAccess] T1
675+ # 21| 5: [BlockStmt] { ... }
676+ # 21| 0: [ReturnStmt] return ...
677+ # 21| 0: [NullLiteral] null
678+ # 24| 9: [Method] func1
679+ #-----| 2: (Generic Parameters)
680+ # 24| 0: [TypeVariable] U2
681+ # 24| 3: [TypeAccess] Unit
682+ # 24| 5: [BlockStmt] { ... }
683+ # 25| 0: [LocalTypeDeclStmt] class ...
684+ # 25| 0: [LocalClass]
685+ # 25| 1: [Constructor]
686+ # 25| 5: [BlockStmt] { ... }
687+ # 25| 0: [SuperConstructorInvocationStmt] super(...)
688+ # 25| 2: [Method] func2
689+ #-----| 2: (Generic Parameters)
690+ # 25| 0: [TypeVariable] U3
691+ # 25| 3: [TypeAccess] Unit
692+ # 25| 5: [BlockStmt] { ... }
693+ # 26| 0: [ExprStmt] <Expr>;
694+ # 26| 0: [ImplicitCoercionToUnitExpr] <implicit coercion to unit>
695+ # 26| 0: [TypeAccess] Unit
696+ # 26| 1: [StmtExpr] <Stmt>
697+ # 26| 0: [BlockStmt] { ... }
698+ # 26| 0: [LocalTypeDeclStmt] class ...
699+ # 26| 0: [AnonymousClass,LocalClass] new Object(...) { ... }
700+ # 26| 1: [Constructor]
701+ # 26| 5: [BlockStmt] { ... }
702+ # 26| 0: [SuperConstructorInvocationStmt] super(...)
703+ # 26| 1: [BlockStmt] { ... }
704+ # 26| 1: [ExprStmt] <Expr>;
705+ # 26| 0: [ClassInstanceExpr] new (...)
706+ # 26| -3: [TypeAccess] Object
707+ # 27| 1: [ExprStmt] <Expr>;
708+ # 27| 0: [ImplicitCoercionToUnitExpr] <implicit coercion to unit>
709+ # 27| 0: [TypeAccess] Unit
710+ # 27| 1: [StmtExpr] <Stmt>
711+ # 27| 0: [BlockStmt] { ... }
712+ # 27| 0: [LocalTypeDeclStmt] class ...
713+ # 27| 0: [AnonymousClass,LocalClass] new Object(...) { ... }
714+ # 27| 1: [Constructor]
715+ # 27| 5: [BlockStmt] { ... }
716+ # 27| 0: [SuperConstructorInvocationStmt] super(...)
717+ # 27| 1: [BlockStmt] { ... }
718+ # 27| 1: [ExprStmt] <Expr>;
719+ # 27| 0: [ClassInstanceExpr] new (...)
720+ # 27| -3: [TypeAccess] Object
721+ # 28| 2: [ExprStmt] <Expr>;
722+ # 28| 0: [ImplicitCoercionToUnitExpr] <implicit coercion to unit>
723+ # 28| 0: [TypeAccess] Unit
724+ # 28| 1: [StmtExpr] <Stmt>
725+ # 28| 0: [BlockStmt] { ... }
726+ # 28| 0: [LocalTypeDeclStmt] class ...
727+ # 28| 0: [AnonymousClass,LocalClass] new Object(...) { ... }
728+ # 28| 1: [Constructor]
729+ # 28| 5: [BlockStmt] { ... }
730+ # 28| 0: [SuperConstructorInvocationStmt] super(...)
731+ # 28| 1: [BlockStmt] { ... }
732+ # 28| 1: [ExprStmt] <Expr>;
733+ # 28| 0: [ClassInstanceExpr] new (...)
734+ # 28| -3: [TypeAccess] Object
735+ # 29| 3: [ExprStmt] <Expr>;
736+ # 29| 0: [ImplicitCoercionToUnitExpr] <implicit coercion to unit>
737+ # 29| 0: [TypeAccess] Unit
738+ # 29| 1: [StmtExpr] <Stmt>
739+ # 29| 0: [BlockStmt] { ... }
740+ # 29| 0: [LocalTypeDeclStmt] class ...
741+ # 29| 0: [AnonymousClass,LocalClass] new C0<U2>(...) { ... }
742+ # 29| 1: [Constructor]
743+ # 29| 5: [BlockStmt] { ... }
744+ # 29| 0: [SuperConstructorInvocationStmt] super(...)
745+ # 29| 1: [BlockStmt] { ... }
746+ # 29| 1: [ExprStmt] <Expr>;
747+ # 29| 0: [ClassInstanceExpr] new (...)
748+ # 29| -3: [TypeAccess] C0<U2>
749+ # 30| 4: [ExprStmt] <Expr>;
750+ # 30| 0: [ImplicitCoercionToUnitExpr] <implicit coercion to unit>
751+ # 30| 0: [TypeAccess] Unit
752+ # 30| 1: [StmtExpr] <Stmt>
753+ # 30| 0: [BlockStmt] { ... }
754+ # 30| 0: [LocalTypeDeclStmt] class ...
755+ # 30| 0: [AnonymousClass,LocalClass] new C0<String>(...) { ... }
756+ # 30| 1: [Constructor]
757+ # 30| 5: [BlockStmt] { ... }
758+ # 30| 0: [SuperConstructorInvocationStmt] super(...)
759+ # 30| 1: [BlockStmt] { ... }
760+ # 30| 1: [ExprStmt] <Expr>;
761+ # 30| 0: [ClassInstanceExpr] new (...)
762+ # 30| -3: [TypeAccess] C0<String>
595763localClassField.kt:
596764# 0| [CompilationUnit] localClassField
597765# 1| 1: [Class] A
0 commit comments