@ant-yasa/uast-parser-java-js 0.1.15-beta

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 (100) hide show
  1. package/.babelrc +12 -0
  2. package/.eslintignore +1 -0
  3. package/.eslintrc.js +38 -0
  4. package/.mocharc-integration.js +1 -0
  5. package/.mocharc.js +4 -0
  6. package/.prettierignore +1 -0
  7. package/.prettierrc +4 -0
  8. package/LEGAL.md +7 -0
  9. package/README.md +35 -0
  10. package/antlr/Java.g4 +1008 -0
  11. package/antlr/JavaLexer.g4 +241 -0
  12. package/antlr/JavaLexer_origin.g4 +241 -0
  13. package/antlr/JavaParser.g4 +765 -0
  14. package/antlr/JavaParser_origin.g4 +766 -0
  15. package/dist/package.json +73 -0
  16. package/dist/src/frontend/java/ASTBuilder.d.ts +171 -0
  17. package/dist/src/frontend/java/ASTBuilder.js +2369 -0
  18. package/dist/src/frontend/java/ASTBuilder.js.map +1 -0
  19. package/dist/src/frontend/java/ErrorListener.d.ts +9 -0
  20. package/dist/src/frontend/java/ErrorListener.js +24 -0
  21. package/dist/src/frontend/java/ErrorListener.js.map +1 -0
  22. package/dist/src/frontend/java/antlr/JavaLexer.d.ts +154 -0
  23. package/dist/src/frontend/java/antlr/JavaLexer.js +812 -0
  24. package/dist/src/frontend/java/antlr/JavaLexer.js.map +1 -0
  25. package/dist/src/frontend/java/antlr/JavaListener.d.ts +1393 -0
  26. package/dist/src/frontend/java/antlr/JavaListener.js +4 -0
  27. package/dist/src/frontend/java/antlr/JavaListener.js.map +1 -0
  28. package/dist/src/frontend/java/antlr/JavaParser.d.ts +2065 -0
  29. package/dist/src/frontend/java/antlr/JavaParser.js +15279 -0
  30. package/dist/src/frontend/java/antlr/JavaParser.js.map +1 -0
  31. package/dist/src/frontend/java/antlr/JavaVisitor.d.ts +892 -0
  32. package/dist/src/frontend/java/antlr/JavaVisitor.js +4 -0
  33. package/dist/src/frontend/java/antlr/JavaVisitor.js.map +1 -0
  34. package/dist/src/frontend/java/parser.d.ts +20 -0
  35. package/dist/src/frontend/java/parser.js +93 -0
  36. package/dist/src/frontend/java/parser.js.map +1 -0
  37. package/dist/src/frontend/java/testBuilder.d.ts +146 -0
  38. package/dist/src/frontend/java/testBuilder.js +464 -0
  39. package/dist/src/frontend/java/testBuilder.js.map +1 -0
  40. package/dist/src/frontend/java/types.d.ts +29 -0
  41. package/dist/src/frontend/java/types.js +3 -0
  42. package/dist/src/frontend/java/types.js.map +1 -0
  43. package/dist/src/frontend/javascript/parser.d.ts +8 -0
  44. package/dist/src/frontend/javascript/parser.js +1121 -0
  45. package/dist/src/frontend/javascript/parser.js.map +1 -0
  46. package/dist/src/index.d.ts +14 -0
  47. package/dist/src/index.js +76 -0
  48. package/dist/src/index.js.map +1 -0
  49. package/output.txt +3820 -0
  50. package/package.json +73 -0
  51. package/tests/benchmark/base/class.js +32 -0
  52. package/tests/benchmark/base/class.js.json +1809 -0
  53. package/tests/benchmark/base/class_test.js +13 -0
  54. package/tests/benchmark/base/class_test.js.json +435 -0
  55. package/tests/benchmark/base/comment.js +21 -0
  56. package/tests/benchmark/base/comment.js.json +1443 -0
  57. package/tests/benchmark/base/demo.ts +1060 -0
  58. package/tests/benchmark/base/empty.js +4 -0
  59. package/tests/benchmark/base/empty.js.json +202 -0
  60. package/tests/benchmark/base/export.js +36 -0
  61. package/tests/benchmark/base/export.js.json +6345 -0
  62. package/tests/benchmark/base/export1.js +2 -0
  63. package/tests/benchmark/base/export1.js.json +251 -0
  64. package/tests/benchmark/base/export2.js +35 -0
  65. package/tests/benchmark/base/export2.js.json +3297 -0
  66. package/tests/benchmark/base/expressions.js +25 -0
  67. package/tests/benchmark/base/expressions.js.json +1654 -0
  68. package/tests/benchmark/base/for.js +7 -0
  69. package/tests/benchmark/base/for.js.json +738 -0
  70. package/tests/benchmark/base/function.js +15 -0
  71. package/tests/benchmark/base/function.js.json +1458 -0
  72. package/tests/benchmark/base/import.js +3 -0
  73. package/tests/benchmark/base/import.js.json +416 -0
  74. package/tests/benchmark/base/literal.js +27 -0
  75. package/tests/benchmark/base/literal.js.json +1234 -0
  76. package/tests/benchmark/base/param.js +4 -0
  77. package/tests/benchmark/base/param.js.json +410 -0
  78. package/tests/benchmark/base/parseerror.js +1 -0
  79. package/tests/benchmark/base/parseerror.js.json +191 -0
  80. package/tests/benchmark/base/patternlike.js +24 -0
  81. package/tests/benchmark/base/patternlike.js.json +3720 -0
  82. package/tests/benchmark/base/react.js +8 -0
  83. package/tests/benchmark/base/react.js.json +211 -0
  84. package/tests/benchmark/base/switch.js +11 -0
  85. package/tests/benchmark/base/switch.js.json +741 -0
  86. package/tests/benchmark/base/taint.ts +61 -0
  87. package/tests/benchmark/base/temp.js +311 -0
  88. package/tests/benchmark/base/temp.js.json +22170 -0
  89. package/tests/benchmark/base/tmp.js +134 -0
  90. package/tests/benchmark/base/tmp.js.json +15409 -0
  91. package/tests/benchmark/base/vardecl.js +9 -0
  92. package/tests/benchmark/base/vardecl.js.json +491 -0
  93. package/tests/index.js +43 -0
  94. package/tests/index.ts +66 -0
  95. package/tests/test.d.ts +0 -0
  96. package/tests/test.js +38 -0
  97. package/tests/test.ts +60 -0
  98. package/tsconfig.json +24 -0
  99. package/tsconfig.test.json +13 -0
  100. package/webpack.config.js +21 -0
