Debian Codegraph @

packages/babel-parser/test/fixtures/core/categorized/valid-assignment-pattern-2/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 "program": {
5 "type": "Program",
6 "start":0,"end":10,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":10,"index":10}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":10,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":10,"index":10}},
13 "expression": {
14 "type": "AssignmentExpression",
15 "start":0,"end":9,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":9,"index":9}},
16 "operator": "=",
17 "left": {
18 "type": "ArrayPattern",
19 "start":0,"end":5,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":5,"index":5}},
20 "elements": [
21 {
22 "type": "Identifier",
23 "start":2,"end":3,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":1,"column":3,"index":3},"identifierName":"x"},
24 "name": "x",
25 "extra": {
26 "parenthesized": true,
27 "parenStart": 1
28 }
29 }
30 ]
31 },
32 "right": {
33 "type": "Identifier",
34 "start":8,"end":9,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":9,"index":9},"identifierName":"t"},
35 "name": "t"
36 }
37 }
38 }
39 ],
40 "directives": []
41 }
42 }