Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":42,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":42,"index":42}},
4 "errors": [
5 "SyntaxError: Topic reference was used in a lexical context without topic binding. (1:22)",
6 "SyntaxError: Pipeline is in topic style but does not use topic reference. (1:9)"
7 ],
8 "program": {
9 "type": "Program",
10 "start":0,"end":42,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":42,"index":42}},
11 "sourceType": "script",
12 "interpreter": null,
13 "body": [
14 {
15 "type": "ExpressionStatement",
16 "start":0,"end":42,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":42,"index":42}},
17 "expression": {
18 "type": "BinaryExpression",
19 "start":0,"end":42,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":42,"index":42}},
20 "left": {
21 "type": "Identifier",
22 "start":0,"end":5,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":5,"index":5},"identifierName":"value"},
23 "name": "value"
24 },
25 "operator": "|>",
26 "right": {
27 "type": "PipelineTopicExpression",
28 "start":9,"end":42,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":42,"index":42}},
29 "expression": {
30 "type": "DoExpression",
31 "start":9,"end":42,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":42,"index":42}},
32 "async": false,
33 "body": {
34 "type": "BlockStatement",
35 "start":12,"end":42,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":42,"index":42}},
36 "body": [
37 {
38 "type": "DoWhileStatement",
39 "start":14,"end":40,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":40,"index":40}},
40 "body": {
41 "type": "ExpressionStatement",
42 "start":17,"end":24,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":24,"index":24}},
43 "expression": {
44 "type": "AssignmentExpression",
45 "start":17,"end":23,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":23,"index":23}},
46 "operator": "+=",
47 "left": {
48 "type": "Identifier",
49 "start":17,"end":18,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":18,"index":18},"identifierName":"x"},
50 "name": "x"
51 },
52 "right": {
53 "type": "PipelinePrimaryTopicReference",
54 "start":22,"end":23,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":23,"index":23}}
55 }
56 }
57 },
58 "test": {
59 "type": "BinaryExpression",
60 "start":32,"end":38,"loc":{"start":{"line":1,"column":32,"index":32},"end":{"line":1,"column":38,"index":38}},
61 "left": {
62 "type": "Identifier",
63 "start":32,"end":33,"loc":{"start":{"line":1,"column":32,"index":32},"end":{"line":1,"column":33,"index":33},"identifierName":"x"},
64 "name": "x"
65 },
66 "operator": "<",
67 "right": {
68 "type": "NumericLiteral",
69 "start":36,"end":38,"loc":{"start":{"line":1,"column":36,"index":36},"end":{"line":1,"column":38,"index":38}},
70 "extra": {
71 "rawValue": 50,
72 "raw": "50"
73 },
74 "value": 50
75 }
76 }
77 }
78 ],
79 "directives": []
80 }
81 }
82 }
83 }
84 }
85 ],
86 "directives": []
87 }
88 }