Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/pipeline-operator/smart-proposal-function-definition-with-another-pipe-in-function-body/output.json

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