Debian Codegraph @

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

raw symbols SCIP
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 "errors": [
5 "SyntaxError: Topic reference was used in a lexical context without topic binding. (1:34)",
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":38,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":38,"index":38}},
11 "sourceType": "script",
12 "interpreter": null,
13 "body": [
14 {
15 "type": "ExpressionStatement",
16 "start":0,"end":38,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":38,"index":38}},
17 "expression": {
18 "type": "BinaryExpression",
19 "start":0,"end":38,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":38,"index":38}},
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":38,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":38,"index":38}},
29 "expression": {
30 "type": "DoExpression",
31 "start":9,"end":38,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":38,"index":38}},
32 "async": false,
33 "body": {
34 "type": "BlockStatement",
35 "start":12,"end":38,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":38,"index":38}},
36 "body": [
37 {
38 "type": "ForOfStatement",
39 "start":14,"end":36,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":36,"index":36}},
40 "await": false,
41 "left": {
42 "type": "Identifier",
43 "start":19,"end":20,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":20,"index":20},"identifierName":"e"},
44 "name": "e"
45 },
46 "right": {
47 "type": "Identifier",
48 "start":24,"end":32,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":32,"index":32},"identifierName":"sequence"},
49 "name": "sequence"
50 },
51 "body": {
52 "type": "ExpressionStatement",
53 "start":34,"end":36,"loc":{"start":{"line":1,"column":34,"index":34},"end":{"line":1,"column":36,"index":36}},
54 "expression": {
55 "type": "PipelinePrimaryTopicReference",
56 "start":34,"end":35,"loc":{"start":{"line":1,"column":34,"index":34},"end":{"line":1,"column":35,"index":35}}
57 }
58 }
59 }
60 ],
61 "directives": []
62 }
63 }
64 }
65 }
66 }
67 ],
68 "directives": []
69 }
70 }