Debian Codegraph @

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

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":49,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":49,"index":49}},
4 "errors": [
5 "SyntaxError: Topic reference was used in a lexical context without topic binding. (1:45)",
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":49,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":49,"index":49}},
11 "sourceType": "script",
12 "interpreter": null,
13 "body": [
14 {
15 "type": "ExpressionStatement",
16 "start":0,"end":49,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":49,"index":49}},
17 "expression": {
18 "type": "BinaryExpression",
19 "start":0,"end":49,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":49,"index":49}},
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":49,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":49,"index":49}},
29 "expression": {
30 "type": "DoExpression",
31 "start":9,"end":49,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":49,"index":49}},
32 "async": false,
33 "body": {
34 "type": "BlockStatement",
35 "start":12,"end":49,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":49,"index":49}},
36 "body": [
37 {
38 "type": "ForStatement",
39 "start":14,"end":47,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":47,"index":47}},
40 "init": {
41 "type": "VariableDeclaration",
42 "start":19,"end":28,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":28,"index":28}},
43 "declarations": [
44 {
45 "type": "VariableDeclarator",
46 "start":23,"end":28,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":28,"index":28}},
47 "id": {
48 "type": "Identifier",
49 "start":23,"end":24,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":24,"index":24},"identifierName":"i"},
50 "name": "i"
51 },
52 "init": {
53 "type": "NumericLiteral",
54 "start":27,"end":28,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":28,"index":28}},
55 "extra": {
56 "rawValue": 0,
57 "raw": "0"
58 },
59 "value": 0
60 }
61 }
62 ],
63 "kind": "let"
64 },
65 "test": {
66 "type": "BinaryExpression",
67 "start":30,"end":35,"loc":{"start":{"line":1,"column":30,"index":30},"end":{"line":1,"column":35,"index":35}},
68 "left": {
69 "type": "Identifier",
70 "start":30,"end":31,"loc":{"start":{"line":1,"column":30,"index":30},"end":{"line":1,"column":31,"index":31},"identifierName":"i"},
71 "name": "i"
72 },
73 "operator": "<",
74 "right": {
75 "type": "Identifier",
76 "start":34,"end":35,"loc":{"start":{"line":1,"column":34,"index":34},"end":{"line":1,"column":35,"index":35},"identifierName":"n"},
77 "name": "n"
78 }
79 },
80 "update": {
81 "type": "AssignmentExpression",
82 "start":37,"end":43,"loc":{"start":{"line":1,"column":37,"index":37},"end":{"line":1,"column":43,"index":43}},
83 "operator": "+=",
84 "left": {
85 "type": "Identifier",
86 "start":37,"end":38,"loc":{"start":{"line":1,"column":37,"index":37},"end":{"line":1,"column":38,"index":38},"identifierName":"i"},
87 "name": "i"
88 },
89 "right": {
90 "type": "NumericLiteral",
91 "start":42,"end":43,"loc":{"start":{"line":1,"column":42,"index":42},"end":{"line":1,"column":43,"index":43}},
92 "extra": {
93 "rawValue": 1,
94 "raw": "1"
95 },
96 "value": 1
97 }
98 },
99 "body": {
100 "type": "ExpressionStatement",
101 "start":45,"end":47,"loc":{"start":{"line":1,"column":45,"index":45},"end":{"line":1,"column":47,"index":47}},
102 "expression": {
103 "type": "PipelinePrimaryTopicReference",
104 "start":45,"end":46,"loc":{"start":{"line":1,"column":45,"index":45},"end":{"line":1,"column":46,"index":46}}
105 }
106 }
107 }
108 ],
109 "directives": []
110 }
111 }
112 }
113 }
114 }
115 ],
116 "directives": []
117 }
118 }