Debian Codegraph @

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

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