Debian Codegraph @

tests/fixtures/ecma-version/6/templateStrings/multi-line-template-string.result.js

raw
1 export default {
2 "type": "Program",
3 "loc": {
4 "start": {
5 "line": 1,
6 "column": 0
7 },
8 "end": {
9 "line": 6,
10 "column": 13
11 }
12 },
13 "range": [
14 0,
15 111
16 ],
17 "body": [
18 {
19 "type": "ExpressionStatement",
20 "loc": {
21 "start": {
22 "line": 1,
23 "column": 0
24 },
25 "end": {
26 "line": 6,
27 "column": 13
28 }
29 },
30 "range": [
31 0,
32 111
33 ],
34 "expression": {
35 "type": "TemplateLiteral",
36 "loc": {
37 "start": {
38 "line": 1,
39 "column": 0
40 },
41 "end": {
42 "line": 6,
43 "column": 12
44 }
45 },
46 "range": [
47 0,
48 110
49 ],
50 "expressions": [],
51 "quasis": [
52 {
53 "type": "TemplateElement",
54 "loc": {
55 "start": {
56 "line": 1,
57 "column": 0
58 },
59 "end": {
60 "line": 6,
61 "column": 12
62 }
63 },
64 "range": [
65 0,
66 110
67 ],
68 "value": {
69 "raw": "The last man on Earth\n sat alone in a room.\n There was\n a knock\n on the\n door...",
70 "cooked": "The last man on Earth\n sat alone in a room.\n There was\n a knock\n on the\n door..."
71 },
72 "tail": true
73 }
74 ]
75 }
76 }
77 ],
78 "sourceType": "script",
79 "tokens": [
80 {
81 "type": "Template",
82 "value": "`The last man on Earth\n sat alone in a room.\n There was\n a knock\n on the\n door...`",
83 "loc": {
84 "start": {
85 "line": 1,
86 "column": 0
87 },
88 "end": {
89 "line": 6,
90 "column": 12
91 }
92 },
93 "range": [
94 0,
95 110
96 ]
97 },
98 {
99 "type": "Punctuator",
100 "value": ";",
101 "loc": {
102 "start": {
103 "line": 6,
104 "column": 12
105 },
106 "end": {
107 "line": 6,
108 "column": 13
109 }
110 },
111 "range": [
112 110,
113 111
114 ]
115 }
116 ]
117 };