Debian Codegraph @

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

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