Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/pipeline-operator/hack-hash-proposal-do-transform-while-loop-topic-in-loop-body/output.json

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