1
1
app/src/main/kotlin/testProject/App.kt:
2
2
# 0| [CompilationUnit] App
3
3
# 7| 1: [Class] Project
4
+ #-----| -3: (Annotations)
5
+ # 7| 1: [Annotation] Serializable
4
6
# 0| 1: [Constructor] Project
7
+ #-----| 1: (Annotations)
8
+ # 0| 1: [Annotation] Deprecated
9
+ # 0| 1: [StringLiteral] "This synthesized declaration should not be used directly"
10
+ # 0| 2: [Annotation] ReplaceWith
11
+ # 0| 1: [StringLiteral] ""
12
+ # 0| 2: [ArrayInit] {...}
13
+ # 0| 3: [VarAccess] DeprecationLevel.HIDDEN
14
+ # 0| -1: [TypeAccess] DeprecationLevel
15
+ # 0| 2: [Annotation] NotNull
5
16
#-----| 4: (Parameters)
6
17
# 0| 0: [Parameter] seen1
7
18
# 0| 0: [TypeAccess] int
@@ -41,6 +52,8 @@ app/src/main/kotlin/testProject/App.kt:
41
52
# 7| 0: [TypeAccess] Project
42
53
# 7| 1: [VarAccess] language
43
54
# 0| 2: [Method] component1
55
+ #-----| 1: (Annotations)
56
+ # 0| 1: [Annotation] NotNull
44
57
# 0| 3: [TypeAccess] String
45
58
# 0| 5: [BlockStmt] { ... }
46
59
# 0| 0: [ReturnStmt] return ...
@@ -53,9 +66,13 @@ app/src/main/kotlin/testProject/App.kt:
53
66
# 0| 0: [VarAccess] this.language
54
67
# 0| -1: [ThisAccess] this
55
68
# 0| 4: [Method] copy
69
+ #-----| 1: (Annotations)
70
+ # 0| 1: [Annotation] NotNull
56
71
# 0| 3: [TypeAccess] Project
57
72
#-----| 4: (Parameters)
58
73
# 8| 0: [Parameter] name
74
+ #-----| -1: (Annotations)
75
+ # 0| 1: [Annotation] NotNull
59
76
# 8| 0: [TypeAccess] String
60
77
# 8| 1: [Parameter] language
61
78
# 8| 0: [TypeAccess] int
@@ -176,6 +193,8 @@ app/src/main/kotlin/testProject/App.kt:
176
193
# 0| 2: [ReturnStmt] return ...
177
194
# 0| 0: [VarAccess] result
178
195
# 0| 8: [Method] toString
196
+ #-----| 1: (Annotations)
197
+ # 0| 1: [Annotation] NotNull
179
198
# 0| 3: [TypeAccess] String
180
199
# 0| 5: [BlockStmt] { ... }
181
200
# 0| 0: [ReturnStmt] return ...
@@ -190,13 +209,21 @@ app/src/main/kotlin/testProject/App.kt:
190
209
# 0| -1: [ThisAccess] this
191
210
# 0| 6: [StringLiteral] ")"
192
211
# 0| 9: [Method] write$Self
212
+ #-----| 1: (Annotations)
213
+ # 0| 1: [Annotation] JvmStatic
193
214
# 0| 3: [TypeAccess] Unit
194
215
#-----| 4: (Parameters)
195
216
# 0| 0: [Parameter] self
217
+ #-----| -1: (Annotations)
218
+ # 0| 1: [Annotation] NotNull
196
219
# 0| 0: [TypeAccess] Project
197
220
# 0| 1: [Parameter] output
221
+ #-----| -1: (Annotations)
222
+ # 0| 1: [Annotation] NotNull
198
223
# 0| 0: [TypeAccess] CompositeEncoder
199
224
# 0| 2: [Parameter] serialDesc
225
+ #-----| -1: (Annotations)
226
+ # 0| 1: [Annotation] NotNull
200
227
# 0| 0: [TypeAccess] SerialDescriptor
201
228
# 7| 5: [BlockStmt] { ... }
202
229
# 7| 0: [ExprStmt] <Expr>;
@@ -214,9 +241,19 @@ app/src/main/kotlin/testProject/App.kt:
214
241
# 7| 2: [MethodAccess] getLanguage(...)
215
242
# 7| -1: [VarAccess] self
216
243
# 7| 10: [Class] $serializer
244
+ #-----| -3: (Annotations)
245
+ # 0| 1: [Annotation] Deprecated
246
+ # 0| 1: [StringLiteral] "This synthesized declaration should not be used directly"
247
+ # 0| 2: [Annotation] ReplaceWith
248
+ # 0| 1: [StringLiteral] ""
249
+ # 0| 2: [ArrayInit] {...}
250
+ # 0| 3: [VarAccess] DeprecationLevel.HIDDEN
251
+ # 0| -1: [TypeAccess] DeprecationLevel
217
252
# 0| 1: [FieldDeclaration] SerialDescriptor descriptor;
218
253
# 0| -1: [TypeAccess] SerialDescriptor
219
254
# 0| 2: [Method] childSerializers
255
+ #-----| 1: (Annotations)
256
+ # 0| 1: [Annotation] NotNull
220
257
# 0| 3: [TypeAccess] KSerializer<?>[]
221
258
# 0| 0: [TypeAccess] KSerializer<?>
222
259
# 0| 0: [WildcardTypeAccess] ? ...
@@ -227,9 +264,13 @@ app/src/main/kotlin/testProject/App.kt:
227
264
# 7| -1: [TypeAccess] KSerializer<?>
228
265
# 7| 0: [IntegerLiteral] 2
229
266
# 0| 3: [Method] deserialize
267
+ #-----| 1: (Annotations)
268
+ # 0| 1: [Annotation] NotNull
230
269
# 0| 3: [TypeAccess] Project
231
270
#-----| 4: (Parameters)
232
271
# 0| 0: [Parameter] decoder
272
+ #-----| -1: (Annotations)
273
+ # 0| 1: [Annotation] NotNull
233
274
# 0| 0: [TypeAccess] Decoder
234
275
# 7| 5: [BlockStmt] { ... }
235
276
# 7| 0: [LocalVariableDeclStmt] var ...;
@@ -365,6 +406,8 @@ app/src/main/kotlin/testProject/App.kt:
365
406
# 7| 2: [VarAccess] tmp5_local1
366
407
# 7| 3: [NullLiteral] null
367
408
# 0| 4: [Method] getDescriptor
409
+ #-----| 1: (Annotations)
410
+ # 0| 1: [Annotation] NotNull
368
411
# 0| 3: [TypeAccess] SerialDescriptor
369
412
# 0| 5: [BlockStmt] { ... }
370
413
# 0| 0: [ReturnStmt] return ...
@@ -374,8 +417,12 @@ app/src/main/kotlin/testProject/App.kt:
374
417
# 0| 3: [TypeAccess] Unit
375
418
#-----| 4: (Parameters)
376
419
# 0| 0: [Parameter] encoder
420
+ #-----| -1: (Annotations)
421
+ # 0| 1: [Annotation] NotNull
377
422
# 0| 0: [TypeAccess] Encoder
378
423
# 0| 1: [Parameter] value
424
+ #-----| -1: (Annotations)
425
+ # 0| 1: [Annotation] NotNull
379
426
# 0| 0: [TypeAccess] Project
380
427
# 7| 5: [BlockStmt] { ... }
381
428
# 7| 0: [LocalVariableDeclStmt] var ...;
@@ -398,6 +445,8 @@ app/src/main/kotlin/testProject/App.kt:
398
445
# 7| -1: [VarAccess] tmp1_output
399
446
# 7| 0: [VarAccess] tmp0_desc
400
447
# 7| 6: [Constructor] $serializer
448
+ #-----| 1: (Annotations)
449
+ # 0| 1: [Annotation] NotNull
401
450
# 7| 5: [BlockStmt] { ... }
402
451
# 7| 0: [SuperConstructorInvocationStmt] super(...)
403
452
# 7| 1: [BlockStmt] { ... }
@@ -436,18 +485,26 @@ app/src/main/kotlin/testProject/App.kt:
436
485
# 7| 0: [TypeAccess] GeneratedSerializer
437
486
# 7| 11: [Class] Companion
438
487
# 0| 1: [Method] serializer
488
+ #-----| 1: (Annotations)
489
+ # 0| 1: [Annotation] NotNull
439
490
# 0| 3: [TypeAccess] KSerializer<Project>
440
491
# 0| 0: [TypeAccess] Project
441
492
# 7| 5: [BlockStmt] { ... }
442
493
# 7| 0: [ReturnStmt] return ...
443
494
# 7| 0: [VarAccess] INSTANCE
444
495
# 7| 2: [Constructor] Companion
496
+ #-----| 1: (Annotations)
497
+ # 0| 1: [Annotation] NotNull
445
498
# 7| 5: [BlockStmt] { ... }
446
499
# 7| 0: [SuperConstructorInvocationStmt] super(...)
447
500
# 7| 1: [BlockStmt] { ... }
448
501
# 8| 12: [Constructor] Project
502
+ #-----| 1: (Annotations)
503
+ # 0| 1: [Annotation] NotNull
449
504
#-----| 4: (Parameters)
450
505
# 8| 0: [Parameter] name
506
+ #-----| -1: (Annotations)
507
+ # 0| 1: [Annotation] NotNull
451
508
# 8| 0: [TypeAccess] String
452
509
# 8| 1: [Parameter] language
453
510
# 8| 0: [TypeAccess] int
@@ -464,6 +521,8 @@ app/src/main/kotlin/testProject/App.kt:
464
521
# 8| -1: [TypeAccess] String
465
522
# 8| 0: [VarAccess] name
466
523
# 8| 14: [Method] getName
524
+ #-----| 1: (Annotations)
525
+ # 0| 1: [Annotation] NotNull
467
526
# 8| 3: [TypeAccess] String
468
527
# 8| 5: [BlockStmt] { ... }
469
528
# 8| 0: [ReturnStmt] return ...
@@ -480,9 +539,22 @@ app/src/main/kotlin/testProject/App.kt:
480
539
# 8| 0: [VarAccess] language
481
540
# 10| 2: [Interface] Base
482
541
# 11| 1: [Method] getId
542
+ #-----| 1: (Annotations)
543
+ # 0| 1: [Annotation] NotNull
483
544
# 11| 3: [TypeAccess] String
484
545
# 14| 3: [Class] X
546
+ #-----| -3: (Annotations)
547
+ # 14| 1: [Annotation] Serializable
485
548
# 0| 1: [Constructor] X
549
+ #-----| 1: (Annotations)
550
+ # 0| 1: [Annotation] Deprecated
551
+ # 0| 1: [StringLiteral] "This synthesized declaration should not be used directly"
552
+ # 0| 2: [Annotation] ReplaceWith
553
+ # 0| 1: [StringLiteral] ""
554
+ # 0| 2: [ArrayInit] {...}
555
+ # 0| 3: [VarAccess] DeprecationLevel.HIDDEN
556
+ # 0| -1: [TypeAccess] DeprecationLevel
557
+ # 0| 2: [Annotation] NotNull
486
558
#-----| 4: (Parameters)
487
559
# 0| 0: [Parameter] seen1
488
560
# 0| 0: [TypeAccess] int
@@ -530,13 +602,21 @@ app/src/main/kotlin/testProject/App.kt:
530
602
# 14| 0: [TypeAccess] X
531
603
# 14| 1: [VarAccess] id
532
604
# 0| 2: [Method] write$Self
605
+ #-----| 1: (Annotations)
606
+ # 0| 1: [Annotation] JvmStatic
533
607
# 0| 3: [TypeAccess] Unit
534
608
#-----| 4: (Parameters)
535
609
# 0| 0: [Parameter] self
610
+ #-----| -1: (Annotations)
611
+ # 0| 1: [Annotation] NotNull
536
612
# 0| 0: [TypeAccess] X
537
613
# 0| 1: [Parameter] output
614
+ #-----| -1: (Annotations)
615
+ # 0| 1: [Annotation] NotNull
538
616
# 0| 0: [TypeAccess] CompositeEncoder
539
617
# 0| 2: [Parameter] serialDesc
618
+ #-----| -1: (Annotations)
619
+ # 0| 1: [Annotation] NotNull
540
620
# 0| 0: [TypeAccess] SerialDescriptor
541
621
# 14| 5: [BlockStmt] { ... }
542
622
# 14| 0: [ExprStmt] <Expr>;
@@ -565,9 +645,19 @@ app/src/main/kotlin/testProject/App.kt:
565
645
# 14| 2: [MethodAccess] getId(...)
566
646
# 14| -1: [VarAccess] self
567
647
# 14| 3: [Class] $serializer
648
+ #-----| -3: (Annotations)
649
+ # 0| 1: [Annotation] Deprecated
650
+ # 0| 1: [StringLiteral] "This synthesized declaration should not be used directly"
651
+ # 0| 2: [Annotation] ReplaceWith
652
+ # 0| 1: [StringLiteral] ""
653
+ # 0| 2: [ArrayInit] {...}
654
+ # 0| 3: [VarAccess] DeprecationLevel.HIDDEN
655
+ # 0| -1: [TypeAccess] DeprecationLevel
568
656
# 0| 1: [FieldDeclaration] SerialDescriptor descriptor;
569
657
# 0| -1: [TypeAccess] SerialDescriptor
570
658
# 0| 2: [Method] childSerializers
659
+ #-----| 1: (Annotations)
660
+ # 0| 1: [Annotation] NotNull
571
661
# 0| 3: [TypeAccess] KSerializer<?>[]
572
662
# 0| 0: [TypeAccess] KSerializer<?>
573
663
# 0| 0: [WildcardTypeAccess] ? ...
@@ -578,9 +668,13 @@ app/src/main/kotlin/testProject/App.kt:
578
668
# 14| -1: [TypeAccess] KSerializer<?>
579
669
# 14| 0: [IntegerLiteral] 1
580
670
# 0| 3: [Method] deserialize
671
+ #-----| 1: (Annotations)
672
+ # 0| 1: [Annotation] NotNull
581
673
# 0| 3: [TypeAccess] X
582
674
#-----| 4: (Parameters)
583
675
# 0| 0: [Parameter] decoder
676
+ #-----| -1: (Annotations)
677
+ # 0| 1: [Annotation] NotNull
584
678
# 0| 0: [TypeAccess] Decoder
585
679
# 14| 5: [BlockStmt] { ... }
586
680
# 14| 0: [LocalVariableDeclStmt] var ...;
@@ -680,6 +774,8 @@ app/src/main/kotlin/testProject/App.kt:
680
774
# 14| 1: [VarAccess] tmp4_local0
681
775
# 14| 2: [NullLiteral] null
682
776
# 0| 4: [Method] getDescriptor
777
+ #-----| 1: (Annotations)
778
+ # 0| 1: [Annotation] NotNull
683
779
# 0| 3: [TypeAccess] SerialDescriptor
684
780
# 0| 5: [BlockStmt] { ... }
685
781
# 0| 0: [ReturnStmt] return ...
@@ -689,8 +785,12 @@ app/src/main/kotlin/testProject/App.kt:
689
785
# 0| 3: [TypeAccess] Unit
690
786
#-----| 4: (Parameters)
691
787
# 0| 0: [Parameter] encoder
788
+ #-----| -1: (Annotations)
789
+ # 0| 1: [Annotation] NotNull
692
790
# 0| 0: [TypeAccess] Encoder
693
791
# 0| 1: [Parameter] value
792
+ #-----| -1: (Annotations)
793
+ # 0| 1: [Annotation] NotNull
694
794
# 0| 0: [TypeAccess] X
695
795
# 14| 5: [BlockStmt] { ... }
696
796
# 14| 0: [LocalVariableDeclStmt] var ...;
@@ -713,6 +813,8 @@ app/src/main/kotlin/testProject/App.kt:
713
813
# 14| -1: [VarAccess] tmp1_output
714
814
# 14| 0: [VarAccess] tmp0_desc
715
815
# 14| 6: [Constructor] $serializer
816
+ #-----| 1: (Annotations)
817
+ # 0| 1: [Annotation] NotNull
716
818
# 14| 5: [BlockStmt] { ... }
717
819
# 14| 0: [SuperConstructorInvocationStmt] super(...)
718
820
# 14| 1: [BlockStmt] { ... }
@@ -746,16 +848,22 @@ app/src/main/kotlin/testProject/App.kt:
746
848
# 14| 0: [TypeAccess] GeneratedSerializer
747
849
# 14| 4: [Class] Companion
748
850
# 0| 1: [Method] serializer
851
+ #-----| 1: (Annotations)
852
+ # 0| 1: [Annotation] NotNull
749
853
# 0| 3: [TypeAccess] KSerializer<X>
750
854
# 0| 0: [TypeAccess] X
751
855
# 14| 5: [BlockStmt] { ... }
752
856
# 14| 0: [ReturnStmt] return ...
753
857
# 14| 0: [VarAccess] INSTANCE
754
858
# 14| 2: [Constructor] Companion
859
+ #-----| 1: (Annotations)
860
+ # 0| 1: [Annotation] NotNull
755
861
# 14| 5: [BlockStmt] { ... }
756
862
# 14| 0: [SuperConstructorInvocationStmt] super(...)
757
863
# 14| 1: [BlockStmt] { ... }
758
864
# 15| 5: [Constructor] X
865
+ #-----| 1: (Annotations)
866
+ # 0| 1: [Annotation] NotNull
759
867
# 14| 5: [BlockStmt] { ... }
760
868
# 14| 0: [SuperConstructorInvocationStmt] super(...)
761
869
# 15| 1: [BlockStmt] { ... }
@@ -766,6 +874,8 @@ app/src/main/kotlin/testProject/App.kt:
766
874
# 16| -1: [TypeAccess] String
767
875
# 16| 0: [StringLiteral] "X"
768
876
# 16| 7: [Method] getId
877
+ #-----| 1: (Annotations)
878
+ # 0| 1: [Annotation] NotNull
769
879
# 16| 3: [TypeAccess] String
770
880
# 16| 5: [BlockStmt] { ... }
771
881
# 16| 0: [ReturnStmt] return ...
0 commit comments