Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/pipeline-operator/hack-percent-proposal-arrow-function-unparenthesized/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":17,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":17,"index":17}},
4 "errors": [
5 "SyntaxError: Hack-style pipe body cannot be an unparenthesized arrow function expression; please wrap it in parentheses. (1:6)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":17,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":17,"index":17}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":0,"end":17,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":17,"index":17}},
16 "expression": {
17 "type": "BinaryExpression",
18 "start":0,"end":16,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":16,"index":16}},
19 "left": {
20 "type": "NumericLiteral",
21 "start":0,"end":2,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":2,"index":2}},
22 "extra": {
23 "rawValue": 10,
24 "raw": "10"
25 },
26 "value": 10
27 },
28 "operator": "|>",
29 "right": {
30 "type": "ArrowFunctionExpression",
31 "start":6,"end":16,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":16,"index":16}},
32 "id": null,
33 "generator": false,
34 "async": false,
35 "params": [
36 {
37 "type": "Identifier",
38 "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"x"},
39 "name": "x"
40 }
41 ],
42 "body": {
43 "type": "BinaryExpression",
44 "start":11,"end":16,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":16,"index":16}},
45 "left": {
46 "type": "Identifier",
47 "start":11,"end":12,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":12,"index":12},"identifierName":"x"},
48 "name": "x"
49 },
50 "operator": "+",
51 "right": {
52 "type": "TopicReference",
53 "start":15,"end":16,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":16,"index":16}}
54 }
55 }
56 }
57 }
58 }
59 ],
60 "directives": []
61 }
62 }