Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/statement-iteration/migrated_0007/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":28,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":28,"index":28}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":28,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":28,"index":28}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "WhileStatement",
12 "start":0,"end":28,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":28,"index":28}},
13 "test": {
14 "type": "BinaryExpression",
15 "start":7,"end":13,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":13,"index":13}},
16 "left": {
17 "type": "Identifier",
18 "start":7,"end":8,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":8,"index":8},"identifierName":"x"},
19 "name": "x"
20 },
21 "operator": "<",
22 "right": {
23 "type": "NumericLiteral",
24 "start":11,"end":13,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":13,"index":13}},
25 "extra": {
26 "rawValue": 10,
27 "raw": "10"
28 },
29 "value": 10
30 }
31 },
32 "body": {
33 "type": "BlockStatement",
34 "start":15,"end":28,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":28,"index":28}},
35 "body": [
36 {
37 "type": "ExpressionStatement",
38 "start":17,"end":21,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":21,"index":21}},
39 "expression": {
40 "type": "UpdateExpression",
41 "start":17,"end":20,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":20,"index":20}},
42 "operator": "++",
43 "prefix": false,
44 "argument": {
45 "type": "Identifier",
46 "start":17,"end":18,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":18,"index":18},"identifierName":"x"},
47 "name": "x"
48 }
49 }
50 },
51 {
52 "type": "ExpressionStatement",
53 "start":22,"end":26,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":26,"index":26}},
54 "expression": {
55 "type": "UpdateExpression",
56 "start":22,"end":25,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":25,"index":25}},
57 "operator": "--",
58 "prefix": false,
59 "argument": {
60 "type": "Identifier",
61 "start":22,"end":23,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":23,"index":23},"identifierName":"y"},
62 "name": "y"
63 }
64 }
65 }
66 ],
67 "directives": []
68 }
69 }
70 ],
71 "directives": []
72 }
73 }