@@ -7,11 +7,8 @@ exports[`transform in strip-only mode should not emit 'Caused by: failed to pars
7
7
" endLine" : 1 ,
8
8
" filename" : " test.ts" ,
9
9
" message" : " await isn't allowed in non-async function" ,
10
- " snippet" : "
11
-
12
- function foo() { await Promise .resolve (1 ); }
13
- ^^^^^
14
-
10
+ " snippet" : " function foo() { await Promise.resolve(1); }
11
+ ^^^^^
15
12
" ,
16
13
" startColumn" : 17 ,
17
14
" startLine" : 1 ,
@@ -51,11 +48,8 @@ exports[`transform in strip-only mode should report correct error for syntax err
51
48
" endLine" : 1 ,
52
49
" filename" : " test.ts" ,
53
50
" message" : " Expected ';', '}' or <eof>" ,
54
- " snippet" : "
55
-
56
- function foo() { invalid syntax }
57
- ^^^^^^
58
-
51
+ " snippet" : " function foo() { invalid syntax }
52
+ ^^^^^^
59
53
" ,
60
54
" startColumn" : 25 ,
61
55
" startLine" : 1 ,
@@ -69,12 +63,9 @@ exports[`transform in strip-only mode should report correct error for unsupporte
69
63
" endLine" : 3 ,
70
64
" filename" : " test.ts" ,
71
65
" message" : " TypeScript enum is not supported in strip-only mode" ,
72
- " snippet" : "
73
-
74
- > enum Foo {
75
- a , b
76
- > }
77
-
66
+ " snippet" : " > enum Foo {
67
+ a , b
68
+ > }
78
69
",
79
70
"startColumn": 0,
80
71
"startLine": 1,
@@ -141,11 +132,8 @@ exports[`transform in strip-only mode should throw an error when it encounters a
141
132
" endLine" : 1 ,
142
133
" filename" : " test.ts" ,
143
134
" message" : " \` module\` keyword is not supported. Use \` namespace\` instead." ,
144
- " snippet" : "
145
-
146
- module foo { }
147
- ^^^^^^^^^^
148
-
135
+ " snippet" : " module foo { }
136
+ ^^^^^^^^^^
149
137
" ,
150
138
" startColumn" : 0 ,
151
139
" startLine" : 1 ,
@@ -159,11 +147,8 @@ exports[`transform in strip-only mode should throw an error when it encounters a
159
147
" endLine" : 1 ,
160
148
" filename" : " test.ts" ,
161
149
" message" : " \` module\` keyword is not supported. Use \` namespace\` instead." ,
162
- " snippet" : "
163
-
164
- declare module foo { }
165
- ^^^^^^^^^^
166
-
150
+ " snippet" : " declare module foo { }
151
+ ^^^^^^^^^^
167
152
" ,
168
153
" startColumn" : 8 ,
169
154
" startLine" : 1 ,
@@ -177,11 +162,8 @@ exports[`transform in strip-only mode should throw an error when it encounters a
177
162
" endLine" : 1 ,
178
163
" filename" : " test.ts" ,
179
164
" message" : " TypeScript namespace declaration is not supported in strip-only mode" ,
180
- " snippet" : "
181
-
182
- namespace Foo { export const m = 1; }
183
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
184
-
165
+ " snippet" : " namespace Foo { export const m = 1; }
166
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
185
167
" ,
186
168
" startColumn" : 0 ,
187
169
" startLine" : 1 ,
@@ -195,11 +177,8 @@ exports[`transform in strip-only mode should throw an error when it encounters a
195
177
" endLine" : 1 ,
196
178
" filename" : " test.ts" ,
197
179
" message" : " TypeScript enum is not supported in strip-only mode" ,
198
- " snippet" : "
199
-
200
- enum Foo {}
201
- ^^^^^^^^^^^
202
-
180
+ " snippet" : " enum Foo {}
181
+ ^^^^^^^^^^^
203
182
" ,
204
183
" startColumn" : 0 ,
205
184
" startLine" : 1 ,
@@ -213,11 +192,8 @@ exports[`transform in transform mode shoud throw an object even with deprecatedT
213
192
" endLine" : 1 ,
214
193
" filename" : " <anon>" ,
215
194
" message" : " \` module\` keyword is not supported. Use \` namespace\` instead." ,
216
- " snippet" : "
217
-
218
- module F { export type x = number }
219
- ^^^^^^^^
220
-
195
+ " snippet" : " module F { export type x = number }
196
+ ^^^^^^^^
221
197
" ,
222
198
" startColumn" : 0 ,
223
199
" startLine" : 1 ,
@@ -231,11 +207,8 @@ exports[`transform in transform mode should throw an error when it encounters a
231
207
" endLine" : 1 ,
232
208
" filename" : " test.ts" ,
233
209
" message" : " \` module\` keyword is not supported. Use \` namespace\` instead." ,
234
- " snippet" : "
235
-
236
- declare module foo { }
237
- ^^^^^^^^^^
238
-
210
+ " snippet" : " declare module foo { }
211
+ ^^^^^^^^^^
239
212
" ,
240
213
" startColumn" : 8 ,
241
214
" startLine" : 1 ,
@@ -249,11 +222,8 @@ exports[`transform in transform mode should throw an error when it encounters a
249
222
" endLine" : 1 ,
250
223
" filename" : " test.ts" ,
251
224
" message" : " \` module\` keyword is not supported. Use \` namespace\` instead." ,
252
- " snippet" : "
253
-
254
- module foo { }
255
- ^^^^^^^^^^
256
-
225
+ " snippet" : " module foo { }
226
+ ^^^^^^^^^^
257
227
" ,
258
228
" startColumn" : 0 ,
259
229
" startLine" : 1 ,
0 commit comments