Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/pipeline-operator/hack-double-caret-proposal-nested-pipelines-with-arrow-function-without-inner-topic/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":23,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":23,"index":23}},
4 "errors": [
5 "SyntaxError: Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once. (1:17)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":23,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":23,"index":23}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":0,"end":23,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":23,"index":23}},
16 "expression": {
17 "type": "BinaryExpression",
18 "start":0,"end":23,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":23,"index":23}},
19 "left": {
20 "type": "Identifier",
21 "start":0,"end":1,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":1,"index":1},"identifierName":"x"},
22 "name": "x"
23 },
24 "operator": "|>",
25 "right": {
26 "type": "ArrowFunctionExpression",
27 "start":6,"end":22,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":22,"index":22}},
28 "id": null,
29 "generator": false,
30 "async": false,
31 "params": [
32 {
33 "type": "Identifier",
34 "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"$"},
35 "name": "$"
36 }
37 ],
38 "body": {
39 "type": "BinaryExpression",
40 "start":11,"end":22,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":22,"index":22}},
41 "left": {
42 "type": "TopicReference",
43 "start":11,"end":13,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":13,"index":13}}
44 },
45 "operator": "|>",
46 "right": {
47 "type": "BinaryExpression",
48 "start":17,"end":22,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":22,"index":22}},
49 "left": {
50 "type": "Identifier",
51 "start":17,"end":18,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":18,"index":18},"identifierName":"$"},
52 "name": "$"
53 },
54 "operator": "+",
55 "right": {
56 "type": "NumericLiteral",
57 "start":21,"end":22,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":22,"index":22}},
58 "extra": {
59 "rawValue": 1,
60 "raw": "1"
61 },
62 "value": 1
63 }
64 }
65 },
66 "extra": {
67 "parenthesized": true,
68 "parenStart": 5
69 }
70 }
71 }
72 }
73 ],
74 "directives": []
75 }
76 }