@ant-yasa/uast-parser-php 0.2.9 → 0.2.10

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.
Files changed (33) hide show
  1. package/dist/package.json +1 -1
  2. package/package.json +1 -1
  3. package/src/index.ts +26 -0
  4. package/src/parser.ts +1234 -0
  5. package/tests/benchmark/base/advanced.php +20 -0
  6. package/tests/benchmark/base/advanced.php.json +1269 -0
  7. package/tests/benchmark/base/basic.php +3 -0
  8. package/tests/benchmark/base/basic.php.json +292 -0
  9. package/tests/benchmark/base/closure-class.php +24 -0
  10. package/tests/benchmark/base/closure-class.php.json +1623 -0
  11. package/tests/benchmark/base/control-flow.php +37 -0
  12. package/tests/benchmark/base/control-flow.php.json +2010 -0
  13. package/tests/benchmark/base/enum-trait-adapt.php +31 -0
  14. package/tests/benchmark/base/enum-trait-adapt.php.json +965 -0
  15. package/tests/benchmark/base/exprs.php +4 -0
  16. package/tests/benchmark/base/exprs.php.json +811 -0
  17. package/tests/benchmark/base/flow-extras.php +12 -0
  18. package/tests/benchmark/base/flow-extras.php.json +897 -0
  19. package/tests/benchmark/base/function.php +7 -0
  20. package/tests/benchmark/base/function.php.json +536 -0
  21. package/tests/benchmark/base/modern-php.php +13 -0
  22. package/tests/benchmark/base/modern-php.php.json +508 -0
  23. package/tests/benchmark/base/namespace.php +5 -0
  24. package/tests/benchmark/base/namespace.php.json +307 -0
  25. package/tests/benchmark/base/new-static.php +3 -0
  26. package/tests/benchmark/base/new-static.php.json +399 -0
  27. package/tests/benchmark/base/runtime.php +13 -0
  28. package/tests/benchmark/base/runtime.php.json +1095 -0
  29. package/tests/benchmark/base/strings-casts.php +17 -0
  30. package/tests/benchmark/base/strings-casts.php.json +1357 -0
  31. package/tests/benchmark/base/structures.php +26 -0
  32. package/tests/benchmark/base/structures.php.json +1582 -0
  33. package/tests/index.ts +87 -0
