Debian Codegraph @

tests/fixtures/ecma-version/6/templateStrings/tagged-no-placeholders.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": 9
11 }
12 },
13 "range": [
14 0,
15 9
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": 9
28 }
29 },
30 "range": [
31 0,
32 9
33 ],
34 "expression": {
35 "type": "TaggedTemplateExpression",
36 "loc": {
37 "start": {
38 "line": 1,
39 "column": 0
40 },
41 "end": {
42 "line": 1,
43 "column": 8
44 }
45 },
46 "range": [
47 0,
48 8
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": "foo"
67 },
68 "quasi": {
69 "type": "TemplateLiteral",
70 "loc": {
71 "start": {
72 "line": 1,
73 "column": 3
74 },
75 "end": {
76 "line": 1,
77 "column": 8
78 }
79 },
80 "range": [
81 3,
82 8
83 ],
84 "expressions": [],
85 "quasis": [
86 {
87 "type": "TemplateElement",
88 "loc": {
89 "start": {
90 "line": 1,
91 "column": 3
92 },
93 "end": {
94 "line": 1,
95 "column": 8
96 }
97 },
98 "range": [
99 3,
100 8
101 ],
102 "value": {
103 "raw": "foo",
104 "cooked": "foo"
105 },
106 "tail": true
107 }
108 ]
109 }
110 }
111 }
112 ],
113 "sourceType": "script",
114 "tokens": [
115 {
116 "type": "Identifier",
117 "value": "foo",
118 "loc": {
119 "start": {
120 "line": 1,
121 "column": 0
122 },
123 "end": {
124 "line": 1,
125 "column": 3
126 }
127 },
128 "range": [
129 0,
130 3
131 ]
132 },
133 {
134 "type": "Template",
135 "value": "`foo`",
136 "loc": {
137 "start": {
138 "line": 1,
139 "column": 3
140 },
141 "end": {
142 "line": 1,
143 "column": 8
144 }
145 },
146 "range": [
147 3,
148 8
149 ]
150 },
151 {
152 "type": "Punctuator",
153 "value": ";",
154 "loc": {
155 "start": {
156 "line": 1,
157 "column": 8
158 },
159 "end": {
160 "line": 1,
161 "column": 9
162 }
163 },
164 "range": [
165 8,
166 9
167 ]
168 }
169 ]
170 };