Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/pipeline-operator/hack-double-at-proposal-assignment-normal/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":20,"index":20}},
4 "errors": [
5 "SyntaxError: Hack-style pipe body cannot be an unparenthesized assignment expression; please wrap it in parentheses. (1:9)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":20,"index":20}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":20,"index":20}},
16 "expression": {
17 "type": "BinaryExpression",
18 "start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":20,"index":20}},
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": "AssignmentExpression",
27 "start":9,"end":20,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":20,"index":20}},
28 "operator": "=",
29 "left": {
30 "type": "ArrayPattern",
31 "start":9,"end":15,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":15,"index":15}},
32 "elements": [
33 {
34 "type": "Identifier",
35 "start":10,"end":11,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":11,"index":11},"identifierName":"x"},
36 "name": "x"
37 },
38 {
39 "type": "Identifier",
40 "start":13,"end":14,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":14,"index":14},"identifierName":"y"},
41 "name": "y"
42 }
43 ]
44 },
45 "right": {
46 "type": "TopicReference",
47 "start":18,"end":20,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":20,"index":20}}
48 }
49 }
50 }
51 }
52 ],
53 "directives": []
54 }
55 }