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

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