Debian Codegraph @

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

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