Debian Codegraph @

tests/fixtures/ecma-version/6/objectLiteralComputedProperties/computed-variable-property.result.js

raw
1 export default {
2 "type": "Program",
3 "loc": {
4 "start": {
5 "line": 1,
6 "column": 0
7 },
8 "end": {
9 "line": 3,
10 "column": 2
11 }
12 },
13 "range": [
14 0,
15 27
16 ],
17 "body": [
18 {
19 "type": "VariableDeclaration",
20 "loc": {
21 "start": {
22 "line": 1,
23 "column": 0
24 },
25 "end": {
26 "line": 3,
27 "column": 2
28 }
29 },
30 "range": [
31 0,
32 27
33 ],
34 "declarations": [
35 {
36 "type": "VariableDeclarator",
37 "loc": {
38 "start": {
39 "line": 1,
40 "column": 4
41 },
42 "end": {
43 "line": 3,
44 "column": 1
45 }
46 },
47 "range": [
48 4,
49 26
50 ],
51 "id": {
52 "type": "Identifier",
53 "loc": {
54 "start": {
55 "line": 1,
56 "column": 4
57 },
58 "end": {
59 "line": 1,
60 "column": 5
61 }
62 },
63 "range": [
64 4,
65 5
66 ],
67 "name": "x"
68 },
69 "init": {
70 "type": "ObjectExpression",
71 "loc": {
72 "start": {
73 "line": 1,
74 "column": 8
75 },
76 "end": {
77 "line": 3,
78 "column": 1
79 }
80 },
81 "range": [
82 8,
83 26
84 ],
85 "properties": [
86 {
87 "type": "Property",
88 "loc": {
89 "start": {
90 "line": 2,
91 "column": 4
92 },
93 "end": {
94 "line": 2,
95 "column": 14
96 }
97 },
98 "range": [
99 14,
100 24
101 ],
102 "method": false,
103 "shorthand": false,
104 "computed": true,
105 "key": {
106 "type": "Identifier",
107 "loc": {
108 "start": {
109 "line": 2,
110 "column": 5
111 },
112 "end": {
113 "line": 2,
114 "column": 8
115 }
116 },
117 "range": [
118 15,
119 18
120 ],
121 "name": "bar"
122 },
123 "value": {
124 "type": "Identifier",
125 "loc": {
126 "start": {
127 "line": 2,
128 "column": 11
129 },
130 "end": {
131 "line": 2,
132 "column": 14
133 }
134 },
135 "range": [
136 21,
137 24
138 ],
139 "name": "foo"
140 },
141 "kind": "init"
142 }
143 ]
144 }
145 }
146 ],
147 "kind": "var"
148 }
149 ],
150 "sourceType": "script",
151 "tokens": [
152 {
153 "type": "Keyword",
154 "value": "var",
155 "loc": {
156 "start": {
157 "line": 1,
158 "column": 0
159 },
160 "end": {
161 "line": 1,
162 "column": 3
163 }
164 },
165 "range": [
166 0,
167 3
168 ]
169 },
170 {
171 "type": "Identifier",
172 "value": "x",
173 "loc": {
174 "start": {
175 "line": 1,
176 "column": 4
177 },
178 "end": {
179 "line": 1,
180 "column": 5
181 }
182 },
183 "range": [
184 4,
185 5
186 ]
187 },
188 {
189 "type": "Punctuator",
190 "value": "=",
191 "loc": {
192 "start": {
193 "line": 1,
194 "column": 6
195 },
196 "end": {
197 "line": 1,
198 "column": 7
199 }
200 },
201 "range": [
202 6,
203 7
204 ]
205 },
206 {
207 "type": "Punctuator",
208 "value": "{",
209 "loc": {
210 "start": {
211 "line": 1,
212 "column": 8
213 },
214 "end": {
215 "line": 1,
216 "column": 9
217 }
218 },
219 "range": [
220 8,
221 9
222 ]
223 },
224 {
225 "type": "Punctuator",
226 "value": "[",
227 "loc": {
228 "start": {
229 "line": 2,
230 "column": 4
231 },
232 "end": {
233 "line": 2,
234 "column": 5
235 }
236 },
237 "range": [
238 14,
239 15
240 ]
241 },
242 {
243 "type": "Identifier",
244 "value": "bar",
245 "loc": {
246 "start": {
247 "line": 2,
248 "column": 5
249 },
250 "end": {
251 "line": 2,
252 "column": 8
253 }
254 },
255 "range": [
256 15,
257 18
258 ]
259 },
260 {
261 "type": "Punctuator",
262 "value": "]",
263 "loc": {
264 "start": {
265 "line": 2,
266 "column": 8
267 },
268 "end": {
269 "line": 2,
270 "column": 9
271 }
272 },
273 "range": [
274 18,
275 19
276 ]
277 },
278 {
279 "type": "Punctuator",
280 "value": ":",
281 "loc": {
282 "start": {
283 "line": 2,
284 "column": 9
285 },
286 "end": {
287 "line": 2,
288 "column": 10
289 }
290 },
291 "range": [
292 19,
293 20
294 ]
295 },
296 {
297 "type": "Identifier",
298 "value": "foo",
299 "loc": {
300 "start": {
301 "line": 2,
302 "column": 11
303 },
304 "end": {
305 "line": 2,
306 "column": 14
307 }
308 },
309 "range": [
310 21,
311 24
312 ]
313 },
314 {
315 "type": "Punctuator",
316 "value": "}",
317 "loc": {
318 "start": {
319 "line": 3,
320 "column": 0
321 },
322 "end": {
323 "line": 3,
324 "column": 1
325 }
326 },
327 "range": [
328 25,
329 26
330 ]
331 },
332 {
333 "type": "Punctuator",
334 "value": ";",
335 "loc": {
336 "start": {
337 "line": 3,
338 "column": 1
339 },
340 "end": {
341 "line": 3,
342 "column": 2
343 }
344 },
345 "range": [
346 26,
347 27
348 ]
349 }
350 ]
351 };