Debian Codegraph @

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

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