Debian Codegraph @

tests/fixtures/ecma-version/6/templateStrings/deeply-nested.result.js

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