@ant-yasa/uast-parser-java-js 0.1.21 → 0.1.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/output.txt DELETED
@@ -1,3820 +0,0 @@
1
- {
2
- "type": "CompileUnit",
3
- "body": [
4
- {
5
- "type": "PackageDeclaration",
6
- "name": {
7
- "type": "MemberAccess",
8
- "object": {
9
- "type": "Identifier",
10
- "name": "com",
11
- "_meta": {},
12
- "loc": {
13
- "start": {
14
- "line": 1,
15
- "column": 0
16
- },
17
- "end": {
18
- "line": 1,
19
- "column": 44
20
- }
21
- }
22
- },
23
- "property": {
24
- "type": "MemberAccess",
25
- "object": {
26
- "type": "Identifier",
27
- "name": "alipay",
28
- "_meta": {},
29
- "loc": {
30
- "start": {
31
- "line": 1,
32
- "column": 0
33
- },
34
- "end": {
35
- "line": 1,
36
- "column": 44
37
- }
38
- }
39
- },
40
- "property": {
41
- "type": "MemberAccess",
42
- "object": {
43
- "type": "Identifier",
44
- "name": "sts",
45
- "_meta": {},
46
- "loc": {
47
- "start": {
48
- "line": 1,
49
- "column": 0
50
- },
51
- "end": {
52
- "line": 1,
53
- "column": 44
54
- }
55
- }
56
- },
57
- "property": {
58
- "type": "MemberAccess",
59
- "object": {
60
- "type": "Identifier",
61
- "name": "jdtplus",
62
- "_meta": {},
63
- "loc": {
64
- "start": {
65
- "line": 1,
66
- "column": 0
67
- },
68
- "end": {
69
- "line": 1,
70
- "column": 44
71
- }
72
- }
73
- },
74
- "property": {
75
- "type": "MemberAccess",
76
- "object": {
77
- "type": "Identifier",
78
- "name": "antgraph",
79
- "_meta": {},
80
- "loc": {
81
- "start": {
82
- "line": 1,
83
- "column": 0
84
- },
85
- "end": {
86
- "line": 1,
87
- "column": 44
88
- }
89
- }
90
- },
91
- "property": {
92
- "type": "Identifier",
93
- "name": "util",
94
- "_meta": {},
95
- "loc": {
96
- "start": {
97
- "line": 1,
98
- "column": 0
99
- },
100
- "end": {
101
- "line": 1,
102
- "column": 44
103
- }
104
- }
105
- },
106
- "computed": false,
107
- "_meta": {},
108
- "loc": {
109
- "start": {
110
- "line": 1,
111
- "column": 0
112
- },
113
- "end": {
114
- "line": 1,
115
- "column": 44
116
- }
117
- }
118
- },
119
- "computed": false,
120
- "_meta": {},
121
- "loc": {
122
- "start": {
123
- "line": 1,
124
- "column": 0
125
- },
126
- "end": {
127
- "line": 1,
128
- "column": 44
129
- }
130
- }
131
- },
132
- "computed": false,
133
- "_meta": {},
134
- "loc": {
135
- "start": {
136
- "line": 1,
137
- "column": 0
138
- },
139
- "end": {
140
- "line": 1,
141
- "column": 44
142
- }
143
- }
144
- },
145
- "computed": false,
146
- "_meta": {},
147
- "loc": {
148
- "start": {
149
- "line": 1,
150
- "column": 0
151
- },
152
- "end": {
153
- "line": 1,
154
- "column": 44
155
- }
156
- }
157
- },
158
- "computed": false,
159
- "_meta": {},
160
- "loc": {
161
- "start": {
162
- "line": 1,
163
- "column": 0
164
- },
165
- "end": {
166
- "line": 1,
167
- "column": 44
168
- }
169
- }
170
- },
171
- "_meta": {},
172
- "loc": {
173
- "start": {
174
- "line": 1,
175
- "column": 0
176
- },
177
- "end": {
178
- "line": 1,
179
- "column": 44
180
- }
181
- }
182
- },
183
- {
184
- "type": "VariableDeclaration",
185
- "id": {
186
- "type": "Identifier",
187
- "name": "ArrayList",
188
- "_meta": {},
189
- "loc": {
190
- "start": {
191
- "line": 3,
192
- "column": 0
193
- },
194
- "end": {
195
- "line": 3,
196
- "column": 26
197
- }
198
- }
199
- },
200
- "init": {
201
- "type": "ImportExpression",
202
- "from": {
203
- "type": "Literal",
204
- "value": "java.util.ArrayList",
205
- "literalType": "string",
206
- "_meta": {},
207
- "loc": {
208
- "start": {
209
- "line": 3,
210
- "column": 0
211
- },
212
- "end": {
213
- "line": 3,
214
- "column": 26
215
- }
216
- }
217
- },
218
- "local": null,
219
- "imported": null,
220
- "_meta": {},
221
- "loc": {
222
- "start": {
223
- "line": 3,
224
- "column": 0
225
- },
226
- "end": {
227
- "line": 3,
228
- "column": 26
229
- }
230
- }
231
- },
232
- "cloned": false,
233
- "varType": {
234
- "type": "ScopedType",
235
- "id": {
236
- "type": "Identifier",
237
- "name": "java.util.ArrayList",
238
- "_meta": {},
239
- "loc": {
240
- "start": {
241
- "line": 3,
242
- "column": 0
243
- },
244
- "end": {
245
- "line": 3,
246
- "column": 26
247
- }
248
- }
249
- },
250
- "scope": null,
251
- "typeArguments": null,
252
- "_meta": {},
253
- "loc": {
254
- "start": {
255
- "line": 3,
256
- "column": 0
257
- },
258
- "end": {
259
- "line": 3,
260
- "column": 26
261
- }
262
- }
263
- },
264
- "_meta": {},
265
- "loc": {
266
- "start": {
267
- "line": 3,
268
- "column": 0
269
- },
270
- "end": {
271
- "line": 3,
272
- "column": 26
273
- }
274
- }
275
- },
276
- {
277
- "type": "VariableDeclaration",
278
- "id": {
279
- "type": "Identifier",
280
- "name": "List",
281
- "_meta": {},
282
- "loc": {
283
- "start": {
284
- "line": 4,
285
- "column": 0
286
- },
287
- "end": {
288
- "line": 4,
289
- "column": 21
290
- }
291
- }
292
- },
293
- "init": {
294
- "type": "ImportExpression",
295
- "from": {
296
- "type": "Literal",
297
- "value": "java.util.List",
298
- "literalType": "string",
299
- "_meta": {},
300
- "loc": {
301
- "start": {
302
- "line": 4,
303
- "column": 0
304
- },
305
- "end": {
306
- "line": 4,
307
- "column": 21
308
- }
309
- }
310
- },
311
- "local": null,
312
- "imported": null,
313
- "_meta": {},
314
- "loc": {
315
- "start": {
316
- "line": 4,
317
- "column": 0
318
- },
319
- "end": {
320
- "line": 4,
321
- "column": 21
322
- }
323
- }
324
- },
325
- "cloned": false,
326
- "varType": {
327
- "type": "ScopedType",
328
- "id": {
329
- "type": "Identifier",
330
- "name": "java.util.List",
331
- "_meta": {},
332
- "loc": {
333
- "start": {
334
- "line": 4,
335
- "column": 0
336
- },
337
- "end": {
338
- "line": 4,
339
- "column": 21
340
- }
341
- }
342
- },
343
- "scope": null,
344
- "typeArguments": null,
345
- "_meta": {},
346
- "loc": {
347
- "start": {
348
- "line": 4,
349
- "column": 0
350
- },
351
- "end": {
352
- "line": 4,
353
- "column": 21
354
- }
355
- }
356
- },
357
- "_meta": {},
358
- "loc": {
359
- "start": {
360
- "line": 4,
361
- "column": 0
362
- },
363
- "end": {
364
- "line": 4,
365
- "column": 21
366
- }
367
- }
368
- },
369
- {
370
- "type": "ClassDefinition",
371
- "id": {
372
- "type": "Identifier",
373
- "name": "Box",
374
- "_meta": {},
375
- "loc": {
376
- "start": {
377
- "line": 7,
378
- "column": 6
379
- },
380
- "end": {
381
- "line": 7,
382
- "column": 6
383
- }
384
- }
385
- },
386
- "body": [
387
- {
388
- "type": "VariableDeclaration",
389
- "id": {
390
- "type": "Identifier",
391
- "name": "item",
392
- "_meta": {},
393
- "loc": {
394
- "start": {
395
- "line": 8,
396
- "column": 14
397
- },
398
- "end": {
399
- "line": 8,
400
- "column": 14
401
- }
402
- }
403
- },
404
- "init": null,
405
- "cloned": false,
406
- "varType": {
407
- "type": "ScopedType",
408
- "id": {
409
- "type": "Identifier",
410
- "name": "T",
411
- "_meta": {},
412
- "loc": {
413
- "start": {
414
- "line": 8,
415
- "column": 12
416
- },
417
- "end": {
418
- "line": 8,
419
- "column": 12
420
- }
421
- }
422
- },
423
- "scope": null,
424
- "typeArguments": null,
425
- "_meta": {},
426
- "loc": {
427
- "start": {
428
- "line": 8,
429
- "column": 12
430
- },
431
- "end": {
432
- "line": 8,
433
- "column": 12
434
- }
435
- }
436
- },
437
- "_meta": {
438
- "modifiers": [
439
- "private"
440
- ],
441
- "isPrivate": true
442
- },
443
- "loc": {
444
- "start": {
445
- "line": 8,
446
- "column": 14
447
- },
448
- "end": {
449
- "line": 8,
450
- "column": 14
451
- }
452
- }
453
- },
454
- {
455
- "type": "FunctionDefinition",
456
- "id": {
457
- "type": "Identifier",
458
- "name": "setItem",
459
- "_meta": {},
460
- "loc": {
461
- "start": {
462
- "line": 11,
463
- "column": 16
464
- },
465
- "end": {
466
- "line": 11,
467
- "column": 16
468
- }
469
- }
470
- },
471
- "parameters": [
472
- {
473
- "type": "VariableDeclaration",
474
- "id": {
475
- "type": "Identifier",
476
- "name": "item",
477
- "_meta": {},
478
- "loc": {
479
- "start": {
480
- "line": 11,
481
- "column": 26
482
- },
483
- "end": {
484
- "line": 11,
485
- "column": 26
486
- }
487
- }
488
- },
489
- "init": null,
490
- "cloned": false,
491
- "varType": {
492
- "type": "ScopedType",
493
- "id": {
494
- "type": "Identifier",
495
- "name": "T",
496
- "_meta": {},
497
- "loc": {
498
- "start": {
499
- "line": 11,
500
- "column": 24
501
- },
502
- "end": {
503
- "line": 11,
504
- "column": 24
505
- }
506
- }
507
- },
508
- "scope": null,
509
- "typeArguments": null,
510
- "_meta": {},
511
- "loc": {
512
- "start": {
513
- "line": 11,
514
- "column": 24
515
- },
516
- "end": {
517
- "line": 11,
518
- "column": 24
519
- }
520
- }
521
- },
522
- "_meta": {},
523
- "loc": {
524
- "start": {
525
- "line": 11,
526
- "column": 24
527
- },
528
- "end": {
529
- "line": 11,
530
- "column": 26
531
- }
532
- }
533
- }
534
- ],
535
- "returnType": {
536
- "type": "PrimitiveType",
537
- "id": {
538
- "type": "Identifier",
539
- "name": "void",
540
- "_meta": {},
541
- "loc": {
542
- "start": {
543
- "line": 11,
544
- "column": 4
545
- },
546
- "end": {
547
- "line": 13,
548
- "column": 4
549
- }
550
- }
551
- },
552
- "typeArguments": null,
553
- "_meta": {},
554
- "loc": {
555
- "start": {
556
- "line": 11,
557
- "column": 4
558
- },
559
- "end": {
560
- "line": 13,
561
- "column": 4
562
- }
563
- }
564
- },
565
- "body": {
566
- "type": "ScopedStatement",
567
- "body": [
568
- {
569
- "type": "AssignmentExpression",
570
- "left": {
571
- "type": "MemberAccess",
572
- "object": {
573
- "type": "ThisExpression",
574
- "_meta": {},
575
- "loc": {
576
- "start": {
577
- "line": 12,
578
- "column": 8
579
- },
580
- "end": {
581
- "line": 12,
582
- "column": 8
583
- }
584
- }
585
- },
586
- "property": {
587
- "type": "Identifier",
588
- "name": "item",
589
- "_meta": {},
590
- "loc": {
591
- "start": {
592
- "line": 12,
593
- "column": 13
594
- },
595
- "end": {
596
- "line": 12,
597
- "column": 13
598
- }
599
- }
600
- },
601
- "computed": false,
602
- "_meta": {},
603
- "loc": {
604
- "start": {
605
- "line": 12,
606
- "column": 8
607
- },
608
- "end": {
609
- "line": 12,
610
- "column": 13
611
- }
612
- }
613
- },
614
- "right": {
615
- "type": "Identifier",
616
- "name": "item",
617
- "_meta": {},
618
- "loc": {
619
- "start": {
620
- "line": 12,
621
- "column": 20
622
- },
623
- "end": {
624
- "line": 12,
625
- "column": 20
626
- }
627
- }
628
- },
629
- "operator": "=",
630
- "cloned": null,
631
- "_meta": {},
632
- "loc": {
633
- "start": {
634
- "line": 12,
635
- "column": 8
636
- },
637
- "end": {
638
- "line": 12,
639
- "column": 24
640
- }
641
- }
642
- }
643
- ],
644
- "id": null,
645
- "_meta": {},
646
- "loc": {
647
- "start": {
648
- "line": 11,
649
- "column": 32
650
- },
651
- "end": {
652
- "line": 13,
653
- "column": 4
654
- }
655
- }
656
- },
657
- "modifiers": [],
658
- "_meta": {
659
- "modifiers": [
660
- "public"
661
- ],
662
- "isPublic": true
663
- },
664
- "loc": {
665
- "start": {
666
- "line": 11,
667
- "column": 4
668
- },
669
- "end": {
670
- "line": 13,
671
- "column": 4
672
- }
673
- }
674
- },
675
- {
676
- "type": "FunctionDefinition",
677
- "id": {
678
- "type": "Identifier",
679
- "name": "getItem",
680
- "_meta": {},
681
- "loc": {
682
- "start": {
683
- "line": 16,
684
- "column": 13
685
- },
686
- "end": {
687
- "line": 16,
688
- "column": 13
689
- }
690
- }
691
- },
692
- "parameters": [],
693
- "returnType": {
694
- "type": "ScopedType",
695
- "id": {
696
- "type": "Identifier",
697
- "name": "T",
698
- "_meta": {},
699
- "loc": {
700
- "start": {
701
- "line": 16,
702
- "column": 11
703
- },
704
- "end": {
705
- "line": 16,
706
- "column": 11
707
- }
708
- }
709
- },
710
- "scope": null,
711
- "typeArguments": null,
712
- "_meta": {},
713
- "loc": {
714
- "start": {
715
- "line": 16,
716
- "column": 11
717
- },
718
- "end": {
719
- "line": 16,
720
- "column": 11
721
- }
722
- }
723
- },
724
- "body": {
725
- "type": "ScopedStatement",
726
- "body": [
727
- {
728
- "type": "ReturnStatement",
729
- "argument": {
730
- "type": "Identifier",
731
- "name": "item",
732
- "_meta": {},
733
- "loc": {
734
- "start": {
735
- "line": 17,
736
- "column": 15
737
- },
738
- "end": {
739
- "line": 17,
740
- "column": 15
741
- }
742
- }
743
- },
744
- "isYield": false,
745
- "_meta": {},
746
- "loc": {
747
- "start": {
748
- "line": 17,
749
- "column": 8
750
- },
751
- "end": {
752
- "line": 17,
753
- "column": 19
754
- }
755
- }
756
- }
757
- ],
758
- "id": null,
759
- "_meta": {},
760
- "loc": {
761
- "start": {
762
- "line": 16,
763
- "column": 23
764
- },
765
- "end": {
766
- "line": 18,
767
- "column": 4
768
- }
769
- }
770
- },
771
- "modifiers": [],
772
- "_meta": {
773
- "modifiers": [
774
- "public"
775
- ],
776
- "isPublic": true
777
- },
778
- "loc": {
779
- "start": {
780
- "line": 16,
781
- "column": 4
782
- },
783
- "end": {
784
- "line": 18,
785
- "column": 4
786
- }
787
- }
788
- }
789
- ],
790
- "supers": [],
791
- "_meta": {},
792
- "loc": {
793
- "start": {
794
- "line": 7,
795
- "column": 0
796
- },
797
- "end": {
798
- "line": 19,
799
- "column": 0
800
- }
801
- }
802
- },
803
- {
804
- "type": "ClassDefinition",
805
- "id": {
806
- "type": "Identifier",
807
- "name": "Utils",
808
- "_meta": {},
809
- "loc": {
810
- "start": {
811
- "line": 22,
812
- "column": 6
813
- },
814
- "end": {
815
- "line": 22,
816
- "column": 6
817
- }
818
- }
819
- },
820
- "body": [
821
- {
822
- "type": "FunctionDefinition",
823
- "id": {
824
- "type": "Identifier",
825
- "name": "printList",
826
- "_meta": {},
827
- "loc": {
828
- "start": {
829
- "line": 24,
830
- "column": 27
831
- },
832
- "end": {
833
- "line": 24,
834
- "column": 27
835
- }
836
- }
837
- },
838
- "parameters": [
839
- {
840
- "type": "VariableDeclaration",
841
- "id": {
842
- "type": "Identifier",
843
- "name": "list",
844
- "_meta": {},
845
- "loc": {
846
- "start": {
847
- "line": 24,
848
- "column": 45
849
- },
850
- "end": {
851
- "line": 24,
852
- "column": 45
853
- }
854
- }
855
- },
856
- "init": null,
857
- "cloned": false,
858
- "varType": {
859
- "type": "ScopedType",
860
- "id": {
861
- "type": "Identifier",
862
- "name": "List",
863
- "_meta": {},
864
- "loc": {
865
- "start": {
866
- "line": 24,
867
- "column": 37
868
- },
869
- "end": {
870
- "line": 24,
871
- "column": 43
872
- }
873
- }
874
- },
875
- "scope": null,
876
- "typeArguments": null,
877
- "_meta": {},
878
- "loc": {
879
- "start": {
880
- "line": 24,
881
- "column": 37
882
- },
883
- "end": {
884
- "line": 24,
885
- "column": 43
886
- }
887
- }
888
- },
889
- "_meta": {},
890
- "loc": {
891
- "start": {
892
- "line": 24,
893
- "column": 37
894
- },
895
- "end": {
896
- "line": 24,
897
- "column": 45
898
- }
899
- }
900
- }
901
- ],
902
- "returnType": {
903
- "type": "PrimitiveType",
904
- "id": {
905
- "type": "Identifier",
906
- "name": "void",
907
- "_meta": {},
908
- "loc": {
909
- "start": {
910
- "line": 24,
911
- "column": 4
912
- },
913
- "end": {
914
- "line": 28,
915
- "column": 4
916
- }
917
- }
918
- },
919
- "typeArguments": null,
920
- "_meta": {},
921
- "loc": {
922
- "start": {
923
- "line": 24,
924
- "column": 4
925
- },
926
- "end": {
927
- "line": 28,
928
- "column": 4
929
- }
930
- }
931
- },
932
- "body": {
933
- "type": "ScopedStatement",
934
- "body": [
935
- {
936
- "type": "RangeStatement",
937
- "key": null,
938
- "value": {
939
- "type": "Identifier",
940
- "name": "element",
941
- "_meta": {},
942
- "loc": {
943
- "start": {
944
- "line": 25,
945
- "column": 15
946
- },
947
- "end": {
948
- "line": 25,
949
- "column": 15
950
- }
951
- }
952
- },
953
- "right": {
954
- "type": "Identifier",
955
- "name": "list",
956
- "_meta": {},
957
- "loc": {
958
- "start": {
959
- "line": 25,
960
- "column": 25
961
- },
962
- "end": {
963
- "line": 25,
964
- "column": 25
965
- }
966
- }
967
- },
968
- "body": {
969
- "type": "ScopedStatement",
970
- "body": [
971
- {
972
- "type": "CallExpression",
973
- "callee": {
974
- "type": "MemberAccess",
975
- "object": {
976
- "type": "MemberAccess",
977
- "object": {
978
- "type": "Identifier",
979
- "name": "System",
980
- "_meta": {},
981
- "loc": {
982
- "start": {
983
- "line": 26,
984
- "column": 12
985
- },
986
- "end": {
987
- "line": 26,
988
- "column": 12
989
- }
990
- }
991
- },
992
- "property": {
993
- "type": "Identifier",
994
- "name": "out",
995
- "_meta": {},
996
- "loc": {
997
- "start": {
998
- "line": 26,
999
- "column": 19
1000
- },
1001
- "end": {
1002
- "line": 26,
1003
- "column": 19
1004
- }
1005
- }
1006
- },
1007
- "computed": false,
1008
- "_meta": {},
1009
- "loc": {
1010
- "start": {
1011
- "line": 26,
1012
- "column": 12
1013
- },
1014
- "end": {
1015
- "line": 26,
1016
- "column": 19
1017
- }
1018
- }
1019
- },
1020
- "property": {
1021
- "type": "Identifier",
1022
- "name": "println",
1023
- "_meta": {},
1024
- "loc": {
1025
- "start": {
1026
- "line": 26,
1027
- "column": 23
1028
- },
1029
- "end": {
1030
- "line": 26,
1031
- "column": 23
1032
- }
1033
- }
1034
- },
1035
- "computed": false,
1036
- "_meta": {},
1037
- "loc": {
1038
- "start": {
1039
- "line": 26,
1040
- "column": 12
1041
- },
1042
- "end": {
1043
- "line": 26,
1044
- "column": 23
1045
- }
1046
- }
1047
- },
1048
- "arguments": [
1049
- {
1050
- "type": "Identifier",
1051
- "name": "element",
1052
- "_meta": {},
1053
- "loc": {
1054
- "start": {
1055
- "line": 26,
1056
- "column": 31
1057
- },
1058
- "end": {
1059
- "line": 26,
1060
- "column": 31
1061
- }
1062
- }
1063
- }
1064
- ],
1065
- "_meta": {},
1066
- "loc": {
1067
- "start": {
1068
- "line": 26,
1069
- "column": 12
1070
- },
1071
- "end": {
1072
- "line": 26,
1073
- "column": 39
1074
- }
1075
- }
1076
- }
1077
- ],
1078
- "id": null,
1079
- "_meta": {},
1080
- "loc": {
1081
- "start": {
1082
- "line": 25,
1083
- "column": 31
1084
- },
1085
- "end": {
1086
- "line": 27,
1087
- "column": 8
1088
- }
1089
- }
1090
- },
1091
- "_meta": {},
1092
- "loc": {
1093
- "start": {
1094
- "line": 25,
1095
- "column": 8
1096
- },
1097
- "end": {
1098
- "line": 27,
1099
- "column": 8
1100
- }
1101
- }
1102
- }
1103
- ],
1104
- "id": null,
1105
- "_meta": {},
1106
- "loc": {
1107
- "start": {
1108
- "line": 24,
1109
- "column": 51
1110
- },
1111
- "end": {
1112
- "line": 28,
1113
- "column": 4
1114
- }
1115
- }
1116
- },
1117
- "modifiers": [],
1118
- "_meta": {
1119
- "modifiers": [
1120
- "public",
1121
- "static"
1122
- ],
1123
- "isPublic": true,
1124
- "isStatic": true
1125
- },
1126
- "loc": {
1127
- "start": {
1128
- "line": 24,
1129
- "column": 4
1130
- },
1131
- "end": {
1132
- "line": 28,
1133
- "column": 4
1134
- }
1135
- }
1136
- },
1137
- {
1138
- "type": "FunctionDefinition",
1139
- "id": {
1140
- "type": "Identifier",
1141
- "name": "max",
1142
- "_meta": {},
1143
- "loc": {
1144
- "start": {
1145
- "line": 31,
1146
- "column": 46
1147
- },
1148
- "end": {
1149
- "line": 31,
1150
- "column": 46
1151
- }
1152
- }
1153
- },
1154
- "parameters": [
1155
- {
1156
- "type": "VariableDeclaration",
1157
- "id": {
1158
- "type": "Identifier",
1159
- "name": "a",
1160
- "_meta": {},
1161
- "loc": {
1162
- "start": {
1163
- "line": 31,
1164
- "column": 52
1165
- },
1166
- "end": {
1167
- "line": 31,
1168
- "column": 52
1169
- }
1170
- }
1171
- },
1172
- "init": null,
1173
- "cloned": false,
1174
- "varType": {
1175
- "type": "ScopedType",
1176
- "id": {
1177
- "type": "Identifier",
1178
- "name": "T",
1179
- "_meta": {},
1180
- "loc": {
1181
- "start": {
1182
- "line": 31,
1183
- "column": 50
1184
- },
1185
- "end": {
1186
- "line": 31,
1187
- "column": 50
1188
- }
1189
- }
1190
- },
1191
- "scope": null,
1192
- "typeArguments": null,
1193
- "_meta": {},
1194
- "loc": {
1195
- "start": {
1196
- "line": 31,
1197
- "column": 50
1198
- },
1199
- "end": {
1200
- "line": 31,
1201
- "column": 50
1202
- }
1203
- }
1204
- },
1205
- "_meta": {},
1206
- "loc": {
1207
- "start": {
1208
- "line": 31,
1209
- "column": 50
1210
- },
1211
- "end": {
1212
- "line": 31,
1213
- "column": 52
1214
- }
1215
- }
1216
- },
1217
- {
1218
- "type": "VariableDeclaration",
1219
- "id": {
1220
- "type": "Identifier",
1221
- "name": "b",
1222
- "_meta": {},
1223
- "loc": {
1224
- "start": {
1225
- "line": 31,
1226
- "column": 57
1227
- },
1228
- "end": {
1229
- "line": 31,
1230
- "column": 57
1231
- }
1232
- }
1233
- },
1234
- "init": null,
1235
- "cloned": false,
1236
- "varType": {
1237
- "type": "ScopedType",
1238
- "id": {
1239
- "type": "Identifier",
1240
- "name": "T",
1241
- "_meta": {},
1242
- "loc": {
1243
- "start": {
1244
- "line": 31,
1245
- "column": 55
1246
- },
1247
- "end": {
1248
- "line": 31,
1249
- "column": 55
1250
- }
1251
- }
1252
- },
1253
- "scope": null,
1254
- "typeArguments": null,
1255
- "_meta": {},
1256
- "loc": {
1257
- "start": {
1258
- "line": 31,
1259
- "column": 55
1260
- },
1261
- "end": {
1262
- "line": 31,
1263
- "column": 55
1264
- }
1265
- }
1266
- },
1267
- "_meta": {},
1268
- "loc": {
1269
- "start": {
1270
- "line": 31,
1271
- "column": 55
1272
- },
1273
- "end": {
1274
- "line": 31,
1275
- "column": 57
1276
- }
1277
- }
1278
- }
1279
- ],
1280
- "returnType": {
1281
- "type": "ScopedType",
1282
- "id": {
1283
- "type": "Identifier",
1284
- "name": "T",
1285
- "_meta": {},
1286
- "loc": {
1287
- "start": {
1288
- "line": 31,
1289
- "column": 44
1290
- },
1291
- "end": {
1292
- "line": 31,
1293
- "column": 44
1294
- }
1295
- }
1296
- },
1297
- "scope": null,
1298
- "typeArguments": null,
1299
- "_meta": {},
1300
- "loc": {
1301
- "start": {
1302
- "line": 31,
1303
- "column": 44
1304
- },
1305
- "end": {
1306
- "line": 31,
1307
- "column": 44
1308
- }
1309
- }
1310
- },
1311
- "body": {
1312
- "type": "ScopedStatement",
1313
- "body": [
1314
- {
1315
- "type": "ReturnStatement",
1316
- "argument": {
1317
- "type": "ConditionalExpression",
1318
- "test": {
1319
- "type": "BinaryExpression",
1320
- "operator": ">",
1321
- "left": {
1322
- "type": "CallExpression",
1323
- "callee": {
1324
- "type": "MemberAccess",
1325
- "object": {
1326
- "type": "Identifier",
1327
- "name": "a",
1328
- "_meta": {},
1329
- "loc": {
1330
- "start": {
1331
- "line": 32,
1332
- "column": 15
1333
- },
1334
- "end": {
1335
- "line": 32,
1336
- "column": 15
1337
- }
1338
- }
1339
- },
1340
- "property": {
1341
- "type": "Identifier",
1342
- "name": "compareTo",
1343
- "_meta": {},
1344
- "loc": {
1345
- "start": {
1346
- "line": 32,
1347
- "column": 17
1348
- },
1349
- "end": {
1350
- "line": 32,
1351
- "column": 17
1352
- }
1353
- }
1354
- },
1355
- "computed": false,
1356
- "_meta": {},
1357
- "loc": {
1358
- "start": {
1359
- "line": 32,
1360
- "column": 15
1361
- },
1362
- "end": {
1363
- "line": 32,
1364
- "column": 17
1365
- }
1366
- }
1367
- },
1368
- "arguments": [
1369
- {
1370
- "type": "Identifier",
1371
- "name": "b",
1372
- "_meta": {},
1373
- "loc": {
1374
- "start": {
1375
- "line": 32,
1376
- "column": 27
1377
- },
1378
- "end": {
1379
- "line": 32,
1380
- "column": 27
1381
- }
1382
- }
1383
- }
1384
- ],
1385
- "_meta": {},
1386
- "loc": {
1387
- "start": {
1388
- "line": 32,
1389
- "column": 15
1390
- },
1391
- "end": {
1392
- "line": 32,
1393
- "column": 28
1394
- }
1395
- }
1396
- },
1397
- "right": {
1398
- "type": "Literal",
1399
- "value": "0",
1400
- "literalType": "number",
1401
- "_meta": {},
1402
- "loc": {
1403
- "start": {
1404
- "line": 32,
1405
- "column": 32
1406
- },
1407
- "end": {
1408
- "line": 32,
1409
- "column": 32
1410
- }
1411
- }
1412
- },
1413
- "_meta": {},
1414
- "loc": {
1415
- "start": {
1416
- "line": 32,
1417
- "column": 15
1418
- },
1419
- "end": {
1420
- "line": 32,
1421
- "column": 32
1422
- }
1423
- }
1424
- },
1425
- "consequent": {
1426
- "type": "Identifier",
1427
- "name": "a",
1428
- "_meta": {},
1429
- "loc": {
1430
- "start": {
1431
- "line": 32,
1432
- "column": 36
1433
- },
1434
- "end": {
1435
- "line": 32,
1436
- "column": 36
1437
- }
1438
- }
1439
- },
1440
- "alternative": {
1441
- "type": "Identifier",
1442
- "name": "b",
1443
- "_meta": {},
1444
- "loc": {
1445
- "start": {
1446
- "line": 32,
1447
- "column": 40
1448
- },
1449
- "end": {
1450
- "line": 32,
1451
- "column": 40
1452
- }
1453
- }
1454
- },
1455
- "_meta": {},
1456
- "loc": {
1457
- "start": {
1458
- "line": 32,
1459
- "column": 15
1460
- },
1461
- "end": {
1462
- "line": 32,
1463
- "column": 40
1464
- }
1465
- }
1466
- },
1467
- "isYield": false,
1468
- "_meta": {},
1469
- "loc": {
1470
- "start": {
1471
- "line": 32,
1472
- "column": 8
1473
- },
1474
- "end": {
1475
- "line": 32,
1476
- "column": 41
1477
- }
1478
- }
1479
- }
1480
- ],
1481
- "id": null,
1482
- "_meta": {},
1483
- "loc": {
1484
- "start": {
1485
- "line": 31,
1486
- "column": 60
1487
- },
1488
- "end": {
1489
- "line": 33,
1490
- "column": 4
1491
- }
1492
- }
1493
- },
1494
- "modifiers": [],
1495
- "_meta": {
1496
- "modifiers": [
1497
- "public",
1498
- "static"
1499
- ],
1500
- "isPublic": true,
1501
- "isStatic": true
1502
- },
1503
- "loc": {
1504
- "start": {
1505
- "line": 31,
1506
- "column": 4
1507
- },
1508
- "end": {
1509
- "line": 33,
1510
- "column": 4
1511
- }
1512
- }
1513
- }
1514
- ],
1515
- "supers": [],
1516
- "_meta": {},
1517
- "loc": {
1518
- "start": {
1519
- "line": 22,
1520
- "column": 0
1521
- },
1522
- "end": {
1523
- "line": 34,
1524
- "column": 0
1525
- }
1526
- }
1527
- },
1528
- {
1529
- "type": "ExportStatement",
1530
- "argument": {
1531
- "type": "ClassDefinition",
1532
- "id": {
1533
- "type": "Identifier",
1534
- "name": "GenericExample",
1535
- "_meta": {},
1536
- "loc": {
1537
- "start": {
1538
- "line": 36,
1539
- "column": 13
1540
- },
1541
- "end": {
1542
- "line": 36,
1543
- "column": 13
1544
- }
1545
- }
1546
- },
1547
- "body": [
1548
- {
1549
- "type": "FunctionDefinition",
1550
- "id": {
1551
- "type": "Identifier",
1552
- "name": "main",
1553
- "_meta": {},
1554
- "loc": {
1555
- "start": {
1556
- "line": 37,
1557
- "column": 23
1558
- },
1559
- "end": {
1560
- "line": 37,
1561
- "column": 23
1562
- }
1563
- }
1564
- },
1565
- "parameters": [
1566
- {
1567
- "type": "VariableDeclaration",
1568
- "id": {
1569
- "type": "Identifier",
1570
- "name": "args",
1571
- "_meta": {},
1572
- "loc": {
1573
- "start": {
1574
- "line": 37,
1575
- "column": 37
1576
- },
1577
- "end": {
1578
- "line": 37,
1579
- "column": 37
1580
- }
1581
- }
1582
- },
1583
- "init": null,
1584
- "cloned": false,
1585
- "varType": {
1586
- "type": "ScopedType",
1587
- "id": {
1588
- "type": "Identifier",
1589
- "name": "String",
1590
- "_meta": {},
1591
- "loc": {
1592
- "start": {
1593
- "line": 37,
1594
- "column": 28
1595
- },
1596
- "end": {
1597
- "line": 37,
1598
- "column": 35
1599
- }
1600
- }
1601
- },
1602
- "scope": null,
1603
- "typeArguments": null,
1604
- "_meta": {},
1605
- "loc": {
1606
- "start": {
1607
- "line": 37,
1608
- "column": 28
1609
- },
1610
- "end": {
1611
- "line": 37,
1612
- "column": 35
1613
- }
1614
- }
1615
- },
1616
- "_meta": {},
1617
- "loc": {
1618
- "start": {
1619
- "line": 37,
1620
- "column": 28
1621
- },
1622
- "end": {
1623
- "line": 37,
1624
- "column": 37
1625
- }
1626
- }
1627
- }
1628
- ],
1629
- "returnType": {
1630
- "type": "PrimitiveType",
1631
- "id": {
1632
- "type": "Identifier",
1633
- "name": "void",
1634
- "_meta": {},
1635
- "loc": {
1636
- "start": {
1637
- "line": 37,
1638
- "column": 4
1639
- },
1640
- "end": {
1641
- "line": 67,
1642
- "column": 4
1643
- }
1644
- }
1645
- },
1646
- "typeArguments": null,
1647
- "_meta": {},
1648
- "loc": {
1649
- "start": {
1650
- "line": 37,
1651
- "column": 4
1652
- },
1653
- "end": {
1654
- "line": 67,
1655
- "column": 4
1656
- }
1657
- }
1658
- },
1659
- "body": {
1660
- "type": "ScopedStatement",
1661
- "body": [
1662
- {
1663
- "type": "VariableDeclaration",
1664
- "id": {
1665
- "type": "Identifier",
1666
- "name": "stringBox",
1667
- "_meta": {},
1668
- "loc": {
1669
- "start": {
1670
- "line": 39,
1671
- "column": 20
1672
- },
1673
- "end": {
1674
- "line": 39,
1675
- "column": 20
1676
- }
1677
- }
1678
- },
1679
- "init": {
1680
- "type": "NewExpression",
1681
- "callee": {
1682
- "type": "Identifier",
1683
- "name": "Box",
1684
- "_meta": {},
1685
- "loc": {
1686
- "start": {
1687
- "line": 39,
1688
- "column": 32
1689
- },
1690
- "end": {
1691
- "line": 39,
1692
- "column": 42
1693
- }
1694
- }
1695
- },
1696
- "arguments": [],
1697
- "_meta": {},
1698
- "loc": {
1699
- "start": {
1700
- "line": 39,
1701
- "column": 32
1702
- },
1703
- "end": {
1704
- "line": 39,
1705
- "column": 42
1706
- }
1707
- }
1708
- },
1709
- "cloned": false,
1710
- "varType": {
1711
- "type": "ScopedType",
1712
- "id": {
1713
- "type": "Identifier",
1714
- "name": "Box",
1715
- "_meta": {},
1716
- "loc": {
1717
- "start": {
1718
- "line": 39,
1719
- "column": 8
1720
- },
1721
- "end": {
1722
- "line": 39,
1723
- "column": 18
1724
- }
1725
- }
1726
- },
1727
- "scope": null,
1728
- "typeArguments": null,
1729
- "_meta": {},
1730
- "loc": {
1731
- "start": {
1732
- "line": 39,
1733
- "column": 8
1734
- },
1735
- "end": {
1736
- "line": 39,
1737
- "column": 18
1738
- }
1739
- }
1740
- },
1741
- "_meta": {},
1742
- "loc": {
1743
- "start": {
1744
- "line": 39,
1745
- "column": 20
1746
- },
1747
- "end": {
1748
- "line": 39,
1749
- "column": 42
1750
- }
1751
- }
1752
- },
1753
- {
1754
- "type": "CallExpression",
1755
- "callee": {
1756
- "type": "MemberAccess",
1757
- "object": {
1758
- "type": "Identifier",
1759
- "name": "stringBox",
1760
- "_meta": {},
1761
- "loc": {
1762
- "start": {
1763
- "line": 40,
1764
- "column": 8
1765
- },
1766
- "end": {
1767
- "line": 40,
1768
- "column": 8
1769
- }
1770
- }
1771
- },
1772
- "property": {
1773
- "type": "Identifier",
1774
- "name": "setItem",
1775
- "_meta": {},
1776
- "loc": {
1777
- "start": {
1778
- "line": 40,
1779
- "column": 18
1780
- },
1781
- "end": {
1782
- "line": 40,
1783
- "column": 18
1784
- }
1785
- }
1786
- },
1787
- "computed": false,
1788
- "_meta": {},
1789
- "loc": {
1790
- "start": {
1791
- "line": 40,
1792
- "column": 8
1793
- },
1794
- "end": {
1795
- "line": 40,
1796
- "column": 18
1797
- }
1798
- }
1799
- },
1800
- "arguments": [
1801
- {
1802
- "type": "Literal",
1803
- "value": "Hello, Generics!",
1804
- "literalType": "string",
1805
- "_meta": {},
1806
- "loc": {
1807
- "start": {
1808
- "line": 40,
1809
- "column": 26
1810
- },
1811
- "end": {
1812
- "line": 40,
1813
- "column": 26
1814
- }
1815
- }
1816
- }
1817
- ],
1818
- "_meta": {},
1819
- "loc": {
1820
- "start": {
1821
- "line": 40,
1822
- "column": 8
1823
- },
1824
- "end": {
1825
- "line": 40,
1826
- "column": 45
1827
- }
1828
- }
1829
- },
1830
- {
1831
- "type": "CallExpression",
1832
- "callee": {
1833
- "type": "MemberAccess",
1834
- "object": {
1835
- "type": "MemberAccess",
1836
- "object": {
1837
- "type": "Identifier",
1838
- "name": "System",
1839
- "_meta": {},
1840
- "loc": {
1841
- "start": {
1842
- "line": 41,
1843
- "column": 8
1844
- },
1845
- "end": {
1846
- "line": 41,
1847
- "column": 8
1848
- }
1849
- }
1850
- },
1851
- "property": {
1852
- "type": "Identifier",
1853
- "name": "out",
1854
- "_meta": {},
1855
- "loc": {
1856
- "start": {
1857
- "line": 41,
1858
- "column": 15
1859
- },
1860
- "end": {
1861
- "line": 41,
1862
- "column": 15
1863
- }
1864
- }
1865
- },
1866
- "computed": false,
1867
- "_meta": {},
1868
- "loc": {
1869
- "start": {
1870
- "line": 41,
1871
- "column": 8
1872
- },
1873
- "end": {
1874
- "line": 41,
1875
- "column": 15
1876
- }
1877
- }
1878
- },
1879
- "property": {
1880
- "type": "Identifier",
1881
- "name": "println",
1882
- "_meta": {},
1883
- "loc": {
1884
- "start": {
1885
- "line": 41,
1886
- "column": 19
1887
- },
1888
- "end": {
1889
- "line": 41,
1890
- "column": 19
1891
- }
1892
- }
1893
- },
1894
- "computed": false,
1895
- "_meta": {},
1896
- "loc": {
1897
- "start": {
1898
- "line": 41,
1899
- "column": 8
1900
- },
1901
- "end": {
1902
- "line": 41,
1903
- "column": 19
1904
- }
1905
- }
1906
- },
1907
- "arguments": [
1908
- {
1909
- "type": "BinaryExpression",
1910
- "operator": "+",
1911
- "left": {
1912
- "type": "Literal",
1913
- "value": "Box contains: ",
1914
- "literalType": "string",
1915
- "_meta": {},
1916
- "loc": {
1917
- "start": {
1918
- "line": 41,
1919
- "column": 27
1920
- },
1921
- "end": {
1922
- "line": 41,
1923
- "column": 27
1924
- }
1925
- }
1926
- },
1927
- "right": {
1928
- "type": "CallExpression",
1929
- "callee": {
1930
- "type": "MemberAccess",
1931
- "object": {
1932
- "type": "Identifier",
1933
- "name": "stringBox",
1934
- "_meta": {},
1935
- "loc": {
1936
- "start": {
1937
- "line": 41,
1938
- "column": 46
1939
- },
1940
- "end": {
1941
- "line": 41,
1942
- "column": 46
1943
- }
1944
- }
1945
- },
1946
- "property": {
1947
- "type": "Identifier",
1948
- "name": "getItem",
1949
- "_meta": {},
1950
- "loc": {
1951
- "start": {
1952
- "line": 41,
1953
- "column": 56
1954
- },
1955
- "end": {
1956
- "line": 41,
1957
- "column": 56
1958
- }
1959
- }
1960
- },
1961
- "computed": false,
1962
- "_meta": {},
1963
- "loc": {
1964
- "start": {
1965
- "line": 41,
1966
- "column": 46
1967
- },
1968
- "end": {
1969
- "line": 41,
1970
- "column": 56
1971
- }
1972
- }
1973
- },
1974
- "arguments": [],
1975
- "_meta": {},
1976
- "loc": {
1977
- "start": {
1978
- "line": 41,
1979
- "column": 46
1980
- },
1981
- "end": {
1982
- "line": 41,
1983
- "column": 64
1984
- }
1985
- }
1986
- },
1987
- "_meta": {},
1988
- "loc": {
1989
- "start": {
1990
- "line": 41,
1991
- "column": 27
1992
- },
1993
- "end": {
1994
- "line": 41,
1995
- "column": 64
1996
- }
1997
- }
1998
- }
1999
- ],
2000
- "_meta": {},
2001
- "loc": {
2002
- "start": {
2003
- "line": 41,
2004
- "column": 8
2005
- },
2006
- "end": {
2007
- "line": 41,
2008
- "column": 66
2009
- }
2010
- }
2011
- },
2012
- {
2013
- "type": "VariableDeclaration",
2014
- "id": {
2015
- "type": "Identifier",
2016
- "name": "integerBox",
2017
- "_meta": {},
2018
- "loc": {
2019
- "start": {
2020
- "line": 43,
2021
- "column": 21
2022
- },
2023
- "end": {
2024
- "line": 43,
2025
- "column": 21
2026
- }
2027
- }
2028
- },
2029
- "init": {
2030
- "type": "NewExpression",
2031
- "callee": {
2032
- "type": "Identifier",
2033
- "name": "Box",
2034
- "_meta": {},
2035
- "loc": {
2036
- "start": {
2037
- "line": 43,
2038
- "column": 34
2039
- },
2040
- "end": {
2041
- "line": 43,
2042
- "column": 44
2043
- }
2044
- }
2045
- },
2046
- "arguments": [],
2047
- "_meta": {},
2048
- "loc": {
2049
- "start": {
2050
- "line": 43,
2051
- "column": 34
2052
- },
2053
- "end": {
2054
- "line": 43,
2055
- "column": 44
2056
- }
2057
- }
2058
- },
2059
- "cloned": false,
2060
- "varType": {
2061
- "type": "ScopedType",
2062
- "id": {
2063
- "type": "Identifier",
2064
- "name": "Box",
2065
- "_meta": {},
2066
- "loc": {
2067
- "start": {
2068
- "line": 43,
2069
- "column": 8
2070
- },
2071
- "end": {
2072
- "line": 43,
2073
- "column": 19
2074
- }
2075
- }
2076
- },
2077
- "scope": null,
2078
- "typeArguments": null,
2079
- "_meta": {},
2080
- "loc": {
2081
- "start": {
2082
- "line": 43,
2083
- "column": 8
2084
- },
2085
- "end": {
2086
- "line": 43,
2087
- "column": 19
2088
- }
2089
- }
2090
- },
2091
- "_meta": {},
2092
- "loc": {
2093
- "start": {
2094
- "line": 43,
2095
- "column": 21
2096
- },
2097
- "end": {
2098
- "line": 43,
2099
- "column": 44
2100
- }
2101
- }
2102
- },
2103
- {
2104
- "type": "CallExpression",
2105
- "callee": {
2106
- "type": "MemberAccess",
2107
- "object": {
2108
- "type": "Identifier",
2109
- "name": "integerBox",
2110
- "_meta": {},
2111
- "loc": {
2112
- "start": {
2113
- "line": 44,
2114
- "column": 8
2115
- },
2116
- "end": {
2117
- "line": 44,
2118
- "column": 8
2119
- }
2120
- }
2121
- },
2122
- "property": {
2123
- "type": "Identifier",
2124
- "name": "setItem",
2125
- "_meta": {},
2126
- "loc": {
2127
- "start": {
2128
- "line": 44,
2129
- "column": 19
2130
- },
2131
- "end": {
2132
- "line": 44,
2133
- "column": 19
2134
- }
2135
- }
2136
- },
2137
- "computed": false,
2138
- "_meta": {},
2139
- "loc": {
2140
- "start": {
2141
- "line": 44,
2142
- "column": 8
2143
- },
2144
- "end": {
2145
- "line": 44,
2146
- "column": 19
2147
- }
2148
- }
2149
- },
2150
- "arguments": [
2151
- {
2152
- "type": "Literal",
2153
- "value": "123",
2154
- "literalType": "number",
2155
- "_meta": {},
2156
- "loc": {
2157
- "start": {
2158
- "line": 44,
2159
- "column": 27
2160
- },
2161
- "end": {
2162
- "line": 44,
2163
- "column": 27
2164
- }
2165
- }
2166
- }
2167
- ],
2168
- "_meta": {},
2169
- "loc": {
2170
- "start": {
2171
- "line": 44,
2172
- "column": 8
2173
- },
2174
- "end": {
2175
- "line": 44,
2176
- "column": 31
2177
- }
2178
- }
2179
- },
2180
- {
2181
- "type": "CallExpression",
2182
- "callee": {
2183
- "type": "MemberAccess",
2184
- "object": {
2185
- "type": "MemberAccess",
2186
- "object": {
2187
- "type": "Identifier",
2188
- "name": "System",
2189
- "_meta": {},
2190
- "loc": {
2191
- "start": {
2192
- "line": 45,
2193
- "column": 8
2194
- },
2195
- "end": {
2196
- "line": 45,
2197
- "column": 8
2198
- }
2199
- }
2200
- },
2201
- "property": {
2202
- "type": "Identifier",
2203
- "name": "out",
2204
- "_meta": {},
2205
- "loc": {
2206
- "start": {
2207
- "line": 45,
2208
- "column": 15
2209
- },
2210
- "end": {
2211
- "line": 45,
2212
- "column": 15
2213
- }
2214
- }
2215
- },
2216
- "computed": false,
2217
- "_meta": {},
2218
- "loc": {
2219
- "start": {
2220
- "line": 45,
2221
- "column": 8
2222
- },
2223
- "end": {
2224
- "line": 45,
2225
- "column": 15
2226
- }
2227
- }
2228
- },
2229
- "property": {
2230
- "type": "Identifier",
2231
- "name": "println",
2232
- "_meta": {},
2233
- "loc": {
2234
- "start": {
2235
- "line": 45,
2236
- "column": 19
2237
- },
2238
- "end": {
2239
- "line": 45,
2240
- "column": 19
2241
- }
2242
- }
2243
- },
2244
- "computed": false,
2245
- "_meta": {},
2246
- "loc": {
2247
- "start": {
2248
- "line": 45,
2249
- "column": 8
2250
- },
2251
- "end": {
2252
- "line": 45,
2253
- "column": 19
2254
- }
2255
- }
2256
- },
2257
- "arguments": [
2258
- {
2259
- "type": "BinaryExpression",
2260
- "operator": "+",
2261
- "left": {
2262
- "type": "Literal",
2263
- "value": "Box contains: ",
2264
- "literalType": "string",
2265
- "_meta": {},
2266
- "loc": {
2267
- "start": {
2268
- "line": 45,
2269
- "column": 27
2270
- },
2271
- "end": {
2272
- "line": 45,
2273
- "column": 27
2274
- }
2275
- }
2276
- },
2277
- "right": {
2278
- "type": "CallExpression",
2279
- "callee": {
2280
- "type": "MemberAccess",
2281
- "object": {
2282
- "type": "Identifier",
2283
- "name": "integerBox",
2284
- "_meta": {},
2285
- "loc": {
2286
- "start": {
2287
- "line": 45,
2288
- "column": 46
2289
- },
2290
- "end": {
2291
- "line": 45,
2292
- "column": 46
2293
- }
2294
- }
2295
- },
2296
- "property": {
2297
- "type": "Identifier",
2298
- "name": "getItem",
2299
- "_meta": {},
2300
- "loc": {
2301
- "start": {
2302
- "line": 45,
2303
- "column": 57
2304
- },
2305
- "end": {
2306
- "line": 45,
2307
- "column": 57
2308
- }
2309
- }
2310
- },
2311
- "computed": false,
2312
- "_meta": {},
2313
- "loc": {
2314
- "start": {
2315
- "line": 45,
2316
- "column": 46
2317
- },
2318
- "end": {
2319
- "line": 45,
2320
- "column": 57
2321
- }
2322
- }
2323
- },
2324
- "arguments": [],
2325
- "_meta": {},
2326
- "loc": {
2327
- "start": {
2328
- "line": 45,
2329
- "column": 46
2330
- },
2331
- "end": {
2332
- "line": 45,
2333
- "column": 65
2334
- }
2335
- }
2336
- },
2337
- "_meta": {},
2338
- "loc": {
2339
- "start": {
2340
- "line": 45,
2341
- "column": 27
2342
- },
2343
- "end": {
2344
- "line": 45,
2345
- "column": 65
2346
- }
2347
- }
2348
- }
2349
- ],
2350
- "_meta": {},
2351
- "loc": {
2352
- "start": {
2353
- "line": 45,
2354
- "column": 8
2355
- },
2356
- "end": {
2357
- "line": 45,
2358
- "column": 67
2359
- }
2360
- }
2361
- },
2362
- {
2363
- "type": "VariableDeclaration",
2364
- "id": {
2365
- "type": "Identifier",
2366
- "name": "names",
2367
- "_meta": {},
2368
- "loc": {
2369
- "start": {
2370
- "line": 48,
2371
- "column": 21
2372
- },
2373
- "end": {
2374
- "line": 48,
2375
- "column": 21
2376
- }
2377
- }
2378
- },
2379
- "init": {
2380
- "type": "NewExpression",
2381
- "callee": {
2382
- "type": "Identifier",
2383
- "name": "ArrayList",
2384
- "_meta": {},
2385
- "loc": {
2386
- "start": {
2387
- "line": 48,
2388
- "column": 29
2389
- },
2390
- "end": {
2391
- "line": 48,
2392
- "column": 45
2393
- }
2394
- }
2395
- },
2396
- "arguments": [],
2397
- "_meta": {},
2398
- "loc": {
2399
- "start": {
2400
- "line": 48,
2401
- "column": 29
2402
- },
2403
- "end": {
2404
- "line": 48,
2405
- "column": 45
2406
- }
2407
- }
2408
- },
2409
- "cloned": false,
2410
- "varType": {
2411
- "type": "ScopedType",
2412
- "id": {
2413
- "type": "Identifier",
2414
- "name": "List",
2415
- "_meta": {},
2416
- "loc": {
2417
- "start": {
2418
- "line": 48,
2419
- "column": 8
2420
- },
2421
- "end": {
2422
- "line": 48,
2423
- "column": 19
2424
- }
2425
- }
2426
- },
2427
- "scope": null,
2428
- "typeArguments": null,
2429
- "_meta": {},
2430
- "loc": {
2431
- "start": {
2432
- "line": 48,
2433
- "column": 8
2434
- },
2435
- "end": {
2436
- "line": 48,
2437
- "column": 19
2438
- }
2439
- }
2440
- },
2441
- "_meta": {},
2442
- "loc": {
2443
- "start": {
2444
- "line": 48,
2445
- "column": 21
2446
- },
2447
- "end": {
2448
- "line": 48,
2449
- "column": 45
2450
- }
2451
- }
2452
- },
2453
- {
2454
- "type": "CallExpression",
2455
- "callee": {
2456
- "type": "MemberAccess",
2457
- "object": {
2458
- "type": "Identifier",
2459
- "name": "names",
2460
- "_meta": {},
2461
- "loc": {
2462
- "start": {
2463
- "line": 49,
2464
- "column": 8
2465
- },
2466
- "end": {
2467
- "line": 49,
2468
- "column": 8
2469
- }
2470
- }
2471
- },
2472
- "property": {
2473
- "type": "Identifier",
2474
- "name": "add",
2475
- "_meta": {},
2476
- "loc": {
2477
- "start": {
2478
- "line": 49,
2479
- "column": 14
2480
- },
2481
- "end": {
2482
- "line": 49,
2483
- "column": 14
2484
- }
2485
- }
2486
- },
2487
- "computed": false,
2488
- "_meta": {},
2489
- "loc": {
2490
- "start": {
2491
- "line": 49,
2492
- "column": 8
2493
- },
2494
- "end": {
2495
- "line": 49,
2496
- "column": 14
2497
- }
2498
- }
2499
- },
2500
- "arguments": [
2501
- {
2502
- "type": "Literal",
2503
- "value": "Alice",
2504
- "literalType": "string",
2505
- "_meta": {},
2506
- "loc": {
2507
- "start": {
2508
- "line": 49,
2509
- "column": 18
2510
- },
2511
- "end": {
2512
- "line": 49,
2513
- "column": 18
2514
- }
2515
- }
2516
- }
2517
- ],
2518
- "_meta": {},
2519
- "loc": {
2520
- "start": {
2521
- "line": 49,
2522
- "column": 8
2523
- },
2524
- "end": {
2525
- "line": 49,
2526
- "column": 26
2527
- }
2528
- }
2529
- },
2530
- {
2531
- "type": "CallExpression",
2532
- "callee": {
2533
- "type": "MemberAccess",
2534
- "object": {
2535
- "type": "Identifier",
2536
- "name": "names",
2537
- "_meta": {},
2538
- "loc": {
2539
- "start": {
2540
- "line": 50,
2541
- "column": 8
2542
- },
2543
- "end": {
2544
- "line": 50,
2545
- "column": 8
2546
- }
2547
- }
2548
- },
2549
- "property": {
2550
- "type": "Identifier",
2551
- "name": "add",
2552
- "_meta": {},
2553
- "loc": {
2554
- "start": {
2555
- "line": 50,
2556
- "column": 14
2557
- },
2558
- "end": {
2559
- "line": 50,
2560
- "column": 14
2561
- }
2562
- }
2563
- },
2564
- "computed": false,
2565
- "_meta": {},
2566
- "loc": {
2567
- "start": {
2568
- "line": 50,
2569
- "column": 8
2570
- },
2571
- "end": {
2572
- "line": 50,
2573
- "column": 14
2574
- }
2575
- }
2576
- },
2577
- "arguments": [
2578
- {
2579
- "type": "Literal",
2580
- "value": "Bob",
2581
- "literalType": "string",
2582
- "_meta": {},
2583
- "loc": {
2584
- "start": {
2585
- "line": 50,
2586
- "column": 18
2587
- },
2588
- "end": {
2589
- "line": 50,
2590
- "column": 18
2591
- }
2592
- }
2593
- }
2594
- ],
2595
- "_meta": {},
2596
- "loc": {
2597
- "start": {
2598
- "line": 50,
2599
- "column": 8
2600
- },
2601
- "end": {
2602
- "line": 50,
2603
- "column": 24
2604
- }
2605
- }
2606
- },
2607
- {
2608
- "type": "CallExpression",
2609
- "callee": {
2610
- "type": "MemberAccess",
2611
- "object": {
2612
- "type": "Identifier",
2613
- "name": "names",
2614
- "_meta": {},
2615
- "loc": {
2616
- "start": {
2617
- "line": 51,
2618
- "column": 8
2619
- },
2620
- "end": {
2621
- "line": 51,
2622
- "column": 8
2623
- }
2624
- }
2625
- },
2626
- "property": {
2627
- "type": "Identifier",
2628
- "name": "add",
2629
- "_meta": {},
2630
- "loc": {
2631
- "start": {
2632
- "line": 51,
2633
- "column": 14
2634
- },
2635
- "end": {
2636
- "line": 51,
2637
- "column": 14
2638
- }
2639
- }
2640
- },
2641
- "computed": false,
2642
- "_meta": {},
2643
- "loc": {
2644
- "start": {
2645
- "line": 51,
2646
- "column": 8
2647
- },
2648
- "end": {
2649
- "line": 51,
2650
- "column": 14
2651
- }
2652
- }
2653
- },
2654
- "arguments": [
2655
- {
2656
- "type": "Literal",
2657
- "value": "Charlie",
2658
- "literalType": "string",
2659
- "_meta": {},
2660
- "loc": {
2661
- "start": {
2662
- "line": 51,
2663
- "column": 18
2664
- },
2665
- "end": {
2666
- "line": 51,
2667
- "column": 18
2668
- }
2669
- }
2670
- }
2671
- ],
2672
- "_meta": {},
2673
- "loc": {
2674
- "start": {
2675
- "line": 51,
2676
- "column": 8
2677
- },
2678
- "end": {
2679
- "line": 51,
2680
- "column": 28
2681
- }
2682
- }
2683
- },
2684
- {
2685
- "type": "CallExpression",
2686
- "callee": {
2687
- "type": "MemberAccess",
2688
- "object": {
2689
- "type": "MemberAccess",
2690
- "object": {
2691
- "type": "Identifier",
2692
- "name": "System",
2693
- "_meta": {},
2694
- "loc": {
2695
- "start": {
2696
- "line": 53,
2697
- "column": 8
2698
- },
2699
- "end": {
2700
- "line": 53,
2701
- "column": 8
2702
- }
2703
- }
2704
- },
2705
- "property": {
2706
- "type": "Identifier",
2707
- "name": "out",
2708
- "_meta": {},
2709
- "loc": {
2710
- "start": {
2711
- "line": 53,
2712
- "column": 15
2713
- },
2714
- "end": {
2715
- "line": 53,
2716
- "column": 15
2717
- }
2718
- }
2719
- },
2720
- "computed": false,
2721
- "_meta": {},
2722
- "loc": {
2723
- "start": {
2724
- "line": 53,
2725
- "column": 8
2726
- },
2727
- "end": {
2728
- "line": 53,
2729
- "column": 15
2730
- }
2731
- }
2732
- },
2733
- "property": {
2734
- "type": "Identifier",
2735
- "name": "println",
2736
- "_meta": {},
2737
- "loc": {
2738
- "start": {
2739
- "line": 53,
2740
- "column": 19
2741
- },
2742
- "end": {
2743
- "line": 53,
2744
- "column": 19
2745
- }
2746
- }
2747
- },
2748
- "computed": false,
2749
- "_meta": {},
2750
- "loc": {
2751
- "start": {
2752
- "line": 53,
2753
- "column": 8
2754
- },
2755
- "end": {
2756
- "line": 53,
2757
- "column": 19
2758
- }
2759
- }
2760
- },
2761
- "arguments": [
2762
- {
2763
- "type": "Literal",
2764
- "value": "Names in the list:",
2765
- "literalType": "string",
2766
- "_meta": {},
2767
- "loc": {
2768
- "start": {
2769
- "line": 53,
2770
- "column": 27
2771
- },
2772
- "end": {
2773
- "line": 53,
2774
- "column": 27
2775
- }
2776
- }
2777
- }
2778
- ],
2779
- "_meta": {},
2780
- "loc": {
2781
- "start": {
2782
- "line": 53,
2783
- "column": 8
2784
- },
2785
- "end": {
2786
- "line": 53,
2787
- "column": 48
2788
- }
2789
- }
2790
- },
2791
- {
2792
- "type": "CallExpression",
2793
- "callee": {
2794
- "type": "MemberAccess",
2795
- "object": {
2796
- "type": "Identifier",
2797
- "name": "Utils",
2798
- "_meta": {},
2799
- "loc": {
2800
- "start": {
2801
- "line": 54,
2802
- "column": 8
2803
- },
2804
- "end": {
2805
- "line": 54,
2806
- "column": 8
2807
- }
2808
- }
2809
- },
2810
- "property": {
2811
- "type": "Identifier",
2812
- "name": "printList",
2813
- "_meta": {},
2814
- "loc": {
2815
- "start": {
2816
- "line": 54,
2817
- "column": 14
2818
- },
2819
- "end": {
2820
- "line": 54,
2821
- "column": 14
2822
- }
2823
- }
2824
- },
2825
- "computed": false,
2826
- "_meta": {},
2827
- "loc": {
2828
- "start": {
2829
- "line": 54,
2830
- "column": 8
2831
- },
2832
- "end": {
2833
- "line": 54,
2834
- "column": 14
2835
- }
2836
- }
2837
- },
2838
- "arguments": [
2839
- {
2840
- "type": "Identifier",
2841
- "name": "names",
2842
- "_meta": {},
2843
- "loc": {
2844
- "start": {
2845
- "line": 54,
2846
- "column": 24
2847
- },
2848
- "end": {
2849
- "line": 54,
2850
- "column": 24
2851
- }
2852
- }
2853
- }
2854
- ],
2855
- "_meta": {},
2856
- "loc": {
2857
- "start": {
2858
- "line": 54,
2859
- "column": 8
2860
- },
2861
- "end": {
2862
- "line": 54,
2863
- "column": 30
2864
- }
2865
- }
2866
- },
2867
- {
2868
- "type": "VariableDeclaration",
2869
- "id": {
2870
- "type": "Identifier",
2871
- "name": "strMax",
2872
- "_meta": {},
2873
- "loc": {
2874
- "start": {
2875
- "line": 57,
2876
- "column": 15
2877
- },
2878
- "end": {
2879
- "line": 57,
2880
- "column": 15
2881
- }
2882
- }
2883
- },
2884
- "init": {
2885
- "type": "CallExpression",
2886
- "callee": {
2887
- "type": "MemberAccess",
2888
- "object": {
2889
- "type": "Identifier",
2890
- "name": "Utils",
2891
- "_meta": {},
2892
- "loc": {
2893
- "start": {
2894
- "line": 57,
2895
- "column": 24
2896
- },
2897
- "end": {
2898
- "line": 57,
2899
- "column": 24
2900
- }
2901
- }
2902
- },
2903
- "property": {
2904
- "type": "Identifier",
2905
- "name": "max",
2906
- "_meta": {},
2907
- "loc": {
2908
- "start": {
2909
- "line": 57,
2910
- "column": 30
2911
- },
2912
- "end": {
2913
- "line": 57,
2914
- "column": 30
2915
- }
2916
- }
2917
- },
2918
- "computed": false,
2919
- "_meta": {},
2920
- "loc": {
2921
- "start": {
2922
- "line": 57,
2923
- "column": 24
2924
- },
2925
- "end": {
2926
- "line": 57,
2927
- "column": 30
2928
- }
2929
- }
2930
- },
2931
- "arguments": [
2932
- {
2933
- "type": "Literal",
2934
- "value": "apple",
2935
- "literalType": "string",
2936
- "_meta": {},
2937
- "loc": {
2938
- "start": {
2939
- "line": 57,
2940
- "column": 34
2941
- },
2942
- "end": {
2943
- "line": 57,
2944
- "column": 34
2945
- }
2946
- }
2947
- },
2948
- {
2949
- "type": "Literal",
2950
- "value": "banana",
2951
- "literalType": "string",
2952
- "_meta": {},
2953
- "loc": {
2954
- "start": {
2955
- "line": 57,
2956
- "column": 43
2957
- },
2958
- "end": {
2959
- "line": 57,
2960
- "column": 43
2961
- }
2962
- }
2963
- }
2964
- ],
2965
- "_meta": {},
2966
- "loc": {
2967
- "start": {
2968
- "line": 57,
2969
- "column": 24
2970
- },
2971
- "end": {
2972
- "line": 57,
2973
- "column": 51
2974
- }
2975
- }
2976
- },
2977
- "cloned": false,
2978
- "varType": {
2979
- "type": "ScopedType",
2980
- "id": {
2981
- "type": "Identifier",
2982
- "name": "String",
2983
- "_meta": {},
2984
- "loc": {
2985
- "start": {
2986
- "line": 57,
2987
- "column": 8
2988
- },
2989
- "end": {
2990
- "line": 57,
2991
- "column": 8
2992
- }
2993
- }
2994
- },
2995
- "scope": null,
2996
- "typeArguments": null,
2997
- "_meta": {},
2998
- "loc": {
2999
- "start": {
3000
- "line": 57,
3001
- "column": 8
3002
- },
3003
- "end": {
3004
- "line": 57,
3005
- "column": 8
3006
- }
3007
- }
3008
- },
3009
- "_meta": {},
3010
- "loc": {
3011
- "start": {
3012
- "line": 57,
3013
- "column": 15
3014
- },
3015
- "end": {
3016
- "line": 57,
3017
- "column": 51
3018
- }
3019
- }
3020
- },
3021
- {
3022
- "type": "CallExpression",
3023
- "callee": {
3024
- "type": "MemberAccess",
3025
- "object": {
3026
- "type": "MemberAccess",
3027
- "object": {
3028
- "type": "Identifier",
3029
- "name": "System",
3030
- "_meta": {},
3031
- "loc": {
3032
- "start": {
3033
- "line": 58,
3034
- "column": 8
3035
- },
3036
- "end": {
3037
- "line": 58,
3038
- "column": 8
3039
- }
3040
- }
3041
- },
3042
- "property": {
3043
- "type": "Identifier",
3044
- "name": "out",
3045
- "_meta": {},
3046
- "loc": {
3047
- "start": {
3048
- "line": 58,
3049
- "column": 15
3050
- },
3051
- "end": {
3052
- "line": 58,
3053
- "column": 15
3054
- }
3055
- }
3056
- },
3057
- "computed": false,
3058
- "_meta": {},
3059
- "loc": {
3060
- "start": {
3061
- "line": 58,
3062
- "column": 8
3063
- },
3064
- "end": {
3065
- "line": 58,
3066
- "column": 15
3067
- }
3068
- }
3069
- },
3070
- "property": {
3071
- "type": "Identifier",
3072
- "name": "println",
3073
- "_meta": {},
3074
- "loc": {
3075
- "start": {
3076
- "line": 58,
3077
- "column": 19
3078
- },
3079
- "end": {
3080
- "line": 58,
3081
- "column": 19
3082
- }
3083
- }
3084
- },
3085
- "computed": false,
3086
- "_meta": {},
3087
- "loc": {
3088
- "start": {
3089
- "line": 58,
3090
- "column": 8
3091
- },
3092
- "end": {
3093
- "line": 58,
3094
- "column": 19
3095
- }
3096
- }
3097
- },
3098
- "arguments": [
3099
- {
3100
- "type": "BinaryExpression",
3101
- "operator": "+",
3102
- "left": {
3103
- "type": "Literal",
3104
- "value": "Max string: ",
3105
- "literalType": "string",
3106
- "_meta": {},
3107
- "loc": {
3108
- "start": {
3109
- "line": 58,
3110
- "column": 27
3111
- },
3112
- "end": {
3113
- "line": 58,
3114
- "column": 27
3115
- }
3116
- }
3117
- },
3118
- "right": {
3119
- "type": "Identifier",
3120
- "name": "strMax",
3121
- "_meta": {},
3122
- "loc": {
3123
- "start": {
3124
- "line": 58,
3125
- "column": 44
3126
- },
3127
- "end": {
3128
- "line": 58,
3129
- "column": 44
3130
- }
3131
- }
3132
- },
3133
- "_meta": {},
3134
- "loc": {
3135
- "start": {
3136
- "line": 58,
3137
- "column": 27
3138
- },
3139
- "end": {
3140
- "line": 58,
3141
- "column": 44
3142
- }
3143
- }
3144
- }
3145
- ],
3146
- "_meta": {},
3147
- "loc": {
3148
- "start": {
3149
- "line": 58,
3150
- "column": 8
3151
- },
3152
- "end": {
3153
- "line": 58,
3154
- "column": 51
3155
- }
3156
- }
3157
- },
3158
- {
3159
- "type": "VariableDeclaration",
3160
- "id": {
3161
- "type": "Identifier",
3162
- "name": "intMax",
3163
- "_meta": {},
3164
- "loc": {
3165
- "start": {
3166
- "line": 60,
3167
- "column": 16
3168
- },
3169
- "end": {
3170
- "line": 60,
3171
- "column": 16
3172
- }
3173
- }
3174
- },
3175
- "init": {
3176
- "type": "CallExpression",
3177
- "callee": {
3178
- "type": "MemberAccess",
3179
- "object": {
3180
- "type": "Identifier",
3181
- "name": "Utils",
3182
- "_meta": {},
3183
- "loc": {
3184
- "start": {
3185
- "line": 60,
3186
- "column": 25
3187
- },
3188
- "end": {
3189
- "line": 60,
3190
- "column": 25
3191
- }
3192
- }
3193
- },
3194
- "property": {
3195
- "type": "Identifier",
3196
- "name": "max",
3197
- "_meta": {},
3198
- "loc": {
3199
- "start": {
3200
- "line": 60,
3201
- "column": 31
3202
- },
3203
- "end": {
3204
- "line": 60,
3205
- "column": 31
3206
- }
3207
- }
3208
- },
3209
- "computed": false,
3210
- "_meta": {},
3211
- "loc": {
3212
- "start": {
3213
- "line": 60,
3214
- "column": 25
3215
- },
3216
- "end": {
3217
- "line": 60,
3218
- "column": 31
3219
- }
3220
- }
3221
- },
3222
- "arguments": [
3223
- {
3224
- "type": "Literal",
3225
- "value": "10",
3226
- "literalType": "number",
3227
- "_meta": {},
3228
- "loc": {
3229
- "start": {
3230
- "line": 60,
3231
- "column": 35
3232
- },
3233
- "end": {
3234
- "line": 60,
3235
- "column": 35
3236
- }
3237
- }
3238
- },
3239
- {
3240
- "type": "Literal",
3241
- "value": "20",
3242
- "literalType": "number",
3243
- "_meta": {},
3244
- "loc": {
3245
- "start": {
3246
- "line": 60,
3247
- "column": 39
3248
- },
3249
- "end": {
3250
- "line": 60,
3251
- "column": 39
3252
- }
3253
- }
3254
- }
3255
- ],
3256
- "_meta": {},
3257
- "loc": {
3258
- "start": {
3259
- "line": 60,
3260
- "column": 25
3261
- },
3262
- "end": {
3263
- "line": 60,
3264
- "column": 41
3265
- }
3266
- }
3267
- },
3268
- "cloned": false,
3269
- "varType": {
3270
- "type": "ScopedType",
3271
- "id": {
3272
- "type": "Identifier",
3273
- "name": "Integer",
3274
- "_meta": {},
3275
- "loc": {
3276
- "start": {
3277
- "line": 60,
3278
- "column": 8
3279
- },
3280
- "end": {
3281
- "line": 60,
3282
- "column": 8
3283
- }
3284
- }
3285
- },
3286
- "scope": null,
3287
- "typeArguments": null,
3288
- "_meta": {},
3289
- "loc": {
3290
- "start": {
3291
- "line": 60,
3292
- "column": 8
3293
- },
3294
- "end": {
3295
- "line": 60,
3296
- "column": 8
3297
- }
3298
- }
3299
- },
3300
- "_meta": {},
3301
- "loc": {
3302
- "start": {
3303
- "line": 60,
3304
- "column": 16
3305
- },
3306
- "end": {
3307
- "line": 60,
3308
- "column": 41
3309
- }
3310
- }
3311
- },
3312
- {
3313
- "type": "CallExpression",
3314
- "callee": {
3315
- "type": "MemberAccess",
3316
- "object": {
3317
- "type": "MemberAccess",
3318
- "object": {
3319
- "type": "Identifier",
3320
- "name": "System",
3321
- "_meta": {},
3322
- "loc": {
3323
- "start": {
3324
- "line": 61,
3325
- "column": 8
3326
- },
3327
- "end": {
3328
- "line": 61,
3329
- "column": 8
3330
- }
3331
- }
3332
- },
3333
- "property": {
3334
- "type": "Identifier",
3335
- "name": "out",
3336
- "_meta": {},
3337
- "loc": {
3338
- "start": {
3339
- "line": 61,
3340
- "column": 15
3341
- },
3342
- "end": {
3343
- "line": 61,
3344
- "column": 15
3345
- }
3346
- }
3347
- },
3348
- "computed": false,
3349
- "_meta": {},
3350
- "loc": {
3351
- "start": {
3352
- "line": 61,
3353
- "column": 8
3354
- },
3355
- "end": {
3356
- "line": 61,
3357
- "column": 15
3358
- }
3359
- }
3360
- },
3361
- "property": {
3362
- "type": "Identifier",
3363
- "name": "println",
3364
- "_meta": {},
3365
- "loc": {
3366
- "start": {
3367
- "line": 61,
3368
- "column": 19
3369
- },
3370
- "end": {
3371
- "line": 61,
3372
- "column": 19
3373
- }
3374
- }
3375
- },
3376
- "computed": false,
3377
- "_meta": {},
3378
- "loc": {
3379
- "start": {
3380
- "line": 61,
3381
- "column": 8
3382
- },
3383
- "end": {
3384
- "line": 61,
3385
- "column": 19
3386
- }
3387
- }
3388
- },
3389
- "arguments": [
3390
- {
3391
- "type": "BinaryExpression",
3392
- "operator": "+",
3393
- "left": {
3394
- "type": "Literal",
3395
- "value": "Max integer: ",
3396
- "literalType": "string",
3397
- "_meta": {},
3398
- "loc": {
3399
- "start": {
3400
- "line": 61,
3401
- "column": 27
3402
- },
3403
- "end": {
3404
- "line": 61,
3405
- "column": 27
3406
- }
3407
- }
3408
- },
3409
- "right": {
3410
- "type": "Identifier",
3411
- "name": "intMax",
3412
- "_meta": {},
3413
- "loc": {
3414
- "start": {
3415
- "line": 61,
3416
- "column": 45
3417
- },
3418
- "end": {
3419
- "line": 61,
3420
- "column": 45
3421
- }
3422
- }
3423
- },
3424
- "_meta": {},
3425
- "loc": {
3426
- "start": {
3427
- "line": 61,
3428
- "column": 27
3429
- },
3430
- "end": {
3431
- "line": 61,
3432
- "column": 45
3433
- }
3434
- }
3435
- }
3436
- ],
3437
- "_meta": {},
3438
- "loc": {
3439
- "start": {
3440
- "line": 61,
3441
- "column": 8
3442
- },
3443
- "end": {
3444
- "line": 61,
3445
- "column": 52
3446
- }
3447
- }
3448
- },
3449
- {
3450
- "type": "VariableDeclaration",
3451
- "id": {
3452
- "type": "Identifier",
3453
- "name": "numbers",
3454
- "_meta": {},
3455
- "loc": {
3456
- "start": {
3457
- "line": 64,
3458
- "column": 31
3459
- },
3460
- "end": {
3461
- "line": 64,
3462
- "column": 31
3463
- }
3464
- }
3465
- },
3466
- "init": {
3467
- "type": "NewExpression",
3468
- "callee": {
3469
- "type": "Identifier",
3470
- "name": "ArrayList",
3471
- "_meta": {},
3472
- "loc": {
3473
- "start": {
3474
- "line": 64,
3475
- "column": 41
3476
- },
3477
- "end": {
3478
- "line": 64,
3479
- "column": 57
3480
- }
3481
- }
3482
- },
3483
- "arguments": [],
3484
- "_meta": {},
3485
- "loc": {
3486
- "start": {
3487
- "line": 64,
3488
- "column": 41
3489
- },
3490
- "end": {
3491
- "line": 64,
3492
- "column": 57
3493
- }
3494
- }
3495
- },
3496
- "cloned": false,
3497
- "varType": {
3498
- "type": "ScopedType",
3499
- "id": {
3500
- "type": "Identifier",
3501
- "name": "List",
3502
- "_meta": {},
3503
- "loc": {
3504
- "start": {
3505
- "line": 64,
3506
- "column": 8
3507
- },
3508
- "end": {
3509
- "line": 64,
3510
- "column": 29
3511
- }
3512
- }
3513
- },
3514
- "scope": null,
3515
- "typeArguments": null,
3516
- "_meta": {},
3517
- "loc": {
3518
- "start": {
3519
- "line": 64,
3520
- "column": 8
3521
- },
3522
- "end": {
3523
- "line": 64,
3524
- "column": 29
3525
- }
3526
- }
3527
- },
3528
- "_meta": {},
3529
- "loc": {
3530
- "start": {
3531
- "line": 64,
3532
- "column": 31
3533
- },
3534
- "end": {
3535
- "line": 64,
3536
- "column": 57
3537
- }
3538
- }
3539
- },
3540
- {
3541
- "type": "CallExpression",
3542
- "callee": {
3543
- "type": "MemberAccess",
3544
- "object": {
3545
- "type": "MemberAccess",
3546
- "object": {
3547
- "type": "Identifier",
3548
- "name": "System",
3549
- "_meta": {},
3550
- "loc": {
3551
- "start": {
3552
- "line": 66,
3553
- "column": 8
3554
- },
3555
- "end": {
3556
- "line": 66,
3557
- "column": 8
3558
- }
3559
- }
3560
- },
3561
- "property": {
3562
- "type": "Identifier",
3563
- "name": "out",
3564
- "_meta": {},
3565
- "loc": {
3566
- "start": {
3567
- "line": 66,
3568
- "column": 15
3569
- },
3570
- "end": {
3571
- "line": 66,
3572
- "column": 15
3573
- }
3574
- }
3575
- },
3576
- "computed": false,
3577
- "_meta": {},
3578
- "loc": {
3579
- "start": {
3580
- "line": 66,
3581
- "column": 8
3582
- },
3583
- "end": {
3584
- "line": 66,
3585
- "column": 15
3586
- }
3587
- }
3588
- },
3589
- "property": {
3590
- "type": "Identifier",
3591
- "name": "println",
3592
- "_meta": {},
3593
- "loc": {
3594
- "start": {
3595
- "line": 66,
3596
- "column": 19
3597
- },
3598
- "end": {
3599
- "line": 66,
3600
- "column": 19
3601
- }
3602
- }
3603
- },
3604
- "computed": false,
3605
- "_meta": {},
3606
- "loc": {
3607
- "start": {
3608
- "line": 66,
3609
- "column": 8
3610
- },
3611
- "end": {
3612
- "line": 66,
3613
- "column": 19
3614
- }
3615
- }
3616
- },
3617
- "arguments": [
3618
- {
3619
- "type": "BinaryExpression",
3620
- "operator": "+",
3621
- "left": {
3622
- "type": "Literal",
3623
- "value": "Numbers list is empty: ",
3624
- "literalType": "string",
3625
- "_meta": {},
3626
- "loc": {
3627
- "start": {
3628
- "line": 66,
3629
- "column": 27
3630
- },
3631
- "end": {
3632
- "line": 66,
3633
- "column": 27
3634
- }
3635
- }
3636
- },
3637
- "right": {
3638
- "type": "CallExpression",
3639
- "callee": {
3640
- "type": "MemberAccess",
3641
- "object": {
3642
- "type": "Identifier",
3643
- "name": "numbers",
3644
- "_meta": {},
3645
- "loc": {
3646
- "start": {
3647
- "line": 66,
3648
- "column": 55
3649
- },
3650
- "end": {
3651
- "line": 66,
3652
- "column": 55
3653
- }
3654
- }
3655
- },
3656
- "property": {
3657
- "type": "Identifier",
3658
- "name": "isEmpty",
3659
- "_meta": {},
3660
- "loc": {
3661
- "start": {
3662
- "line": 66,
3663
- "column": 63
3664
- },
3665
- "end": {
3666
- "line": 66,
3667
- "column": 63
3668
- }
3669
- }
3670
- },
3671
- "computed": false,
3672
- "_meta": {},
3673
- "loc": {
3674
- "start": {
3675
- "line": 66,
3676
- "column": 55
3677
- },
3678
- "end": {
3679
- "line": 66,
3680
- "column": 63
3681
- }
3682
- }
3683
- },
3684
- "arguments": [],
3685
- "_meta": {},
3686
- "loc": {
3687
- "start": {
3688
- "line": 66,
3689
- "column": 55
3690
- },
3691
- "end": {
3692
- "line": 66,
3693
- "column": 71
3694
- }
3695
- }
3696
- },
3697
- "_meta": {},
3698
- "loc": {
3699
- "start": {
3700
- "line": 66,
3701
- "column": 27
3702
- },
3703
- "end": {
3704
- "line": 66,
3705
- "column": 71
3706
- }
3707
- }
3708
- }
3709
- ],
3710
- "_meta": {},
3711
- "loc": {
3712
- "start": {
3713
- "line": 66,
3714
- "column": 8
3715
- },
3716
- "end": {
3717
- "line": 66,
3718
- "column": 73
3719
- }
3720
- }
3721
- }
3722
- ],
3723
- "id": null,
3724
- "_meta": {},
3725
- "loc": {
3726
- "start": {
3727
- "line": 37,
3728
- "column": 43
3729
- },
3730
- "end": {
3731
- "line": 67,
3732
- "column": 4
3733
- }
3734
- }
3735
- },
3736
- "modifiers": [],
3737
- "_meta": {
3738
- "modifiers": [
3739
- "public",
3740
- "static"
3741
- ],
3742
- "isPublic": true,
3743
- "isStatic": true
3744
- },
3745
- "loc": {
3746
- "start": {
3747
- "line": 37,
3748
- "column": 4
3749
- },
3750
- "end": {
3751
- "line": 67,
3752
- "column": 4
3753
- }
3754
- }
3755
- }
3756
- ],
3757
- "supers": [],
3758
- "_meta": {
3759
- "modifiers": [
3760
- "public"
3761
- ],
3762
- "isPublic": true
3763
- },
3764
- "loc": {
3765
- "start": {
3766
- "line": 36,
3767
- "column": 7
3768
- },
3769
- "end": {
3770
- "line": 68,
3771
- "column": 0
3772
- }
3773
- }
3774
- },
3775
- "alias": {
3776
- "type": "Identifier",
3777
- "name": "GenericExample",
3778
- "_meta": {},
3779
- "loc": {
3780
- "start": {
3781
- "line": 36,
3782
- "column": 13
3783
- },
3784
- "end": {
3785
- "line": 36,
3786
- "column": 13
3787
- }
3788
- }
3789
- },
3790
- "_meta": {},
3791
- "loc": {
3792
- "start": {
3793
- "line": 36,
3794
- "column": 0
3795
- },
3796
- "end": {
3797
- "line": 68,
3798
- "column": 0
3799
- }
3800
- }
3801
- }
3802
- ],
3803
- "language": "java",
3804
- "languageVersion": "17",
3805
- "uri": "src/frontend/java/test/examples/template.java",
3806
- "version": "0.1.61",
3807
- "_meta": {
3808
- "qualifiedName": "com.alipay.sts.jdtplus.antgraph.util"
3809
- },
3810
- "loc": {
3811
- "start": {
3812
- "line": 1,
3813
- "column": 0
3814
- },
3815
- "end": {
3816
- "line": 68,
3817
- "column": 0
3818
- }
3819
- }
3820
- }