@@ -0,0 +1,1269 @@
1
+ {
2
+ "type": "CompileUnit",
3
+ "body": [
4
+ {
5
+ "type": "VariableDeclaration",
6
+ "id": {
7
+ "type": "Identifier",
8
+ "name": "APP",
9
+ "_meta": {
10
+ "loc": {
11
+ "start": {
12
+ "line": 3,
13
+ "column": 7
14
+ },
15
+ "end": {
16
+ "line": 3,
17
+ "column": 10
18
+ },
19
+ "sourcefile": "advanced.php"
20
+ }
21
+ },
22
+ "loc": {
23
+ "start": {
24
+ "line": 3,
25
+ "column": 7
26
+ },
27
+ "end": {
28
+ "line": 3,
29
+ "column": 10
30
+ },
31
+ "sourcefile": "advanced.php"
32
+ }
33
+ },
34
+ "init": {
35
+ "type": "Literal",
36
+ "value": 1,
37
+ "literalType": "number",
38
+ "_meta": {
39
+ "loc": {
40
+ "start": {
41
+ "line": 3,
42
+ "column": 13
43
+ },
44
+ "end": {
45
+ "line": 3,
46
+ "column": 14
47
+ },
48
+ "sourcefile": "advanced.php"
49
+ }
50
+ },
51
+ "loc": {
52
+ "start": {
53
+ "line": 3,
54
+ "column": 13
55
+ },
56
+ "end": {
57
+ "line": 3,
58
+ "column": 14
59
+ },
60
+ "sourcefile": "advanced.php"
61
+ }
62
+ },
63
+ "cloned": false,
64
+ "varType": {
65
+ "type": "DynamicType",
66
+ "id": null,
67
+ "_meta": {}
68
+ },
69
+ "_meta": {
70
+ "constant": true,
71
+ "loc": {
72
+ "start": {
73
+ "line": 3,
74
+ "column": 7
75
+ },
76
+ "end": {
77
+ "line": 3,
78
+ "column": 14
79
+ },
80
+ "sourcefile": "advanced.php"
81
+ }
82
+ },
83
+ "loc": {
84
+ "start": {
85
+ "line": 3,
86
+ "column": 7
87
+ },
88
+ "end": {
89
+ "line": 3,
90
+ "column": 14
91
+ },
92
+ "sourcefile": "advanced.php"
93
+ }
94
+ },
95
+ {
96
+ "type": "Noop",
97
+ "_meta": {
98
+ "loc": {
99
+ "start": {
100
+ "line": 5,
101
+ "column": 1
102
+ },
103
+ "end": {
104
+ "line": 5,
105
+ "column": 25
106
+ },
107
+ "sourcefile": "advanced.php"
108
+ },
109
+ "declare": {
110
+ "directives": [
111
+ {
112
+ "key": {
113
+ "type": "Literal",
114
+ "value": 1,
115
+ "literalType": "number",
116
+ "_meta": {
117
+ "loc": {
118
+ "start": {
119
+ "line": 5,
120
+ "column": 22
121
+ },
122
+ "end": {
123
+ "line": 5,
124
+ "column": 23
125
+ },
126
+ "sourcefile": "advanced.php"
127
+ }
128
+ },
129
+ "loc": {
130
+ "start": {
131
+ "line": 5,
132
+ "column": 22
133
+ },
134
+ "end": {
135
+ "line": 5,
136
+ "column": 23
137
+ },
138
+ "sourcefile": "advanced.php"
139
+ }
140
+ },
141
+ "value": null
142
+ }
143
+ ]
144
+ }
145
+ },
146
+ "loc": {
147
+ "start": {
148
+ "line": 5,
149
+ "column": 1
150
+ },
151
+ "end": {
152
+ "line": 5,
153
+ "column": 25
154
+ },
155
+ "sourcefile": "advanced.php"
156
+ }
157
+ },
158
+ {
159
+ "type": "FunctionDefinition",
160
+ "id": {
161
+ "type": "Identifier",
162
+ "name": "choose",
163
+ "_meta": {
164
+ "loc": {
165
+ "start": {
166
+ "line": 7,
167
+ "column": 10
168
+ },
169
+ "end": {
170
+ "line": 7,
171
+ "column": 16
172
+ },
173
+ "sourcefile": "advanced.php"
174
+ }
175
+ },
176
+ "loc": {
177
+ "start": {
178
+ "line": 7,
179
+ "column": 10
180
+ },
181
+ "end": {
182
+ "line": 7,
183
+ "column": 16
184
+ },
185
+ "sourcefile": "advanced.php"
186
+ }
187
+ },
188
+ "parameters": [
189
+ {
190
+ "type": "VariableDeclaration",
191
+ "id": {
192
+ "type": "Identifier",
193
+ "name": "v",
194
+ "_meta": {
195
+ "loc": {
196
+ "start": {
197
+ "line": 7,
198
+ "column": 17
199
+ },
200
+ "end": {
201
+ "line": 7,
202
+ "column": 19
203
+ },
204
+ "sourcefile": "advanced.php"
205
+ }
206
+ },
207
+ "loc": {
208
+ "start": {
209
+ "line": 7,
210
+ "column": 17
211
+ },
212
+ "end": {
213
+ "line": 7,
214
+ "column": 19
215
+ },
216
+ "sourcefile": "advanced.php"
217
+ }
218
+ },
219
+ "init": null,
220
+ "cloned": false,
221
+ "varType": {
222
+ "type": "DynamicType",
223
+ "id": null,
224
+ "_meta": {}
225
+ },
226
+ "_meta": {
227
+ "variadic": false,
228
+ "loc": {
229
+ "start": {
230
+ "line": 7,
231
+ "column": 17
232
+ },
233
+ "end": {
234
+ "line": 7,
235
+ "column": 19
236
+ },
237
+ "sourcefile": "advanced.php"
238
+ }
239
+ },
240
+ "loc": {
241
+ "start": {
242
+ "line": 7,
243
+ "column": 17
244
+ },
245
+ "end": {
246
+ "line": 7,
247
+ "column": 19
248
+ },
249
+ "sourcefile": "advanced.php"
250
+ }
251
+ }
252
+ ],
253
+ "returnType": {
254
+ "type": "DynamicType",
255
+ "id": null,
256
+ "_meta": {}
257
+ },
258
+ "body": {
259
+ "type": "ScopedStatement",
260
+ "body": [
261
+ {
262
+ "type": "ExpressionStatement",
263
+ "expression": {
264
+ "type": "AssignmentExpression",
265
+ "left": {
266
+ "type": "Identifier",
267
+ "name": "value",
268
+ "_meta": {
269
+ "loc": {
270
+ "start": {
271
+ "line": 9,
272
+ "column": 5
273
+ },
274
+ "end": {
275
+ "line": 9,
276
+ "column": 11
277
+ },
278
+ "sourcefile": "advanced.php"
279
+ }
280
+ },
281
+ "loc": {
282
+ "start": {
283
+ "line": 9,
284
+ "column": 5
285
+ },
286
+ "end": {
287
+ "line": 9,
288
+ "column": 11
289
+ },
290
+ "sourcefile": "advanced.php"
291
+ }
292
+ },
293
+ "right": {
294
+ "type": "CallExpression",
295
+ "callee": {
296
+ "type": "Identifier",
297
+ "name": "match",
298
+ "_meta": {}
299
+ },
300
+ "arguments": [
301
+ {
302
+ "type": "Identifier",
303
+ "name": "v",
304
+ "_meta": {
305
+ "loc": {
306
+ "start": {
307
+ "line": 9,
308
+ "column": 21
309
+ },
310
+ "end": {
311
+ "line": 9,
312
+ "column": 23
313
+ },
314
+ "sourcefile": "advanced.php"
315
+ }
316
+ },
317
+ "loc": {
318
+ "start": {
319
+ "line": 9,
320
+ "column": 21
321
+ },
322
+ "end": {
323
+ "line": 9,
324
+ "column": 23
325
+ },
326
+ "sourcefile": "advanced.php"
327
+ }
328
+ },
329
+ {
330
+ "type": "TupleExpression",
331
+ "elements": [
332
+ {
333
+ "type": "ObjectExpression",
334
+ "properties": [
335
+ {
336
+ "type": "ObjectProperty",
337
+ "key": {
338
+ "type": "Identifier",
339
+ "name": "conds",
340
+ "_meta": {}
341
+ },
342
+ "value": {
343
+ "type": "TupleExpression",
344
+ "elements": [
345
+ {
346
+ "type": "Literal",
347
+ "value": 1,
348
+ "literalType": "number",
349
+ "_meta": {
350
+ "loc": {
351
+ "start": {
352
+ "line": 10,
353
+ "column": 9
354
+ },
355
+ "end": {
356
+ "line": 10,
357
+ "column": 10
358
+ },
359
+ "sourcefile": "advanced.php"
360
+ }
361
+ },
362
+ "loc": {
363
+ "start": {
364
+ "line": 10,
365
+ "column": 9
366
+ },
367
+ "end": {
368
+ "line": 10,
369
+ "column": 10
370
+ },
371
+ "sourcefile": "advanced.php"
372
+ }
373
+ }
374
+ ],
375
+ "_meta": {}
376
+ },
377
+ "_meta": {
378
+ "loc": {
379
+ "start": {
380
+ "line": 10,
381
+ "column": 9
382
+ },
383
+ "end": {
384
+ "line": 10,
385
+ "column": 19
386
+ },
387
+ "sourcefile": "advanced.php"
388
+ }
389
+ },
390
+ "loc": {
391
+ "start": {
392
+ "line": 10,
393
+ "column": 9
394
+ },
395
+ "end": {
396
+ "line": 10,
397
+ "column": 19
398
+ },
399
+ "sourcefile": "advanced.php"
400
+ }
401
+ },
402
+ {
403
+ "type": "ObjectProperty",
404
+ "key": {
405
+ "type": "Identifier",
406
+ "name": "body",
407
+ "_meta": {}
408
+ },
409
+ "value": {
410
+ "type": "CallExpression",
411
+ "callee": {
412
+ "type": "Identifier",
413
+ "name": "foo",
414
+ "_meta": {
415
+ "loc": {
416
+ "start": {
417
+ "line": 10,
418
+ "column": 14
419
+ },
420
+ "end": {
421
+ "line": 10,
422
+ "column": 17
423
+ },
424
+ "sourcefile": "advanced.php"
425
+ }
426
+ },
427
+ "loc": {
428
+ "start": {
429
+ "line": 10,
430
+ "column": 14
431
+ },
432
+ "end": {
433
+ "line": 10,
434
+ "column": 17
435
+ },
436
+ "sourcefile": "advanced.php"
437
+ }
438
+ },
439
+ "arguments": [],
440
+ "_meta": {
441
+ "loc": {
442
+ "start": {
443
+ "line": 10,
444
+ "column": 14
445
+ },
446
+ "end": {
447
+ "line": 10,
448
+ "column": 19
449
+ },
450
+ "sourcefile": "advanced.php"
451
+ }
452
+ },
453
+ "loc": {
454
+ "start": {
455
+ "line": 10,
456
+ "column": 14
457
+ },
458
+ "end": {
459
+ "line": 10,
460
+ "column": 19
461
+ },
462
+ "sourcefile": "advanced.php"
463
+ }
464
+ },
465
+ "_meta": {
466
+ "loc": {
467
+ "start": {
468
+ "line": 10,
469
+ "column": 9
470
+ },
471
+ "end": {
472
+ "line": 10,
473
+ "column": 19
474
+ },
475
+ "sourcefile": "advanced.php"
476
+ }
477
+ },
478
+ "loc": {
479
+ "start": {
480
+ "line": 10,
481
+ "column": 9
482
+ },
483
+ "end": {
484
+ "line": 10,
485
+ "column": 19
486
+ },
487
+ "sourcefile": "advanced.php"
488
+ }
489
+ }
490
+ ],
491
+ "id": null,
492
+ "_meta": {
493
+ "loc": {
494
+ "start": {
495
+ "line": 10,
496
+ "column": 9
497
+ },
498
+ "end": {
499
+ "line": 10,
500
+ "column": 19
501
+ },
502
+ "sourcefile": "advanced.php"
503
+ }
504
+ },
505
+ "loc": {
506
+ "start": {
507
+ "line": 10,
508
+ "column": 9
509
+ },
510
+ "end": {
511
+ "line": 10,
512
+ "column": 19
513
+ },
514
+ "sourcefile": "advanced.php"
515
+ }
516
+ },
517
+ {
518
+ "type": "ObjectExpression",
519
+ "properties": [
520
+ {
521
+ "type": "ObjectProperty",
522
+ "key": {
523
+ "type": "Identifier",
524
+ "name": "conds",
525
+ "_meta": {}
526
+ },
527
+ "value": {
528
+ "type": "TupleExpression",
529
+ "elements": [
530
+ {
531
+ "type": "Literal",
532
+ "value": 2,
533
+ "literalType": "number",
534
+ "_meta": {
535
+ "loc": {
536
+ "start": {
537
+ "line": 11,
538
+ "column": 9
539
+ },
540
+ "end": {
541
+ "line": 11,
542
+ "column": 10
543
+ },
544
+ "sourcefile": "advanced.php"
545
+ }
546
+ },
547
+ "loc": {
548
+ "start": {
549
+ "line": 11,
550
+ "column": 9
551
+ },
552
+ "end": {
553
+ "line": 11,
554
+ "column": 10
555
+ },
556
+ "sourcefile": "advanced.php"
557
+ }
558
+ },
559
+ {
560
+ "type": "Literal",
561
+ "value": 3,
562
+ "literalType": "number",
563
+ "_meta": {
564
+ "loc": {
565
+ "start": {
566
+ "line": 11,
567
+ "column": 12
568
+ },
569
+ "end": {
570
+ "line": 11,
571
+ "column": 13
572
+ },
573
+ "sourcefile": "advanced.php"
574
+ }
575
+ },
576
+ "loc": {
577
+ "start": {
578
+ "line": 11,
579
+ "column": 12
580
+ },
581
+ "end": {
582
+ "line": 11,
583
+ "column": 13
584
+ },
585
+ "sourcefile": "advanced.php"
586
+ }
587
+ }
588
+ ],
589
+ "_meta": {}
590
+ },
591
+ "_meta": {
592
+ "loc": {
593
+ "start": {
594
+ "line": 11,
595
+ "column": 9
596
+ },
597
+ "end": {
598
+ "line": 11,
599
+ "column": 22
600
+ },
601
+ "sourcefile": "advanced.php"
602
+ }
603
+ },
604
+ "loc": {
605
+ "start": {
606
+ "line": 11,
607
+ "column": 9
608
+ },
609
+ "end": {
610
+ "line": 11,
611
+ "column": 22
612
+ },
613
+ "sourcefile": "advanced.php"
614
+ }
615
+ },
616
+ {
617
+ "type": "ObjectProperty",
618
+ "key": {
619
+ "type": "Identifier",
620
+ "name": "body",
621
+ "_meta": {}
622
+ },
623
+ "value": {
624
+ "type": "CallExpression",
625
+ "callee": {
626
+ "type": "Identifier",
627
+ "name": "bar",
628
+ "_meta": {
629
+ "loc": {
630
+ "start": {
631
+ "line": 11,
632
+ "column": 17
633
+ },
634
+ "end": {
635
+ "line": 11,
636
+ "column": 20
637
+ },
638
+ "sourcefile": "advanced.php"
639
+ }
640
+ },
641
+ "loc": {
642
+ "start": {
643
+ "line": 11,
644
+ "column": 17
645
+ },
646
+ "end": {
647
+ "line": 11,
648
+ "column": 20
649
+ },
650
+ "sourcefile": "advanced.php"
651
+ }
652
+ },
653
+ "arguments": [],
654
+ "_meta": {
655
+ "loc": {
656
+ "start": {
657
+ "line": 11,
658
+ "column": 17
659
+ },
660
+ "end": {
661
+ "line": 11,
662
+ "column": 22
663
+ },
664
+ "sourcefile": "advanced.php"
665
+ }
666
+ },
667
+ "loc": {
668
+ "start": {
669
+ "line": 11,
670
+ "column": 17
671
+ },
672
+ "end": {
673
+ "line": 11,
674
+ "column": 22
675
+ },
676
+ "sourcefile": "advanced.php"
677
+ }
678
+ },
679
+ "_meta": {
680
+ "loc": {
681
+ "start": {
682
+ "line": 11,
683
+ "column": 9
684
+ },
685
+ "end": {
686
+ "line": 11,
687
+ "column": 22
688
+ },
689
+ "sourcefile": "advanced.php"
690
+ }
691
+ },
692
+ "loc": {
693
+ "start": {
694
+ "line": 11,
695
+ "column": 9
696
+ },
697
+ "end": {
698
+ "line": 11,
699
+ "column": 22
700
+ },
701
+ "sourcefile": "advanced.php"
702
+ }
703
+ }
704
+ ],
705
+ "id": null,
706
+ "_meta": {
707
+ "loc": {
708
+ "start": {
709
+ "line": 11,
710
+ "column": 9
711
+ },
712
+ "end": {
713
+ "line": 11,
714
+ "column": 22
715
+ },
716
+ "sourcefile": "advanced.php"
717
+ }
718
+ },
719
+ "loc": {
720
+ "start": {
721
+ "line": 11,
722
+ "column": 9
723
+ },
724
+ "end": {
725
+ "line": 11,
726
+ "column": 22
727
+ },
728
+ "sourcefile": "advanced.php"
729
+ }
730
+ },
731
+ {
732
+ "type": "ObjectExpression",
733
+ "properties": [
734
+ {
735
+ "type": "ObjectProperty",
736
+ "key": {
737
+ "type": "Identifier",
738
+ "name": "conds",
739
+ "_meta": {}
740
+ },
741
+ "value": {
742
+ "type": "TupleExpression",
743
+ "elements": [
744
+ {
745
+ "type": "Literal",
746
+ "value": "default",
747
+ "literalType": "string",
748
+ "_meta": {}
749
+ }
750
+ ],
751
+ "_meta": {}
752
+ },
753
+ "_meta": {
754
+ "loc": {
755
+ "start": {
756
+ "line": 12,
757
+ "column": 9
758
+ },
759
+ "end": {
760
+ "line": 12,
761
+ "column": 25
762
+ },
763
+ "sourcefile": "advanced.php"
764
+ }
765
+ },
766
+ "loc": {
767
+ "start": {
768
+ "line": 12,
769
+ "column": 9
770
+ },
771
+ "end": {
772
+ "line": 12,
773
+ "column": 25
774
+ },
775
+ "sourcefile": "advanced.php"
776
+ }
777
+ },
778
+ {
779
+ "type": "ObjectProperty",
780
+ "key": {
781
+ "type": "Identifier",
782
+ "name": "body",
783
+ "_meta": {}
784
+ },
785
+ "value": {
786
+ "type": "CallExpression",
787
+ "callee": {
788
+ "type": "Identifier",
789
+ "name": "baz",
790
+ "_meta": {
791
+ "loc": {
792
+ "start": {
793
+ "line": 12,
794
+ "column": 20
795
+ },
796
+ "end": {
797
+ "line": 12,
798
+ "column": 23
799
+ },
800
+ "sourcefile": "advanced.php"
801
+ }
802
+ },
803
+ "loc": {
804
+ "start": {
805
+ "line": 12,
806
+ "column": 20
807
+ },
808
+ "end": {
809
+ "line": 12,
810
+ "column": 23
811
+ },
812
+ "sourcefile": "advanced.php"
813
+ }
814
+ },
815
+ "arguments": [],
816
+ "_meta": {
817
+ "loc": {
818
+ "start": {
819
+ "line": 12,
820
+ "column": 20
821
+ },
822
+ "end": {
823
+ "line": 12,
824
+ "column": 25
825
+ },
826
+ "sourcefile": "advanced.php"
827
+ }
828
+ },
829
+ "loc": {
830
+ "start": {
831
+ "line": 12,
832
+ "column": 20
833
+ },
834
+ "end": {
835
+ "line": 12,
836
+ "column": 25
837
+ },
838
+ "sourcefile": "advanced.php"
839
+ }
840
+ },
841
+ "_meta": {
842
+ "loc": {
843
+ "start": {
844
+ "line": 12,
845
+ "column": 9
846
+ },
847
+ "end": {
848
+ "line": 12,
849
+ "column": 25
850
+ },
851
+ "sourcefile": "advanced.php"
852
+ }
853
+ },
854
+ "loc": {
855
+ "start": {
856
+ "line": 12,
857
+ "column": 9
858
+ },
859
+ "end": {
860
+ "line": 12,
861
+ "column": 25
862
+ },
863
+ "sourcefile": "advanced.php"
864
+ }
865
+ }
866
+ ],
867
+ "id": null,
868
+ "_meta": {
869
+ "default": true,
870
+ "loc": {
871
+ "start": {
872
+ "line": 12,
873
+ "column": 9
874
+ },
875
+ "end": {
876
+ "line": 12,
877
+ "column": 25
878
+ },
879
+ "sourcefile": "advanced.php"
880
+ }
881
+ },
882
+ "loc": {
883
+ "start": {
884
+ "line": 12,
885
+ "column": 9
886
+ },
887
+ "end": {
888
+ "line": 12,
889
+ "column": 25
890
+ },
891
+ "sourcefile": "advanced.php"
892
+ }
893
+ }
894
+ ],
895
+ "_meta": {}
896
+ }
897
+ ],
898
+ "_meta": {
899
+ "synthetic": true,
900
+ "loc": {
901
+ "start": {
902
+ "line": 9,
903
+ "column": 14
904
+ },
905
+ "end": {
906
+ "line": 13,
907
+ "column": 6
908
+ },
909
+ "sourcefile": "advanced.php"
910
+ }
911
+ },
912
+ "loc": {
913
+ "start": {
914
+ "line": 9,
915
+ "column": 14
916
+ },
917
+ "end": {
918
+ "line": 13,
919
+ "column": 6
920
+ },
921
+ "sourcefile": "advanced.php"
922
+ }
923
+ },
924
+ "operator": "=",
925
+ "cloned": false,
926
+ "_meta": {
927
+ "loc": {
928
+ "start": {
929
+ "line": 9,
930
+ "column": 5
931
+ },
932
+ "end": {
933
+ "line": 13,
934
+ "column": 6
935
+ },
936
+ "sourcefile": "advanced.php"
937
+ }
938
+ },
939
+ "loc": {
940
+ "start": {
941
+ "line": 9,
942
+ "column": 5
943
+ },
944
+ "end": {
945
+ "line": 13,
946
+ "column": 6
947
+ },
948
+ "sourcefile": "advanced.php"
949
+ }
950
+ },
951
+ "_meta": {
952
+ "loc": {
953
+ "start": {
954
+ "line": 9,
955
+ "column": 5
956
+ },
957
+ "end": {
958
+ "line": 13,
959
+ "column": 7
960
+ },
961
+ "sourcefile": "advanced.php"
962
+ }
963
+ },
964
+ "loc": {
965
+ "start": {
966
+ "line": 9,
967
+ "column": 5
968
+ },
969
+ "end": {
970
+ "line": 13,
971
+ "column": 7
972
+ },
973
+ "sourcefile": "advanced.php"
974
+ }
975
+ },
976
+ {
977
+ "type": "ReturnStatement",
978
+ "argument": {
979
+ "type": "Identifier",
980
+ "name": "value",
981
+ "_meta": {
982
+ "loc": {
983
+ "start": {
984
+ "line": 15,
985
+ "column": 12
986
+ },
987
+ "end": {
988
+ "line": 15,
989
+ "column": 18
990
+ },
991
+ "sourcefile": "advanced.php"
992
+ }
993
+ },
994
+ "loc": {
995
+ "start": {
996
+ "line": 15,
997
+ "column": 12
998
+ },
999
+ "end": {
1000
+ "line": 15,
1001
+ "column": 18
1002
+ },
1003
+ "sourcefile": "advanced.php"
1004
+ }
1005
+ },
1006
+ "isYield": false,
1007
+ "_meta": {
1008
+ "loc": {
1009
+ "start": {
1010
+ "line": 15,
1011
+ "column": 5
1012
+ },
1013
+ "end": {
1014
+ "line": 15,
1015
+ "column": 19
1016
+ },
1017
+ "sourcefile": "advanced.php"
1018
+ }
1019
+ },
1020
+ "loc": {
1021
+ "start": {
1022
+ "line": 15,
1023
+ "column": 5
1024
+ },
1025
+ "end": {
1026
+ "line": 15,
1027
+ "column": 19
1028
+ },
1029
+ "sourcefile": "advanced.php"
1030
+ }
1031
+ }
1032
+ ],
1033
+ "id": null,
1034
+ "_meta": {
1035
+ "loc": {
1036
+ "start": {
1037
+ "line": 8,
1038
+ "column": 1
1039
+ },
1040
+ "end": {
1041
+ "line": 16,
1042
+ "column": 2
1043
+ },
1044
+ "sourcefile": "advanced.php"
1045
+ }
1046
+ },
1047
+ "loc": {
1048
+ "start": {
1049
+ "line": 8,
1050
+ "column": 1
1051
+ },
1052
+ "end": {
1053
+ "line": 16,
1054
+ "column": 2
1055
+ },
1056
+ "sourcefile": "advanced.php"
1057
+ }
1058
+ },
1059
+ "modifiers": [],
1060
+ "_meta": {
1061
+ "loc": {
1062
+ "start": {
1063
+ "line": 7,
1064
+ "column": 1
1065
+ },
1066
+ "end": {
1067
+ "line": 16,
1068
+ "column": 2
1069
+ },
1070
+ "sourcefile": "advanced.php"
1071
+ }
1072
+ },
1073
+ "loc": {
1074
+ "start": {
1075
+ "line": 7,
1076
+ "column": 1
1077
+ },
1078
+ "end": {
1079
+ "line": 16,
1080
+ "column": 2
1081
+ },
1082
+ "sourcefile": "advanced.php"
1083
+ }
1084
+ },
1085
+ {
1086
+ "type": "ScopedStatement",
1087
+ "body": [
1088
+ {
1089
+ "type": "ExpressionStatement",
1090
+ "expression": {
1091
+ "type": "CallExpression",
1092
+ "callee": {
1093
+ "type": "Identifier",
1094
+ "name": "echo",
1095
+ "_meta": {}
1096
+ },
1097
+ "arguments": [
1098
+ {
1099
+ "type": "Identifier",
1100
+ "name": "APP",
1101
+ "_meta": {
1102
+ "loc": {
1103
+ "start": {
1104
+ "line": 19,
1105
+ "column": 10
1106
+ },
1107
+ "end": {
1108
+ "line": 19,
1109
+ "column": 13
1110
+ },
1111
+ "sourcefile": "advanced.php"
1112
+ }
1113
+ },
1114
+ "loc": {
1115
+ "start": {
1116
+ "line": 19,
1117
+ "column": 10
1118
+ },
1119
+ "end": {
1120
+ "line": 19,
1121
+ "column": 13
1122
+ },
1123
+ "sourcefile": "advanced.php"
1124
+ }
1125
+ }
1126
+ ],
1127
+ "_meta": {
1128
+ "loc": {
1129
+ "start": {
1130
+ "line": 19,
1131
+ "column": 5
1132
+ },
1133
+ "end": {
1134
+ "line": 19,
1135
+ "column": 14
1136
+ },
1137
+ "sourcefile": "advanced.php"
1138
+ }
1139
+ },
1140
+ "loc": {
1141
+ "start": {
1142
+ "line": 19,
1143
+ "column": 5
1144
+ },
1145
+ "end": {
1146
+ "line": 19,
1147
+ "column": 14
1148
+ },
1149
+ "sourcefile": "advanced.php"
1150
+ }
1151
+ },
1152
+ "_meta": {
1153
+ "loc": {
1154
+ "start": {
1155
+ "line": 19,
1156
+ "column": 5
1157
+ },
1158
+ "end": {
1159
+ "line": 19,
1160
+ "column": 14
1161
+ },
1162
+ "sourcefile": "advanced.php"
1163
+ }
1164
+ },
1165
+ "loc": {
1166
+ "start": {
1167
+ "line": 19,
1168
+ "column": 5
1169
+ },
1170
+ "end": {
1171
+ "line": 19,
1172
+ "column": 14
1173
+ },
1174
+ "sourcefile": "advanced.php"
1175
+ }
1176
+ }
1177
+ ],
1178
+ "id": null,
1179
+ "_meta": {
1180
+ "loc": {
1181
+ "start": {
1182
+ "line": 18,
1183
+ "column": 1
1184
+ },
1185
+ "end": {
1186
+ "line": 20,
1187
+ "column": 2
1188
+ },
1189
+ "sourcefile": "advanced.php"
1190
+ },
1191
+ "declare": {
1192
+ "directives": [
1193
+ {
1194
+ "key": {
1195
+ "type": "Literal",
1196
+ "value": 1,
1197
+ "literalType": "number",
1198
+ "_meta": {
1199
+ "loc": {
1200
+ "start": {
1201
+ "line": 18,
1202
+ "column": 15
1203
+ },
1204
+ "end": {
1205
+ "line": 18,
1206
+ "column": 16
1207
+ },
1208
+ "sourcefile": "advanced.php"
1209
+ }
1210
+ },
1211
+ "loc": {
1212
+ "start": {
1213
+ "line": 18,
1214
+ "column": 15
1215
+ },
1216
+ "end": {
1217
+ "line": 18,
1218
+ "column": 16
1219
+ },
1220
+ "sourcefile": "advanced.php"
1221
+ }
1222
+ },
1223
+ "value": null
1224
+ }
1225
+ ]
1226
+ }
1227
+ },
1228
+ "loc": {
1229
+ "start": {
1230
+ "line": 18,
1231
+ "column": 1
1232
+ },
1233
+ "end": {
1234
+ "line": 20,
1235
+ "column": 2
1236
+ },
1237
+ "sourcefile": "advanced.php"
1238
+ }
1239
+ }
1240
+ ],
1241
+ "language": "php",
1242
+ "languageVersion": null,
1243
+ "uri": "advanced.php",
1244
+ "version": "0.0.0",
1245
+ "_meta": {
1246
+ "loc": {
1247
+ "start": {
1248
+ "line": 1,
1249
+ "column": 1
1250
+ },
1251
+ "end": {
1252
+ "line": 21,
1253
+ "column": 1
1254
+ },
1255
+ "sourcefile": "advanced.php"
1256
+ }
1257
+ },
1258
+ "loc": {
1259
+ "start": {
1260
+ "line": 1,
1261
+ "column": 1
1262
+ },
1263
+ "end": {
1264
+ "line": 21,
1265
+ "column": 1
1266
+ },
1267
+ "sourcefile": "advanced.php"
1268
+ }
1269
+ }