Debian Codegraph @

packages/babel-parser/test/fixtures/core/categorized/valid-assignment-pattern-1/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
13 "expression": {
14 "type": "AssignmentExpression",
15 "start":0,"end":11,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":11,"index":11}},
16 "operator": "=",
17 "left": {
18 "type": "ArrayPattern",
19 "start":0,"end":7,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":7,"index":7}},
20 "elements": [
21 {
22 "type": "MemberExpression",
23 "start":2,"end":5,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":1,"column":5,"index":5}},
24 "object": {
25 "type": "Identifier",
26 "start":2,"end":3,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":1,"column":3,"index":3},"identifierName":"a"},
27 "name": "a"
28 },
29 "computed": false,
30 "property": {
31 "type": "Identifier",
32 "start":4,"end":5,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":5,"index":5},"identifierName":"x"},
33 "name": "x"
34 },
35 "extra": {
36 "parenthesized": true,
37 "parenStart": 1
38 }
39 }
40 ]
41 },
42 "right": {
43 "type": "Identifier",
44 "start":10,"end":11,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":11,"index":11},"identifierName":"t"},
45 "name": "t"
46 }
47 }
48 }
49 ],
50 "directives": []
51 }
52 }