Debian Codegraph @

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

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":77,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":77}},
4 "errors": [
5 "SyntaxError: Topic reference was used in a lexical context without topic binding. (2:48)",
6 "SyntaxError: Pipeline is in topic style but does not use topic reference. (2:11)"
7 ],
8 "program": {
9 "type": "Program",
10 "start":0,"end":77,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":77}},
11 "sourceType": "script",
12 "interpreter": null,
13 "body": [
14 {
15 "type": "FunctionDeclaration",
16 "start":0,"end":77,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":77}},
17 "id": {
18 "type": "Identifier",
19 "start":15,"end":17,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":17,"index":17},"identifierName":"af"},
20 "name": "af"
21 },
22 "generator": false,
23 "async": true,
24 "params": [],
25 "body": {
26 "type": "BlockStatement",
27 "start":21,"end":77,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":3,"column":1,"index":77}},
28 "body": [
29 {
30 "type": "ExpressionStatement",
31 "start":25,"end":75,"loc":{"start":{"line":2,"column":2,"index":25},"end":{"line":2,"column":52,"index":75}},
32 "expression": {
33 "type": "BinaryExpression",
34 "start":25,"end":75,"loc":{"start":{"line":2,"column":2,"index":25},"end":{"line":2,"column":52,"index":75}},
35 "left": {
36 "type": "Identifier",
37 "start":25,"end":30,"loc":{"start":{"line":2,"column":2,"index":25},"end":{"line":2,"column":7,"index":30},"identifierName":"value"},
38 "name": "value"
39 },
40 "operator": "|>",
41 "right": {
42 "type": "PipelineTopicExpression",
43 "start":34,"end":75,"loc":{"start":{"line":2,"column":11,"index":34},"end":{"line":2,"column":52,"index":75}},
44 "expression": {
45 "type": "DoExpression",
46 "start":34,"end":75,"loc":{"start":{"line":2,"column":11,"index":34},"end":{"line":2,"column":52,"index":75}},
47 "async": false,
48 "body": {
49 "type": "BlockStatement",
50 "start":37,"end":75,"loc":{"start":{"line":2,"column":14,"index":37},"end":{"line":2,"column":52,"index":75}},
51 "body": [
52 {
53 "type": "ForOfStatement",
54 "start":39,"end":73,"loc":{"start":{"line":2,"column":16,"index":39},"end":{"line":2,"column":50,"index":73}},
55 "await": true,
56 "left": {
57 "type": "VariableDeclaration",
58 "start":50,"end":57,"loc":{"start":{"line":2,"column":27,"index":50},"end":{"line":2,"column":34,"index":57}},
59 "declarations": [
60 {
61 "type": "VariableDeclarator",
62 "start":56,"end":57,"loc":{"start":{"line":2,"column":33,"index":56},"end":{"line":2,"column":34,"index":57}},
63 "id": {
64 "type": "Identifier",
65 "start":56,"end":57,"loc":{"start":{"line":2,"column":33,"index":56},"end":{"line":2,"column":34,"index":57},"identifierName":"e"},
66 "name": "e"
67 },
68 "init": null
69 }
70 ],
71 "kind": "const"
72 },
73 "right": {
74 "type": "Identifier",
75 "start":61,"end":69,"loc":{"start":{"line":2,"column":38,"index":61},"end":{"line":2,"column":46,"index":69},"identifierName":"sequence"},
76 "name": "sequence"
77 },
78 "body": {
79 "type": "ExpressionStatement",
80 "start":71,"end":73,"loc":{"start":{"line":2,"column":48,"index":71},"end":{"line":2,"column":50,"index":73}},
81 "expression": {
82 "type": "PipelinePrimaryTopicReference",
83 "start":71,"end":72,"loc":{"start":{"line":2,"column":48,"index":71},"end":{"line":2,"column":49,"index":72}}
84 }
85 }
86 }
87 ],
88 "directives": []
89 }
90 }
91 }
92 }
93 }
94 ],
95 "directives": []
96 }
97 }
98 ],
99 "directives": []
100 }
101 }