Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/pipeline-operator/smart-proposal-no-topic-function-expression/output.json

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