Debian Codegraph @

tests/fixtures/ecma-version/6/objectLiteralComputedProperties/computed-string-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 29
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 29
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 28
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 28
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": 16
96 }
97 },
98 "range": [
99 14,
100 26
101 ],
102 "method": false,
103 "shorthand": false,
104 "computed": true,
105 "key": {
106 "type": "Literal",
107 "loc": {
108 "start": {
109 "line": 2,
110 "column": 5
111 },
112 "end": {
113 "line": 2,
114 "column": 10
115 }
116 },
117 "range": [
118 15,
119 20
120 ],
121 "value": "hey",
122 "raw": "\"hey\""
123 },
124 "value": {
125 "type": "Identifier",
126 "loc": {
127 "start": {
128 "line": 2,
129 "column": 13
130 },
131 "end": {
132 "line": 2,
133 "column": 16
134 }
135 },
136 "range": [
137 23,
138 26
139 ],
140 "name": "foo"
141 },
142 "kind": "init"
143 }
144 ]
145 }
146 }
147 ],
148 "kind": "var"
149 }
150 ],
151 "sourceType": "script",
152 "tokens": [
153 {
154 "type": "Keyword",
155 "value": "var",
156 "loc": {
157 "start": {
158 "line": 1,
159 "column": 0
160 },
161 "end": {
162 "line": 1,
163 "column": 3
164 }
165 },
166 "range": [
167 0,
168 3
169 ]
170 },
171 {
172 "type": "Identifier",
173 "value": "x",
174 "loc": {
175 "start": {
176 "line": 1,
177 "column": 4
178 },
179 "end": {
180 "line": 1,
181 "column": 5
182 }
183 },
184 "range": [
185 4,
186 5
187 ]
188 },
189 {
190 "type": "Punctuator",
191 "value": "=",
192 "loc": {
193 "start": {
194 "line": 1,
195 "column": 6
196 },
197 "end": {
198 "line": 1,
199 "column": 7
200 }
201 },
202 "range": [
203 6,
204 7
205 ]
206 },
207 {
208 "type": "Punctuator",
209 "value": "{",
210 "loc": {
211 "start": {
212 "line": 1,
213 "column": 8
214 },
215 "end": {
216 "line": 1,
217 "column": 9
218 }
219 },
220 "range": [
221 8,
222 9
223 ]
224 },
225 {
226 "type": "Punctuator",
227 "value": "[",
228 "loc": {
229 "start": {
230 "line": 2,
231 "column": 4
232 },
233 "end": {
234 "line": 2,
235 "column": 5
236 }
237 },
238 "range": [
239 14,
240 15
241 ]
242 },
243 {
244 "type": "String",
245 "value": "\"hey\"",
246 "loc": {
247 "start": {
248 "line": 2,
249 "column": 5
250 },
251 "end": {
252 "line": 2,
253 "column": 10
254 }
255 },
256 "range": [
257 15,
258 20
259 ]
260 },
261 {
262 "type": "Punctuator",
263 "value": "]",
264 "loc": {
265 "start": {
266 "line": 2,
267 "column": 10
268 },
269 "end": {
270 "line": 2,
271 "column": 11
272 }
273 },
274 "range": [
275 20,
276 21
277 ]
278 },
279 {
280 "type": "Punctuator",
281 "value": ":",
282 "loc": {
283 "start": {
284 "line": 2,
285 "column": 11
286 },
287 "end": {
288 "line": 2,
289 "column": 12
290 }
291 },
292 "range": [
293 21,
294 22
295 ]
296 },
297 {
298 "type": "Identifier",
299 "value": "foo",
300 "loc": {
301 "start": {
302 "line": 2,
303 "column": 13
304 },
305 "end": {
306 "line": 2,
307 "column": 16
308 }
309 },
310 "range": [
311 23,
312 26
313 ]
314 },
315 {
316 "type": "Punctuator",
317 "value": "}",
318 "loc": {
319 "start": {
320 "line": 3,
321 "column": 0
322 },
323 "end": {
324 "line": 3,
325 "column": 1
326 }
327 },
328 "range": [
329 27,
330 28
331 ]
332 },
333 {
334 "type": "Punctuator",
335 "value": ";",
336 "loc": {
337 "start": {
338 "line": 3,
339 "column": 1
340 },
341 "end": {
342 "line": 3,
343 "column": 2
344 }
345 },
346 "range": [
347 28,
348 29
349 ]
350 }
351 ]
352 };