Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/es2015-destructuring-assignment-array-pattern/nested-assignment/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":25,"index":25}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":25,"index":25}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":25,"index":25}},
13 "expression": {
14 "type": "AssignmentExpression",
15 "start":0,"end":24,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":24,"index":24}},
16 "operator": "=",
17 "left": {
18 "type": "ArrayPattern",
19 "start":0,"end":22,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":22,"index":22}},
20 "elements": [
21 {
22 "type": "Identifier",
23 "start":1,"end":2,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":2,"index":2},"identifierName":"a"},
24 "name": "a"
25 },
26 {
27 "type": "AssignmentPattern",
28 "start":3,"end":6,"loc":{"start":{"line":1,"column":3,"index":3},"end":{"line":1,"column":6,"index":6}},
29 "left": {
30 "type": "Identifier",
31 "start":3,"end":4,"loc":{"start":{"line":1,"column":3,"index":3},"end":{"line":1,"column":4,"index":4},"identifierName":"b"},
32 "name": "b"
33 },
34 "right": {
35 "type": "NumericLiteral",
36 "start":5,"end":6,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":6,"index":6}},
37 "extra": {
38 "rawValue": 0,
39 "raw": "0"
40 },
41 "value": 0
42 }
43 },
44 {
45 "type": "AssignmentPattern",
46 "start":7,"end":21,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":21,"index":21}},
47 "left": {
48 "type": "ArrayPattern",
49 "start":7,"end":18,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":18,"index":18}},
50 "elements": [
51 {
52 "type": "Identifier",
53 "start":8,"end":9,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":9,"index":9},"identifierName":"c"},
54 "name": "c"
55 },
56 {
57 "type": "RestElement",
58 "start":10,"end":17,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":17,"index":17}},
59 "argument": {
60 "type": "MemberExpression",
61 "start":13,"end":17,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":17,"index":17}},
62 "object": {
63 "type": "Identifier",
64 "start":13,"end":14,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":14,"index":14},"identifierName":"a"},
65 "name": "a"
66 },
67 "computed": true,
68 "property": {
69 "type": "NumericLiteral",
70 "start":15,"end":16,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":16,"index":16}},
71 "extra": {
72 "rawValue": 0,
73 "raw": "0"
74 },
75 "value": 0
76 }
77 }
78 }
79 ]
80 },
81 "right": {
82 "type": "ObjectExpression",
83 "start":19,"end":21,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":21,"index":21}},
84 "properties": []
85 }
86 }
87 ]
88 },
89 "right": {
90 "type": "NumericLiteral",
91 "start":23,"end":24,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":24,"index":24}},
92 "extra": {
93 "rawValue": 0,
94 "raw": "0"
95 },
96 "value": 0
97 }
98 }
99 }
100 ],
101 "directives": []
102 }
103 }