Debian Codegraph @

tests/fixtures/ecma-version/6/newTarget/simple-new-target.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": 1
11 }
12 },
13 "range": [
14 0,
15 40
16 ],
17 "body": [
18 {
19 "type": "FunctionDeclaration",
20 "loc": {
21 "start": {
22 "line": 1,
23 "column": 0
24 },
25 "end": {
26 "line": 3,
27 "column": 1
28 }
29 },
30 "range": [
31 0,
32 40
33 ],
34 "id": {
35 "type": "Identifier",
36 "loc": {
37 "start": {
38 "line": 1,
39 "column": 9
40 },
41 "end": {
42 "line": 1,
43 "column": 10
44 }
45 },
46 "range": [
47 9,
48 10
49 ],
50 "name": "f"
51 },
52 "generator": false,
53 "expression": false,
54 "params": [],
55 "body": {
56 "type": "BlockStatement",
57 "loc": {
58 "start": {
59 "line": 1,
60 "column": 13
61 },
62 "end": {
63 "line": 3,
64 "column": 1
65 }
66 },
67 "range": [
68 13,
69 40
70 ],
71 "body": [
72 {
73 "type": "VariableDeclaration",
74 "loc": {
75 "start": {
76 "line": 2,
77 "column": 4
78 },
79 "end": {
80 "line": 2,
81 "column": 23
82 }
83 },
84 "range": [
85 19,
86 38
87 ],
88 "declarations": [
89 {
90 "type": "VariableDeclarator",
91 "loc": {
92 "start": {
93 "line": 2,
94 "column": 8
95 },
96 "end": {
97 "line": 2,
98 "column": 22
99 }
100 },
101 "range": [
102 23,
103 37
104 ],
105 "id": {
106 "type": "Identifier",
107 "loc": {
108 "start": {
109 "line": 2,
110 "column": 8
111 },
112 "end": {
113 "line": 2,
114 "column": 9
115 }
116 },
117 "range": [
118 23,
119 24
120 ],
121 "name": "x"
122 },
123 "init": {
124 "type": "MetaProperty",
125 "loc": {
126 "start": {
127 "line": 2,
128 "column": 12
129 },
130 "end": {
131 "line": 2,
132 "column": 22
133 }
134 },
135 "range": [
136 27,
137 37
138 ],
139 "meta": {
140 "type": "Identifier",
141 "loc": {
142 "start": {
143 "line": 2,
144 "column": 12
145 },
146 "end": {
147 "line": 2,
148 "column": 15
149 }
150 },
151 "range": [
152 27,
153 30
154 ],
155 "name": "new"
156 },
157 "property": {
158 "type": "Identifier",
159 "loc": {
160 "start": {
161 "line": 2,
162 "column": 16
163 },
164 "end": {
165 "line": 2,
166 "column": 22
167 }
168 },
169 "range": [
170 31,
171 37
172 ],
173 "name": "target"
174 }
175 }
176 }
177 ],
178 "kind": "var"
179 }
180 ]
181 }
182 }
183 ],
184 "sourceType": "script",
185 "tokens": [
186 {
187 "type": "Keyword",
188 "value": "function",
189 "loc": {
190 "start": {
191 "line": 1,
192 "column": 0
193 },
194 "end": {
195 "line": 1,
196 "column": 8
197 }
198 },
199 "range": [
200 0,
201 8
202 ]
203 },
204 {
205 "type": "Identifier",
206 "value": "f",
207 "loc": {
208 "start": {
209 "line": 1,
210 "column": 9
211 },
212 "end": {
213 "line": 1,
214 "column": 10
215 }
216 },
217 "range": [
218 9,
219 10
220 ]
221 },
222 {
223 "type": "Punctuator",
224 "value": "(",
225 "loc": {
226 "start": {
227 "line": 1,
228 "column": 10
229 },
230 "end": {
231 "line": 1,
232 "column": 11
233 }
234 },
235 "range": [
236 10,
237 11
238 ]
239 },
240 {
241 "type": "Punctuator",
242 "value": ")",
243 "loc": {
244 "start": {
245 "line": 1,
246 "column": 11
247 },
248 "end": {
249 "line": 1,
250 "column": 12
251 }
252 },
253 "range": [
254 11,
255 12
256 ]
257 },
258 {
259 "type": "Punctuator",
260 "value": "{",
261 "loc": {
262 "start": {
263 "line": 1,
264 "column": 13
265 },
266 "end": {
267 "line": 1,
268 "column": 14
269 }
270 },
271 "range": [
272 13,
273 14
274 ]
275 },
276 {
277 "type": "Keyword",
278 "value": "var",
279 "loc": {
280 "start": {
281 "line": 2,
282 "column": 4
283 },
284 "end": {
285 "line": 2,
286 "column": 7
287 }
288 },
289 "range": [
290 19,
291 22
292 ]
293 },
294 {
295 "type": "Identifier",
296 "value": "x",
297 "loc": {
298 "start": {
299 "line": 2,
300 "column": 8
301 },
302 "end": {
303 "line": 2,
304 "column": 9
305 }
306 },
307 "range": [
308 23,
309 24
310 ]
311 },
312 {
313 "type": "Punctuator",
314 "value": "=",
315 "loc": {
316 "start": {
317 "line": 2,
318 "column": 10
319 },
320 "end": {
321 "line": 2,
322 "column": 11
323 }
324 },
325 "range": [
326 25,
327 26
328 ]
329 },
330 {
331 "type": "Keyword",
332 "value": "new",
333 "loc": {
334 "start": {
335 "line": 2,
336 "column": 12
337 },
338 "end": {
339 "line": 2,
340 "column": 15
341 }
342 },
343 "range": [
344 27,
345 30
346 ]
347 },
348 {
349 "type": "Punctuator",
350 "value": ".",
351 "loc": {
352 "start": {
353 "line": 2,
354 "column": 15
355 },
356 "end": {
357 "line": 2,
358 "column": 16
359 }
360 },
361 "range": [
362 30,
363 31
364 ]
365 },
366 {
367 "type": "Identifier",
368 "value": "target",
369 "loc": {
370 "start": {
371 "line": 2,
372 "column": 16
373 },
374 "end": {
375 "line": 2,
376 "column": 22
377 }
378 },
379 "range": [
380 31,
381 37
382 ]
383 },
384 {
385 "type": "Punctuator",
386 "value": ";",
387 "loc": {
388 "start": {
389 "line": 2,
390 "column": 22
391 },
392 "end": {
393 "line": 2,
394 "column": 23
395 }
396 },
397 "range": [
398 37,
399 38
400 ]
401 },
402 {
403 "type": "Punctuator",
404 "value": "}",
405 "loc": {
406 "start": {
407 "line": 3,
408 "column": 0
409 },
410 "end": {
411 "line": 3,
412 "column": 1
413 }
414 },
415 "range": [
416 39,
417 40
418 ]
419 }
420 ]
421 };