Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":85,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":8,"column":7,"index":85}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":85,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":8,"column":7,"index":85}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":85,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":8,"column":7,"index":85}},
13 "expression": {
14 "type": "AssignmentExpression",
15 "start":1,"end":83,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":8,"column":5,"index":83}},
16 "operator": "=",
17 "left": {
18 "type": "ObjectPattern",
19 "start":1,"end":79,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":8,"column":1,"index":79}},
20 "properties": [
21 {
22 "type": "ObjectProperty",
23 "start":7,"end":8,"loc":{"start":{"line":2,"column":4,"index":7},"end":{"line":2,"column":5,"index":8}},
24 "method": false,
25 "key": {
26 "type": "Identifier",
27 "start":7,"end":8,"loc":{"start":{"line":2,"column":4,"index":7},"end":{"line":2,"column":5,"index":8},"identifierName":"a"},
28 "name": "a"
29 },
30 "computed": false,
31 "shorthand": true,
32 "value": {
33 "type": "Identifier",
34 "start":7,"end":8,"loc":{"start":{"line":2,"column":4,"index":7},"end":{"line":2,"column":5,"index":8},"identifierName":"a"},
35 "name": "a"
36 },
37 "extra": {
38 "shorthand": true
39 }
40 },
41 {
42 "type": "ObjectProperty",
43 "start":14,"end":17,"loc":{"start":{"line":3,"column":4,"index":14},"end":{"line":3,"column":7,"index":17}},
44 "method": false,
45 "key": {
46 "type": "Identifier",
47 "start":14,"end":15,"loc":{"start":{"line":3,"column":4,"index":14},"end":{"line":3,"column":5,"index":15},"identifierName":"a"},
48 "name": "a"
49 },
50 "computed": false,
51 "shorthand": false,
52 "value": {
53 "type": "Identifier",
54 "start":16,"end":17,"loc":{"start":{"line":3,"column":6,"index":16},"end":{"line":3,"column":7,"index":17},"identifierName":"a"},
55 "name": "a"
56 }
57 },
58 {
59 "type": "ObjectProperty",
60 "start":23,"end":28,"loc":{"start":{"line":4,"column":4,"index":23},"end":{"line":4,"column":9,"index":28}},
61 "method": false,
62 "key": {
63 "type": "Identifier",
64 "start":23,"end":24,"loc":{"start":{"line":4,"column":4,"index":23},"end":{"line":4,"column":5,"index":24},"identifierName":"a"},
65 "name": "a"
66 },
67 "computed": false,
68 "shorthand": false,
69 "value": {
70 "type": "AssignmentPattern",
71 "start":25,"end":28,"loc":{"start":{"line":4,"column":6,"index":25},"end":{"line":4,"column":9,"index":28}},
72 "left": {
73 "type": "Identifier",
74 "start":25,"end":26,"loc":{"start":{"line":4,"column":6,"index":25},"end":{"line":4,"column":7,"index":26},"identifierName":"a"},
75 "name": "a"
76 },
77 "right": {
78 "type": "Identifier",
79 "start":27,"end":28,"loc":{"start":{"line":4,"column":8,"index":27},"end":{"line":4,"column":9,"index":28},"identifierName":"a"},
80 "name": "a"
81 }
82 }
83 },
84 {
85 "type": "ObjectProperty",
86 "start":34,"end":41,"loc":{"start":{"line":5,"column":4,"index":34},"end":{"line":5,"column":11,"index":41}},
87 "method": false,
88 "computed": true,
89 "key": {
90 "type": "Identifier",
91 "start":35,"end":36,"loc":{"start":{"line":5,"column":5,"index":35},"end":{"line":5,"column":6,"index":36},"identifierName":"a"},
92 "name": "a"
93 },
94 "shorthand": false,
95 "value": {
96 "type": "ObjectPattern",
97 "start":38,"end":41,"loc":{"start":{"line":5,"column":8,"index":38},"end":{"line":5,"column":11,"index":41}},
98 "properties": [
99 {
100 "type": "ObjectProperty",
101 "start":39,"end":40,"loc":{"start":{"line":5,"column":9,"index":39},"end":{"line":5,"column":10,"index":40}},
102 "method": false,
103 "key": {
104 "type": "Identifier",
105 "start":39,"end":40,"loc":{"start":{"line":5,"column":9,"index":39},"end":{"line":5,"column":10,"index":40},"identifierName":"a"},
106 "name": "a"
107 },
108 "computed": false,
109 "shorthand": true,
110 "value": {
111 "type": "Identifier",
112 "start":39,"end":40,"loc":{"start":{"line":5,"column":9,"index":39},"end":{"line":5,"column":10,"index":40},"identifierName":"a"},
113 "name": "a"
114 },
115 "extra": {
116 "shorthand": true
117 }
118 }
119 ]
120 }
121 },
122 {
123 "type": "ObjectProperty",
124 "start":47,"end":63,"loc":{"start":{"line":6,"column":4,"index":47},"end":{"line":6,"column":20,"index":63}},
125 "method": false,
126 "key": {
127 "type": "Identifier",
128 "start":47,"end":48,"loc":{"start":{"line":6,"column":4,"index":47},"end":{"line":6,"column":5,"index":48},"identifierName":"a"},
129 "name": "a"
130 },
131 "computed": false,
132 "shorthand": false,
133 "value": {
134 "type": "MemberExpression",
135 "start":49,"end":63,"loc":{"start":{"line":6,"column":6,"index":49},"end":{"line":6,"column":20,"index":63}},
136 "object": {
137 "type": "CallExpression",
138 "start":49,"end":60,"loc":{"start":{"line":6,"column":6,"index":49},"end":{"line":6,"column":17,"index":60}},
139 "callee": {
140 "type": "Identifier",
141 "start":49,"end":58,"loc":{"start":{"line":6,"column":6,"index":49},"end":{"line":6,"column":15,"index":58},"identifierName":"some_call"},
142 "name": "some_call"
143 },
144 "arguments": []
145 },
146 "computed": true,
147 "property": {
148 "type": "Identifier",
149 "start":61,"end":62,"loc":{"start":{"line":6,"column":18,"index":61},"end":{"line":6,"column":19,"index":62},"identifierName":"a"},
150 "name": "a"
151 }
152 }
153 },
154 {
155 "type": "ObjectProperty",
156 "start":69,"end":77,"loc":{"start":{"line":7,"column":4,"index":69},"end":{"line":7,"column":12,"index":77}},
157 "method": false,
158 "key": {
159 "type": "Identifier",
160 "start":69,"end":70,"loc":{"start":{"line":7,"column":4,"index":69},"end":{"line":7,"column":5,"index":70},"identifierName":"a"},
161 "name": "a"
162 },
163 "computed": false,
164 "shorthand": false,
165 "value": {
166 "type": "MemberExpression",
167 "start":71,"end":77,"loc":{"start":{"line":7,"column":6,"index":71},"end":{"line":7,"column":12,"index":77}},
168 "object": {
169 "type": "ThisExpression",
170 "start":71,"end":75,"loc":{"start":{"line":7,"column":6,"index":71},"end":{"line":7,"column":10,"index":75}}
171 },
172 "computed": false,
173 "property": {
174 "type": "Identifier",
175 "start":76,"end":77,"loc":{"start":{"line":7,"column":11,"index":76},"end":{"line":7,"column":12,"index":77},"identifierName":"a"},
176 "name": "a"
177 }
178 }
179 }
180 ]
181 },
182 "right": {
183 "type": "NumericLiteral",
184 "start":82,"end":83,"loc":{"start":{"line":8,"column":4,"index":82},"end":{"line":8,"column":5,"index":83}},
185 "extra": {
186 "rawValue": 0,
187 "raw": "0"
188 },
189 "value": 0
190 },
191 "extra": {
192 "parenthesized": true,
193 "parenStart": 0
194 }
195 }
196 }
197 ],
198 "directives": []
199 }
200 }