Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/destructuring/parenthesized-lhs-object/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":10,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":10,"index":10}},
4 "errors": [
5 "SyntaxError: Invalid parenthesized assignment pattern. (1:1)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":10,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":10,"index":10}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":0,"end":10,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":10,"index":10}},
16 "expression": {
17 "type": "AssignmentExpression",
18 "start":0,"end":9,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":9,"index":9}},
19 "operator": "=",
20 "left": {
21 "type": "ObjectPattern",
22 "start":1,"end":4,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":4,"index":4}},
23 "properties": [
24 {
25 "type": "ObjectProperty",
26 "start":2,"end":3,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":1,"column":3,"index":3}},
27 "method": false,
28 "key": {
29 "type": "Identifier",
30 "start":2,"end":3,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":1,"column":3,"index":3},"identifierName":"a"},
31 "name": "a"
32 },
33 "computed": false,
34 "shorthand": true,
35 "value": {
36 "type": "Identifier",
37 "start":2,"end":3,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":1,"column":3,"index":3},"identifierName":"a"},
38 "name": "a"
39 },
40 "extra": {
41 "shorthand": true
42 }
43 }
44 ],
45 "extra": {
46 "parenthesized": true,
47 "parenStart": 0
48 }
49 },
50 "right": {
51 "type": "NumericLiteral",
52 "start":8,"end":9,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":9,"index":9}},
53 "extra": {
54 "rawValue": 2,
55 "raw": "2"
56 },
57 "value": 2
58 }
59 }
60 }
61 ],
62 "directives": []
63 }
64 }