@@ -0,0 +1,1654 @@
1
+ {
2
+ "type": "CompileUnit",
3
+ "body": [
4
+ {
5
+ "type": "VariableDeclaration",
6
+ "id": {
7
+ "type": "Identifier",
8
+ "name": "foo",
9
+ "_meta": {
10
+ "_extra": {
11
+ "start": 6,
12
+ "end": 9
13
+ }
14
+ },
15
+ "loc": {
16
+ "start": {
17
+ "line": 1,
18
+ "column": 7
19
+ },
20
+ "end": {
21
+ "line": 1,
22
+ "column": 10
23
+ },
24
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
25
+ }
26
+ },
27
+ "init": {
28
+ "type": "Literal",
29
+ "value": 3,
30
+ "literalType": "number",
31
+ "_meta": {
32
+ "_extra": {
33
+ "start": 12,
34
+ "end": 13
35
+ }
36
+ },
37
+ "loc": {
38
+ "start": {
39
+ "line": 1,
40
+ "column": 13
41
+ },
42
+ "end": {
43
+ "line": 1,
44
+ "column": 14
45
+ },
46
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
47
+ }
48
+ },
49
+ "cloned": false,
50
+ "varType": {
51
+ "type": "DynamicType",
52
+ "id": null,
53
+ "_meta": {}
54
+ },
55
+ "_meta": {
56
+ "_extra": {
57
+ "end": 14,
58
+ "trailingComments": [
59
+ {
60
+ "type": "CommentLine",
61
+ "value": "Array Expression",
62
+ "start": 15,
63
+ "end": 33,
64
+ "loc": {
65
+ "start": {
66
+ "line": 2,
67
+ "column": 0,
68
+ "index": 15
69
+ },
70
+ "end": {
71
+ "line": 2,
72
+ "column": 18,
73
+ "index": 33
74
+ }
75
+ }
76
+ }
77
+ ]
78
+ }
79
+ },
80
+ "loc": {
81
+ "start": {
82
+ "line": 1,
83
+ "column": 7
84
+ },
85
+ "end": {
86
+ "line": 1,
87
+ "column": 14
88
+ },
89
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
90
+ }
91
+ },
92
+ {
93
+ "type": "ExpressionStatement",
94
+ "expression": {
95
+ "type": "ObjectExpression",
96
+ "properties": [
97
+ {
98
+ "type": "ObjectProperty",
99
+ "key": {
100
+ "type": "Literal",
101
+ "value": 0,
102
+ "literalType": "number",
103
+ "_meta": {},
104
+ "loc": {
105
+ "start": {
106
+ "line": 3,
107
+ "column": 1
108
+ },
109
+ "end": {
110
+ "line": 3,
111
+ "column": 25
112
+ },
113
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
114
+ }
115
+ },
116
+ "value": {
117
+ "type": "Literal",
118
+ "value": 1,
119
+ "literalType": "number",
120
+ "_meta": {
121
+ "_extra": {
122
+ "start": 35,
123
+ "end": 36
124
+ }
125
+ },
126
+ "loc": {
127
+ "start": {
128
+ "line": 3,
129
+ "column": 2
130
+ },
131
+ "end": {
132
+ "line": 3,
133
+ "column": 3
134
+ },
135
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
136
+ }
137
+ },
138
+ "_meta": {},
139
+ "loc": {
140
+ "start": {
141
+ "line": 3,
142
+ "column": 1
143
+ },
144
+ "end": {
145
+ "line": 3,
146
+ "column": 25
147
+ },
148
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
149
+ }
150
+ },
151
+ {
152
+ "type": "ObjectProperty",
153
+ "key": {
154
+ "type": "Literal",
155
+ "value": 1,
156
+ "literalType": "number",
157
+ "_meta": {},
158
+ "loc": {
159
+ "start": {
160
+ "line": 3,
161
+ "column": 1
162
+ },
163
+ "end": {
164
+ "line": 3,
165
+ "column": 25
166
+ },
167
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
168
+ }
169
+ },
170
+ "value": {
171
+ "type": "BinaryExpression",
172
+ "operator": "+",
173
+ "left": {
174
+ "type": "Literal",
175
+ "value": 1,
176
+ "literalType": "number",
177
+ "_meta": {
178
+ "_extra": {
179
+ "start": 38,
180
+ "end": 39
181
+ }
182
+ },
183
+ "loc": {
184
+ "start": {
185
+ "line": 3,
186
+ "column": 5
187
+ },
188
+ "end": {
189
+ "line": 3,
190
+ "column": 6
191
+ },
192
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
193
+ }
194
+ },
195
+ "right": {
196
+ "type": "Literal",
197
+ "value": 1,
198
+ "literalType": "number",
199
+ "_meta": {
200
+ "_extra": {
201
+ "start": 40,
202
+ "end": 41
203
+ }
204
+ },
205
+ "loc": {
206
+ "start": {
207
+ "line": 3,
208
+ "column": 7
209
+ },
210
+ "end": {
211
+ "line": 3,
212
+ "column": 8
213
+ },
214
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
215
+ }
216
+ },
217
+ "_meta": {
218
+ "_extra": {
219
+ "start": 38,
220
+ "end": 41
221
+ }
222
+ },
223
+ "loc": {
224
+ "start": {
225
+ "line": 3,
226
+ "column": 5
227
+ },
228
+ "end": {
229
+ "line": 3,
230
+ "column": 8
231
+ },
232
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
233
+ }
234
+ },
235
+ "_meta": {},
236
+ "loc": {
237
+ "start": {
238
+ "line": 3,
239
+ "column": 1
240
+ },
241
+ "end": {
242
+ "line": 3,
243
+ "column": 25
244
+ },
245
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
246
+ }
247
+ },
248
+ {
249
+ "type": "ObjectProperty",
250
+ "key": {
251
+ "type": "Literal",
252
+ "value": 2,
253
+ "literalType": "number",
254
+ "_meta": {},
255
+ "loc": {
256
+ "start": {
257
+ "line": 3,
258
+ "column": 1
259
+ },
260
+ "end": {
261
+ "line": 3,
262
+ "column": 25
263
+ },
264
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
265
+ }
266
+ },
267
+ "value": {
268
+ "type": "CallExpression",
269
+ "callee": {
270
+ "type": "FunctionDefinition",
271
+ "id": null,
272
+ "parameters": [],
273
+ "returnType": {
274
+ "type": "DynamicType",
275
+ "id": null,
276
+ "_meta": {},
277
+ "loc": {
278
+ "start": {
279
+ "line": 3,
280
+ "column": 11
281
+ },
282
+ "end": {
283
+ "line": 3,
284
+ "column": 16
285
+ },
286
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
287
+ }
288
+ },
289
+ "body": {
290
+ "type": "ScopedStatement",
291
+ "body": [
292
+ {
293
+ "type": "ScopedStatement",
294
+ "body": [
295
+ {
296
+ "type": "ReturnStatement",
297
+ "argument": {
298
+ "type": "Literal",
299
+ "value": 1,
300
+ "literalType": "number",
301
+ "_meta": {
302
+ "_extra": {
303
+ "start": 48,
304
+ "end": 49
305
+ }
306
+ },
307
+ "loc": {
308
+ "start": {
309
+ "line": 3,
310
+ "column": 15
311
+ },
312
+ "end": {
313
+ "line": 3,
314
+ "column": 16
315
+ },
316
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
317
+ }
318
+ },
319
+ "isYield": false,
320
+ "_meta": {},
321
+ "loc": {
322
+ "start": {
323
+ "line": 3,
324
+ "column": 11
325
+ },
326
+ "end": {
327
+ "line": 3,
328
+ "column": 16
329
+ },
330
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
331
+ }
332
+ }
333
+ ],
334
+ "id": null,
335
+ "_meta": {},
336
+ "loc": {
337
+ "start": {
338
+ "line": 3,
339
+ "column": 11
340
+ },
341
+ "end": {
342
+ "line": 3,
343
+ "column": 16
344
+ },
345
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
346
+ }
347
+ }
348
+ ],
349
+ "id": null,
350
+ "_meta": {},
351
+ "loc": {
352
+ "start": {
353
+ "line": 3,
354
+ "column": 11
355
+ },
356
+ "end": {
357
+ "line": 3,
358
+ "column": 16
359
+ },
360
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
361
+ }
362
+ },
363
+ "modifiers": [],
364
+ "_meta": {
365
+ "_extra": {
366
+ "start": 44,
367
+ "end": 49
368
+ }
369
+ },
370
+ "loc": {
371
+ "start": {
372
+ "line": 3,
373
+ "column": 11
374
+ },
375
+ "end": {
376
+ "line": 3,
377
+ "column": 16
378
+ },
379
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
380
+ }
381
+ },
382
+ "arguments": [],
383
+ "_meta": {
384
+ "_extra": {
385
+ "start": 43,
386
+ "end": 52
387
+ }
388
+ },
389
+ "loc": {
390
+ "start": {
391
+ "line": 3,
392
+ "column": 10
393
+ },
394
+ "end": {
395
+ "line": 3,
396
+ "column": 19
397
+ },
398
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
399
+ }
400
+ },
401
+ "_meta": {},
402
+ "loc": {
403
+ "start": {
404
+ "line": 3,
405
+ "column": 1
406
+ },
407
+ "end": {
408
+ "line": 3,
409
+ "column": 25
410
+ },
411
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
412
+ }
413
+ },
414
+ {
415
+ "type": "ObjectProperty",
416
+ "key": {
417
+ "type": "Literal",
418
+ "value": 3,
419
+ "literalType": "number",
420
+ "_meta": {},
421
+ "loc": {
422
+ "start": {
423
+ "line": 3,
424
+ "column": 1
425
+ },
426
+ "end": {
427
+ "line": 3,
428
+ "column": 25
429
+ },
430
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
431
+ }
432
+ },
433
+ "value": {
434
+ "type": "Identifier",
435
+ "name": "foo",
436
+ "_meta": {
437
+ "_extra": {
438
+ "start": 54,
439
+ "end": 57
440
+ }
441
+ },
442
+ "loc": {
443
+ "start": {
444
+ "line": 3,
445
+ "column": 21
446
+ },
447
+ "end": {
448
+ "line": 3,
449
+ "column": 24
450
+ },
451
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
452
+ }
453
+ },
454
+ "_meta": {},
455
+ "loc": {
456
+ "start": {
457
+ "line": 3,
458
+ "column": 1
459
+ },
460
+ "end": {
461
+ "line": 3,
462
+ "column": 25
463
+ },
464
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
465
+ }
466
+ }
467
+ ],
468
+ "id": null,
469
+ "_meta": {
470
+ "isArray": true,
471
+ "_extra": {
472
+ "start": 34,
473
+ "end": 58
474
+ }
475
+ },
476
+ "loc": {
477
+ "start": {
478
+ "line": 3,
479
+ "column": 1
480
+ },
481
+ "end": {
482
+ "line": 3,
483
+ "column": 25
484
+ },
485
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
486
+ }
487
+ },
488
+ "_meta": {
489
+ "_extra": {
490
+ "start": 34,
491
+ "end": 59,
492
+ "leadingComments": [
493
+ {
494
+ "type": "CommentLine",
495
+ "value": "Array Expression",
496
+ "start": 15,
497
+ "end": 33,
498
+ "loc": {
499
+ "start": {
500
+ "line": 2,
501
+ "column": 0,
502
+ "index": 15
503
+ },
504
+ "end": {
505
+ "line": 2,
506
+ "column": 18,
507
+ "index": 33
508
+ }
509
+ }
510
+ }
511
+ ],
512
+ "trailingComments": [
513
+ {
514
+ "type": "CommentLine",
515
+ "value": "Object Exression",
516
+ "start": 61,
517
+ "end": 79,
518
+ "loc": {
519
+ "start": {
520
+ "line": 5,
521
+ "column": 0,
522
+ "index": 61
523
+ },
524
+ "end": {
525
+ "line": 5,
526
+ "column": 18,
527
+ "index": 79
528
+ }
529
+ }
530
+ }
531
+ ]
532
+ }
533
+ },
534
+ "loc": {
535
+ "start": {
536
+ "line": 3,
537
+ "column": 1
538
+ },
539
+ "end": {
540
+ "line": 3,
541
+ "column": 26
542
+ },
543
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
544
+ }
545
+ },
546
+ {
547
+ "type": "VariableDeclaration",
548
+ "id": {
549
+ "type": "Identifier",
550
+ "name": "bar",
551
+ "_meta": {
552
+ "_extra": {
553
+ "start": 86,
554
+ "end": 89
555
+ }
556
+ },
557
+ "loc": {
558
+ "start": {
559
+ "line": 6,
560
+ "column": 7
561
+ },
562
+ "end": {
563
+ "line": 6,
564
+ "column": 10
565
+ },
566
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
567
+ }
568
+ },
569
+ "init": {
570
+ "type": "ObjectExpression",
571
+ "properties": [
572
+ {
573
+ "type": "ObjectProperty",
574
+ "key": {
575
+ "type": "Identifier",
576
+ "name": "foo",
577
+ "_meta": {
578
+ "_extra": {
579
+ "start": 96,
580
+ "end": 99
581
+ }
582
+ },
583
+ "loc": {
584
+ "start": {
585
+ "line": 7,
586
+ "column": 3
587
+ },
588
+ "end": {
589
+ "line": 7,
590
+ "column": 6
591
+ },
592
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
593
+ }
594
+ },
595
+ "value": {
596
+ "type": "Identifier",
597
+ "name": "foo",
598
+ "_meta": {
599
+ "_extra": {
600
+ "start": 96,
601
+ "end": 99
602
+ }
603
+ },
604
+ "loc": {
605
+ "start": {
606
+ "line": 7,
607
+ "column": 3
608
+ },
609
+ "end": {
610
+ "line": 7,
611
+ "column": 6
612
+ },
613
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
614
+ }
615
+ },
616
+ "_meta": {
617
+ "_extra": {
618
+ "start": 96,
619
+ "end": 99
620
+ }
621
+ },
622
+ "loc": {
623
+ "start": {
624
+ "line": 7,
625
+ "column": 3
626
+ },
627
+ "end": {
628
+ "line": 7,
629
+ "column": 6
630
+ },
631
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
632
+ }
633
+ },
634
+ {
635
+ "type": "ObjectProperty",
636
+ "key": {
637
+ "type": "Identifier",
638
+ "name": "a1",
639
+ "_meta": {
640
+ "_extra": {
641
+ "start": 103,
642
+ "end": 105
643
+ }
644
+ },
645
+ "loc": {
646
+ "start": {
647
+ "line": 8,
648
+ "column": 3
649
+ },
650
+ "end": {
651
+ "line": 8,
652
+ "column": 5
653
+ },
654
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
655
+ }
656
+ },
657
+ "value": {
658
+ "type": "Literal",
659
+ "value": 3,
660
+ "literalType": "number",
661
+ "_meta": {
662
+ "_extra": {
663
+ "start": 108,
664
+ "end": 109
665
+ }
666
+ },
667
+ "loc": {
668
+ "start": {
669
+ "line": 8,
670
+ "column": 8
671
+ },
672
+ "end": {
673
+ "line": 8,
674
+ "column": 9
675
+ },
676
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
677
+ }
678
+ },
679
+ "_meta": {
680
+ "_extra": {
681
+ "start": 103,
682
+ "end": 109
683
+ }
684
+ },
685
+ "loc": {
686
+ "start": {
687
+ "line": 8,
688
+ "column": 3
689
+ },
690
+ "end": {
691
+ "line": 8,
692
+ "column": 9
693
+ },
694
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
695
+ }
696
+ },
697
+ {
698
+ "type": "ObjectProperty",
699
+ "key": {
700
+ "type": "Identifier",
701
+ "name": "a2",
702
+ "_meta": {
703
+ "_extra": {
704
+ "start": 113,
705
+ "end": 115
706
+ }
707
+ },
708
+ "loc": {
709
+ "start": {
710
+ "line": 9,
711
+ "column": 3
712
+ },
713
+ "end": {
714
+ "line": 9,
715
+ "column": 5
716
+ },
717
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
718
+ }
719
+ },
720
+ "value": {
721
+ "type": "ObjectExpression",
722
+ "properties": [
723
+ {
724
+ "type": "ObjectProperty",
725
+ "key": {
726
+ "type": "Identifier",
727
+ "name": "a21",
728
+ "_meta": {
729
+ "_extra": {
730
+ "start": 120,
731
+ "end": 123
732
+ }
733
+ },
734
+ "loc": {
735
+ "start": {
736
+ "line": 9,
737
+ "column": 10
738
+ },
739
+ "end": {
740
+ "line": 9,
741
+ "column": 13
742
+ },
743
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
744
+ }
745
+ },
746
+ "value": {
747
+ "type": "Literal",
748
+ "value": true,
749
+ "literalType": "boolean",
750
+ "_meta": {
751
+ "_extra": {
752
+ "start": 125,
753
+ "end": 129
754
+ }
755
+ },
756
+ "loc": {
757
+ "start": {
758
+ "line": 9,
759
+ "column": 15
760
+ },
761
+ "end": {
762
+ "line": 9,
763
+ "column": 19
764
+ },
765
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
766
+ }
767
+ },
768
+ "_meta": {
769
+ "_extra": {
770
+ "start": 120,
771
+ "end": 129
772
+ }
773
+ },
774
+ "loc": {
775
+ "start": {
776
+ "line": 9,
777
+ "column": 10
778
+ },
779
+ "end": {
780
+ "line": 9,
781
+ "column": 19
782
+ },
783
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
784
+ }
785
+ },
786
+ {
787
+ "type": "ObjectProperty",
788
+ "key": {
789
+ "type": "Identifier",
790
+ "name": "a22",
791
+ "_meta": {
792
+ "_extra": {
793
+ "start": 131,
794
+ "end": 134
795
+ }
796
+ },
797
+ "loc": {
798
+ "start": {
799
+ "line": 9,
800
+ "column": 21
801
+ },
802
+ "end": {
803
+ "line": 9,
804
+ "column": 24
805
+ },
806
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
807
+ }
808
+ },
809
+ "value": {
810
+ "type": "Literal",
811
+ "value": false,
812
+ "literalType": "boolean",
813
+ "_meta": {
814
+ "_extra": {
815
+ "start": 136,
816
+ "end": 141
817
+ }
818
+ },
819
+ "loc": {
820
+ "start": {
821
+ "line": 9,
822
+ "column": 26
823
+ },
824
+ "end": {
825
+ "line": 9,
826
+ "column": 31
827
+ },
828
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
829
+ }
830
+ },
831
+ "_meta": {
832
+ "_extra": {
833
+ "start": 131,
834
+ "end": 141
835
+ }
836
+ },
837
+ "loc": {
838
+ "start": {
839
+ "line": 9,
840
+ "column": 21
841
+ },
842
+ "end": {
843
+ "line": 9,
844
+ "column": 31
845
+ },
846
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
847
+ }
848
+ }
849
+ ],
850
+ "id": null,
851
+ "_meta": {
852
+ "_extra": {
853
+ "start": 118,
854
+ "end": 143
855
+ }
856
+ },
857
+ "loc": {
858
+ "start": {
859
+ "line": 9,
860
+ "column": 8
861
+ },
862
+ "end": {
863
+ "line": 9,
864
+ "column": 33
865
+ },
866
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
867
+ }
868
+ },
869
+ "_meta": {
870
+ "_extra": {
871
+ "start": 113,
872
+ "end": 143
873
+ }
874
+ },
875
+ "loc": {
876
+ "start": {
877
+ "line": 9,
878
+ "column": 3
879
+ },
880
+ "end": {
881
+ "line": 9,
882
+ "column": 33
883
+ },
884
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
885
+ }
886
+ },
887
+ {
888
+ "type": "ObjectProperty",
889
+ "key": {
890
+ "type": "Identifier",
891
+ "name": "a3",
892
+ "_meta": {
893
+ "_extra": {
894
+ "start": 147,
895
+ "end": 149
896
+ }
897
+ },
898
+ "loc": {
899
+ "start": {
900
+ "line": 10,
901
+ "column": 3
902
+ },
903
+ "end": {
904
+ "line": 10,
905
+ "column": 5
906
+ },
907
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
908
+ }
909
+ },
910
+ "value": {
911
+ "type": "FunctionDefinition",
912
+ "id": {
913
+ "type": "Identifier",
914
+ "name": "a3",
915
+ "_meta": {
916
+ "_extra": {
917
+ "start": 147,
918
+ "end": 149
919
+ }
920
+ },
921
+ "loc": {
922
+ "start": {
923
+ "line": 10,
924
+ "column": 3
925
+ },
926
+ "end": {
927
+ "line": 10,
928
+ "column": 5
929
+ },
930
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
931
+ }
932
+ },
933
+ "parameters": [],
934
+ "returnType": {
935
+ "type": "DynamicType",
936
+ "id": null,
937
+ "_meta": {},
938
+ "loc": {
939
+ "start": {
940
+ "line": 10,
941
+ "column": 3
942
+ },
943
+ "end": {
944
+ "line": 12,
945
+ "column": 4
946
+ },
947
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
948
+ }
949
+ },
950
+ "body": {
951
+ "type": "ScopedStatement",
952
+ "body": [
953
+ {
954
+ "type": "ScopedStatement",
955
+ "body": [
956
+ {
957
+ "type": "ReturnStatement",
958
+ "argument": {
959
+ "type": "Literal",
960
+ "value": 3,
961
+ "literalType": "number",
962
+ "_meta": {
963
+ "_extra": {
964
+ "start": 165,
965
+ "end": 166
966
+ }
967
+ },
968
+ "loc": {
969
+ "start": {
970
+ "line": 11,
971
+ "column": 12
972
+ },
973
+ "end": {
974
+ "line": 11,
975
+ "column": 13
976
+ },
977
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
978
+ }
979
+ },
980
+ "isYield": false,
981
+ "_meta": {
982
+ "_extra": {
983
+ "start": 158,
984
+ "end": 167
985
+ }
986
+ },
987
+ "loc": {
988
+ "start": {
989
+ "line": 11,
990
+ "column": 5
991
+ },
992
+ "end": {
993
+ "line": 11,
994
+ "column": 14
995
+ },
996
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
997
+ }
998
+ }
999
+ ],
1000
+ "id": null,
1001
+ "_meta": {
1002
+ "_extra": {
1003
+ "start": 152,
1004
+ "end": 171,
1005
+ "directives": []
1006
+ }
1007
+ },
1008
+ "loc": {
1009
+ "start": {
1010
+ "line": 10,
1011
+ "column": 8
1012
+ },
1013
+ "end": {
1014
+ "line": 12,
1015
+ "column": 4
1016
+ },
1017
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
1018
+ }
1019
+ }
1020
+ ],
1021
+ "id": null,
1022
+ "_meta": {},
1023
+ "loc": {
1024
+ "start": {
1025
+ "line": 10,
1026
+ "column": 3
1027
+ },
1028
+ "end": {
1029
+ "line": 12,
1030
+ "column": 4
1031
+ },
1032
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
1033
+ }
1034
+ },
1035
+ "modifiers": [],
1036
+ "_meta": {},
1037
+ "loc": {
1038
+ "start": {
1039
+ "line": 10,
1040
+ "column": 3
1041
+ },
1042
+ "end": {
1043
+ "line": 12,
1044
+ "column": 4
1045
+ },
1046
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
1047
+ }
1048
+ },
1049
+ "_meta": {
1050
+ "_extra": {
1051
+ "start": 147,
1052
+ "end": 171
1053
+ }
1054
+ },
1055
+ "loc": {
1056
+ "start": {
1057
+ "line": 10,
1058
+ "column": 3
1059
+ },
1060
+ "end": {
1061
+ "line": 12,
1062
+ "column": 4
1063
+ },
1064
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
1065
+ }
1066
+ },
1067
+ {
1068
+ "type": "ObjectProperty",
1069
+ "key": {
1070
+ "type": "Identifier",
1071
+ "name": "a4",
1072
+ "_meta": {
1073
+ "_extra": {
1074
+ "start": 175,
1075
+ "end": 177
1076
+ }
1077
+ },
1078
+ "loc": {
1079
+ "start": {
1080
+ "line": 13,
1081
+ "column": 3
1082
+ },
1083
+ "end": {
1084
+ "line": 13,
1085
+ "column": 5
1086
+ },
1087
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
1088
+ }
1089
+ },
1090
+ "value": {
1091
+ "type": "FunctionDefinition",
1092
+ "id": null,
1093
+ "parameters": [],
1094
+ "returnType": {
1095
+ "type": "DynamicType",
1096
+ "id": null,
1097
+ "_meta": {},
1098
+ "loc": {
1099
+ "start": {
1100
+ "line": 13,
1101
+ "column": 7
1102
+ },
1103
+ "end": {
1104
+ "line": 15,
1105
+ "column": 4
1106
+ },
1107
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
1108
+ }
1109
+ },
1110
+ "body": {
1111
+ "type": "ScopedStatement",
1112
+ "body": [
1113
+ {
1114
+ "type": "ScopedStatement",
1115
+ "body": [
1116
+ {
1117
+ "type": "ReturnStatement",
1118
+ "argument": {
1119
+ "type": "Literal",
1120
+ "value": 3,
1121
+ "literalType": "number",
1122
+ "_meta": {
1123
+ "_extra": {
1124
+ "start": 203,
1125
+ "end": 204
1126
+ }
1127
+ },
1128
+ "loc": {
1129
+ "start": {
1130
+ "line": 14,
1131
+ "column": 12
1132
+ },
1133
+ "end": {
1134
+ "line": 14,
1135
+ "column": 13
1136
+ },
1137
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
1138
+ }
1139
+ },
1140
+ "isYield": false,
1141
+ "_meta": {
1142
+ "_extra": {
1143
+ "start": 196,
1144
+ "end": 205
1145
+ }
1146
+ },
1147
+ "loc": {
1148
+ "start": {
1149
+ "line": 14,
1150
+ "column": 5
1151
+ },
1152
+ "end": {
1153
+ "line": 14,
1154
+ "column": 14
1155
+ },
1156
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
1157
+ }
1158
+ }
1159
+ ],
1160
+ "id": null,
1161
+ "_meta": {
1162
+ "_extra": {
1163
+ "start": 190,
1164
+ "end": 209,
1165
+ "directives": []
1166
+ }
1167
+ },
1168
+ "loc": {
1169
+ "start": {
1170
+ "line": 13,
1171
+ "column": 18
1172
+ },
1173
+ "end": {
1174
+ "line": 15,
1175
+ "column": 4
1176
+ },
1177
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
1178
+ }
1179
+ }
1180
+ ],
1181
+ "id": null,
1182
+ "_meta": {},
1183
+ "loc": {
1184
+ "start": {
1185
+ "line": 13,
1186
+ "column": 7
1187
+ },
1188
+ "end": {
1189
+ "line": 15,
1190
+ "column": 4
1191
+ },
1192
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
1193
+ }
1194
+ },
1195
+ "modifiers": [],
1196
+ "_meta": {
1197
+ "_extra": {
1198
+ "start": 179,
1199
+ "end": 209
1200
+ }
1201
+ },
1202
+ "loc": {
1203
+ "start": {
1204
+ "line": 13,
1205
+ "column": 7
1206
+ },
1207
+ "end": {
1208
+ "line": 15,
1209
+ "column": 4
1210
+ },
1211
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
1212
+ }
1213
+ },
1214
+ "_meta": {
1215
+ "_extra": {
1216
+ "start": 175,
1217
+ "end": 209
1218
+ }
1219
+ },
1220
+ "loc": {
1221
+ "start": {
1222
+ "line": 13,
1223
+ "column": 3
1224
+ },
1225
+ "end": {
1226
+ "line": 15,
1227
+ "column": 4
1228
+ },
1229
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
1230
+ }
1231
+ }
1232
+ ],
1233
+ "id": null,
1234
+ "_meta": {
1235
+ "_extra": {
1236
+ "start": 92,
1237
+ "end": 211
1238
+ }
1239
+ },
1240
+ "loc": {
1241
+ "start": {
1242
+ "line": 6,
1243
+ "column": 13
1244
+ },
1245
+ "end": {
1246
+ "line": 16,
1247
+ "column": 2
1248
+ },
1249
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
1250
+ }
1251
+ },
1252
+ "cloned": false,
1253
+ "varType": {
1254
+ "type": "DynamicType",
1255
+ "id": null,
1256
+ "_meta": {}
1257
+ },
1258
+ "_meta": {
1259
+ "_extra": {
1260
+ "start": 80,
1261
+ "end": 212,
1262
+ "leadingComments": [
1263
+ {
1264
+ "type": "CommentLine",
1265
+ "value": "Object Exression",
1266
+ "start": 61,
1267
+ "end": 79,
1268
+ "loc": {
1269
+ "start": {
1270
+ "line": 5,
1271
+ "column": 0,
1272
+ "index": 61
1273
+ },
1274
+ "end": {
1275
+ "line": 5,
1276
+ "column": 18,
1277
+ "index": 79
1278
+ }
1279
+ }
1280
+ }
1281
+ ]
1282
+ }
1283
+ },
1284
+ "loc": {
1285
+ "start": {
1286
+ "line": 6,
1287
+ "column": 7
1288
+ },
1289
+ "end": {
1290
+ "line": 16,
1291
+ "column": 2
1292
+ },
1293
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
1294
+ }
1295
+ },
1296
+ {
1297
+ "type": "ExpressionStatement",
1298
+ "expression": {
1299
+ "type": "Sequence",
1300
+ "expressions": [
1301
+ {
1302
+ "type": "Literal",
1303
+ "value": 1,
1304
+ "literalType": "number",
1305
+ "_meta": {
1306
+ "_extra": {
1307
+ "start": 216,
1308
+ "end": 217
1309
+ }
1310
+ },
1311
+ "loc": {
1312
+ "start": {
1313
+ "line": 18,
1314
+ "column": 3
1315
+ },
1316
+ "end": {
1317
+ "line": 18,
1318
+ "column": 4
1319
+ },
1320
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
1321
+ }
1322
+ },
1323
+ {
1324
+ "type": "Literal",
1325
+ "value": 2,
1326
+ "literalType": "number",
1327
+ "_meta": {
1328
+ "_extra": {
1329
+ "start": 219,
1330
+ "end": 220
1331
+ }
1332
+ },
1333
+ "loc": {
1334
+ "start": {
1335
+ "line": 18,
1336
+ "column": 6
1337
+ },
1338
+ "end": {
1339
+ "line": 18,
1340
+ "column": 7
1341
+ },
1342
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
1343
+ }
1344
+ },
1345
+ {
1346
+ "type": "Literal",
1347
+ "value": 34,
1348
+ "literalType": "number",
1349
+ "_meta": {
1350
+ "_extra": {
1351
+ "start": 222,
1352
+ "end": 224
1353
+ }
1354
+ },
1355
+ "loc": {
1356
+ "start": {
1357
+ "line": 18,
1358
+ "column": 9
1359
+ },
1360
+ "end": {
1361
+ "line": 18,
1362
+ "column": 11
1363
+ },
1364
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
1365
+ }
1366
+ }
1367
+ ],
1368
+ "_meta": {
1369
+ "_extra": {
1370
+ "start": 216,
1371
+ "end": 224
1372
+ }
1373
+ },
1374
+ "loc": {
1375
+ "start": {
1376
+ "line": 18,
1377
+ "column": 3
1378
+ },
1379
+ "end": {
1380
+ "line": 18,
1381
+ "column": 11
1382
+ },
1383
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
1384
+ }
1385
+ },
1386
+ "_meta": {
1387
+ "_extra": {
1388
+ "start": 214,
1389
+ "end": 226,
1390
+ "trailingComments": [
1391
+ {
1392
+ "type": "CommentLine",
1393
+ "value": "TODO RecordExpression TupleExpression",
1394
+ "start": 228,
1395
+ "end": 267,
1396
+ "loc": {
1397
+ "start": {
1398
+ "line": 20,
1399
+ "column": 0,
1400
+ "index": 228
1401
+ },
1402
+ "end": {
1403
+ "line": 20,
1404
+ "column": 39,
1405
+ "index": 267
1406
+ }
1407
+ }
1408
+ }
1409
+ ]
1410
+ }
1411
+ },
1412
+ "loc": {
1413
+ "start": {
1414
+ "line": 18,
1415
+ "column": 1
1416
+ },
1417
+ "end": {
1418
+ "line": 18,
1419
+ "column": 13
1420
+ },
1421
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
1422
+ }
1423
+ },
1424
+ {
1425
+ "type": "ExpressionStatement",
1426
+ "expression": {
1427
+ "type": "ConditionalExpression",
1428
+ "test": {
1429
+ "type": "Identifier",
1430
+ "name": "foo",
1431
+ "_meta": {
1432
+ "_extra": {
1433
+ "start": 269,
1434
+ "end": 272
1435
+ }
1436
+ },
1437
+ "loc": {
1438
+ "start": {
1439
+ "line": 22,
1440
+ "column": 1
1441
+ },
1442
+ "end": {
1443
+ "line": 22,
1444
+ "column": 4
1445
+ },
1446
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
1447
+ }
1448
+ },
1449
+ "consequent": {
1450
+ "type": "Identifier",
1451
+ "name": "foo",
1452
+ "_meta": {
1453
+ "_extra": {
1454
+ "start": 274,
1455
+ "end": 277
1456
+ }
1457
+ },
1458
+ "loc": {
1459
+ "start": {
1460
+ "line": 22,
1461
+ "column": 6
1462
+ },
1463
+ "end": {
1464
+ "line": 22,
1465
+ "column": 9
1466
+ },
1467
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
1468
+ }
1469
+ },
1470
+ "alternative": {
1471
+ "type": "Identifier",
1472
+ "name": "bar",
1473
+ "_meta": {
1474
+ "_extra": {
1475
+ "start": 279,
1476
+ "end": 282
1477
+ }
1478
+ },
1479
+ "loc": {
1480
+ "start": {
1481
+ "line": 22,
1482
+ "column": 11
1483
+ },
1484
+ "end": {
1485
+ "line": 22,
1486
+ "column": 14
1487
+ },
1488
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
1489
+ }
1490
+ },
1491
+ "_meta": {
1492
+ "_extra": {
1493
+ "start": 269,
1494
+ "end": 282
1495
+ }
1496
+ },
1497
+ "loc": {
1498
+ "start": {
1499
+ "line": 22,
1500
+ "column": 1
1501
+ },
1502
+ "end": {
1503
+ "line": 22,
1504
+ "column": 14
1505
+ },
1506
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
1507
+ }
1508
+ },
1509
+ "_meta": {
1510
+ "_extra": {
1511
+ "start": 269,
1512
+ "end": 283,
1513
+ "leadingComments": [
1514
+ {
1515
+ "type": "CommentLine",
1516
+ "value": "TODO RecordExpression TupleExpression",
1517
+ "start": 228,
1518
+ "end": 267,
1519
+ "loc": {
1520
+ "start": {
1521
+ "line": 20,
1522
+ "column": 0,
1523
+ "index": 228
1524
+ },
1525
+ "end": {
1526
+ "line": 20,
1527
+ "column": 39,
1528
+ "index": 267
1529
+ }
1530
+ }
1531
+ }
1532
+ ]
1533
+ }
1534
+ },
1535
+ "loc": {
1536
+ "start": {
1537
+ "line": 22,
1538
+ "column": 1
1539
+ },
1540
+ "end": {
1541
+ "line": 22,
1542
+ "column": 15
1543
+ },
1544
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
1545
+ }
1546
+ },
1547
+ {
1548
+ "type": "ExpressionStatement",
1549
+ "expression": {
1550
+ "type": "BinaryExpression",
1551
+ "operator": "+",
1552
+ "left": {
1553
+ "type": "Literal",
1554
+ "value": 1,
1555
+ "literalType": "number",
1556
+ "_meta": {
1557
+ "_extra": {
1558
+ "start": 287,
1559
+ "end": 288
1560
+ }
1561
+ },
1562
+ "loc": {
1563
+ "start": {
1564
+ "line": 24,
1565
+ "column": 3
1566
+ },
1567
+ "end": {
1568
+ "line": 24,
1569
+ "column": 4
1570
+ },
1571
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
1572
+ }
1573
+ },
1574
+ "right": {
1575
+ "type": "Literal",
1576
+ "value": 3,
1577
+ "literalType": "number",
1578
+ "_meta": {
1579
+ "_extra": {
1580
+ "start": 289,
1581
+ "end": 290
1582
+ }
1583
+ },
1584
+ "loc": {
1585
+ "start": {
1586
+ "line": 24,
1587
+ "column": 5
1588
+ },
1589
+ "end": {
1590
+ "line": 24,
1591
+ "column": 6
1592
+ },
1593
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
1594
+ }
1595
+ },
1596
+ "_meta": {
1597
+ "_extra": {
1598
+ "start": 287,
1599
+ "end": 290
1600
+ }
1601
+ },
1602
+ "loc": {
1603
+ "start": {
1604
+ "line": 24,
1605
+ "column": 3
1606
+ },
1607
+ "end": {
1608
+ "line": 24,
1609
+ "column": 6
1610
+ },
1611
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
1612
+ }
1613
+ },
1614
+ "_meta": {
1615
+ "_extra": {
1616
+ "start": 285,
1617
+ "end": 293
1618
+ }
1619
+ },
1620
+ "loc": {
1621
+ "start": {
1622
+ "line": 24,
1623
+ "column": 1
1624
+ },
1625
+ "end": {
1626
+ "line": 24,
1627
+ "column": 9
1628
+ },
1629
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
1630
+ }
1631
+ }
1632
+ ],
1633
+ "language": "javascript",
1634
+ "languageVersion": null,
1635
+ "uri": "",
1636
+ "version": "0.1.63",
1637
+ "_meta": {
1638
+ "_extra": {
1639
+ "end": 295,
1640
+ "directives": []
1641
+ }
1642
+ },
1643
+ "loc": {
1644
+ "start": {
1645
+ "line": 1,
1646
+ "column": 1
1647
+ },
1648
+ "end": {
1649
+ "line": 26,
1650
+ "column": 1
1651
+ },
1652
+ "sourcefile": "/Users/jiufo/yasaaaaa/uastparser_js/tests/benchmark/base/expressions.js"
1653
+ }
1654
+ }