Debian Codegraph @

packages/babel-parser/test/fixtures/core/categorized/invalid-assignment-pattern-3/output.json

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