@@ -7,7 +7,7 @@ let x = ((let a = 1 in let b = 2 in fun pattern -> (\\"test\\" : int))
7
7
[@ns.braces ])
8
8
=====Errors=============================================
9
9
10
- File \\ "/napkinscript /tests/parsing/errors/expressions/ambiguousArrow.js\\ ", line 1, characters 8-21:
10
+ File \\ "/syntax /tests/parsing/errors/expressions/ambiguousArrow.js\\ ", line 1, characters 8-21:
11
11
12
12
13
13
[31m1[0m │ let a = [31mb:int => \\ "hi\\ "[0m
@@ -20,7 +20,7 @@ Did you mean to annotate the parameter type or the return type?
20
20
21
21
22
22
23
- File \\" /napkinscript /tests/parsing/errors/expressions/ambiguousArrow.js\\ " , line 6 , characters 2 - 23 :
23
+ File \\" /syntax /tests/parsing/errors/expressions/ambiguousArrow.js\\ " , line 6 , characters 2 - 23 :
24
24
25
25
26
26
4 │ let a = 1
@@ -43,7 +43,7 @@ exports[`array.js 1`] = `
43
43
let xs = x.map (fun key -> [|key;(predicates.(key))|])
44
44
=====Errors=============================================
45
45
46
- File \\ "/napkinscript /tests/parsing/errors/expressions/array.js\\ ", line 2, characters 43-44:
46
+ File \\ "/syntax /tests/parsing/errors/expressions/array.js\\ ", line 2, characters 43-44:
47
47
48
48
49
49
1 │ // missing ] before )
@@ -64,7 +64,7 @@ exports[`arrow.js 1`] = `
64
64
fun providerId -> ((let x = 1 in let b = 2 in x + b)[@ns.braces ]))
65
65
=====Errors=============================================
66
66
67
- File \\ "/napkinscript /tests/parsing/errors/expressions/arrow.js\\ ", line 1, characters 51-52:
67
+ File \\ "/syntax /tests/parsing/errors/expressions/arrow.js\\ ", line 1, characters 51-52:
68
68
69
69
70
70
[31m1[0m │ Object.keys(providers).reduce((elements, providerId] => {
@@ -105,7 +105,7 @@ let pipeline =
105
105
match scheduler with | Some -> [%napkinscript.exprhole ] | None -> ()
106
106
=====Errors=============================================
107
107
108
- File \\ "/napkinscript /tests/parsing/errors/expressions/block.js\\ ", line 14, characters 3-5:
108
+ File \\ "/syntax /tests/parsing/errors/expressions/block.js\\ ", line 14, characters 3-5:
109
109
110
110
111
111
12 │
@@ -118,7 +118,7 @@ File \\"/napkinscript/tests/parsing/errors/expressions/block.js\\", line 14, cha
118
118
Did you forget a \` )\` here?
119
119
120
120
121
- File \\ "/napkinscript /tests/parsing/errors/expressions/block.js\\ ", line 18, characters 24-26:
121
+ File \\ "/syntax /tests/parsing/errors/expressions/block.js\\ ", line 18, characters 24-26:
122
122
123
123
124
124
16 │
@@ -131,7 +131,7 @@ File \\"/napkinscript/tests/parsing/errors/expressions/block.js\\", line 18, cha
131
131
Did you forget a \` )\` here?
132
132
133
133
134
- File \\ "/napkinscript /tests/parsing/errors/expressions/block.js\\ ", line 22, characters 10-12:
134
+ File \\ "/syntax /tests/parsing/errors/expressions/block.js\\ ", line 22, characters 10-12:
135
135
136
136
137
137
20 │
@@ -143,7 +143,7 @@ File \\"/napkinscript/tests/parsing/errors/expressions/block.js\\", line 22, cha
143
143
Looks like there might be an expression missing here
144
144
145
145
146
- File \\" /napkinscript /tests/parsing/errors/expressions/block.js\\ " , line 26 , characters 6 - 8 :
146
+ File \\" /syntax /tests/parsing/errors/expressions/block.js\\ " , line 26 , characters 6 - 8 :
147
147
148
148
149
149
24 │ | Join (doc1 , doc2 ) =>
@@ -156,7 +156,7 @@ File \\"/napkinscript/tests/parsing/errors/expressions/block.js\\", line 26, cha
156
156
Did you forget a \` )\` here?
157
157
158
158
159
- File \\ "/napkinscript /tests/parsing/errors/expressions/block.js\\ ", line 30, characters 9-11:
159
+ File \\ "/syntax /tests/parsing/errors/expressions/block.js\\ ", line 30, characters 9-11:
160
160
161
161
162
162
28 │
@@ -181,7 +181,7 @@ let () = ((sideEffect1 (); sideEffect2 ())[@ns.braces ])
181
181
let () = ((let open Foo in let exception End in x ())[@ns.braces ])
182
182
=====Errors=============================================
183
183
184
- File \\ "/napkinscript /tests/parsing/errors/expressions/consecutive.ns\\ ", line 1, characters 22-23:
184
+ File \\ "/syntax /tests/parsing/errors/expressions/consecutive.ns\\ ", line 1, characters 22-23:
185
185
186
186
187
187
[31m1[0m │ let f = (a,b) => a + 3[31mb[0m;
@@ -191,7 +191,7 @@ File \\"/napkinscript/tests/parsing/errors/expressions/consecutive.ns\\", line 1
191
191
consecutive statements on a line must be separated by ' ;' or a newline
192
192
193
193
194
- File \\" /napkinscript /tests/parsing/errors/expressions/consecutive.ns\\ " , line 4 , characters 6 - 7 :
194
+ File \\" /syntax /tests/parsing/errors/expressions/consecutive.ns\\ " , line 4 , characters 6 - 7 :
195
195
196
196
197
197
2 │
@@ -203,7 +203,7 @@ File \\"/napkinscript/tests/parsing/errors/expressions/consecutive.ns\\", line 4
203
203
consecutive expressions on a line must be separated by ' ;' or a newline
204
204
205
205
206
- File \\" /napkinscript /tests/parsing/errors/expressions/consecutive.ns\\ " , line 8 , characters 15 - 27 :
206
+ File \\" /syntax /tests/parsing/errors/expressions/consecutive.ns\\ " , line 8 , characters 15 - 27 :
207
207
208
208
209
209
6 │
@@ -215,7 +215,7 @@ File \\"/napkinscript/tests/parsing/errors/expressions/consecutive.ns\\", line 8
215
215
consecutive expressions on a line must be separated by ' ;' or a newline
216
216
217
217
218
- File \\" /napkinscript /tests/parsing/errors/expressions/consecutive.ns\\ " , line 12 , characters 10 - 20 :
218
+ File \\" /syntax /tests/parsing/errors/expressions/consecutive.ns\\ " , line 12 , characters 10 - 20 :
219
219
220
220
221
221
10 │
@@ -237,7 +237,7 @@ let x = ((())[@ns.braces ])
237
237
let f a b = ((())[@ns.braces ])
238
238
=====Errors=============================================
239
239
240
- File \\ "/napkinscript /tests/parsing/errors/expressions/emptyBlock.js\\ ", line 1, characters 9-10:
240
+ File \\ "/syntax /tests/parsing/errors/expressions/emptyBlock.js\\ ", line 1, characters 9-10:
241
241
242
242
243
243
[31m1[0m │ let x = { [31m }[0m
@@ -247,7 +247,7 @@ File \\"/napkinscript/tests/parsing/errors/expressions/emptyBlock.js\\", line 1,
247
247
This let - binding misses an expression
248
248
249
249
250
- File \\" /napkinscript /tests/parsing/errors/expressions/emptyBlock.js\\ " , line 3 , characters 19 - 20 :
250
+ File \\" /syntax /tests/parsing/errors/expressions/emptyBlock.js\\ " , line 3 , characters 19 - 20 :
251
251
252
252
253
253
1 │ let x = {}
@@ -266,7 +266,7 @@ exports[`if.js 1`] = `
266
266
;;if match then let a = 1 in a + 1
267
267
=====Errors=============================================
268
268
269
- File \\ "/napkinscript /tests/parsing/errors/expressions/if.js\\ ", line 2, characters 10-16:
269
+ File \\ "/syntax /tests/parsing/errors/expressions/if.js\\ ", line 2, characters 10-16:
270
270
271
271
272
272
1 │ // missing brace below
@@ -287,7 +287,7 @@ exports[`misc.js 1`] = `
287
287
let x = ([%napkinscript.exprhole ]) + 1
288
288
=====Errors=============================================
289
289
290
- File \\ "/napkinscript /tests/parsing/errors/expressions/misc.js\\ ", line 1, characters 8-9:
290
+ File \\ "/syntax /tests/parsing/errors/expressions/misc.js\\ ", line 1, characters 8-9:
291
291
292
292
293
293
[31m1[0m │ let x = [31m_[0m + 1
@@ -306,7 +306,7 @@ let newWrapper = { updateF; updateF2; value = (f xWrapper.currentValue) }
306
306
let record = { field = ([% napkinscript .exprhole ]) }
307
307
=====Errors=============================================
308
308
309
- File \\ "/napkinscript /tests/parsing/errors/expressions/record.js\\ ", line 2, characters 9-17:
309
+ File \\ "/syntax /tests/parsing/errors/expressions/record.js\\ ", line 2, characters 9-17:
310
310
311
311
312
312
1 │ let newWrapper = {
@@ -318,7 +318,7 @@ File \\"/napkinscript/tests/parsing/errors/expressions/record.js\\", line 2, cha
318
318
Did you forget a \` ,\` here?
319
319
320
320
321
- File \\ "/napkinscript /tests/parsing/errors/expressions/record.js\\ ", line 8, characters 9-18:
321
+ File \\ "/syntax /tests/parsing/errors/expressions/record.js\\ ", line 8, characters 9-18:
322
322
323
323
324
324
6 │
@@ -331,7 +331,7 @@ File \\"/napkinscript/tests/parsing/errors/expressions/record.js\\", line 8, cha
331
331
Did you forget a \` :\` here?
332
332
333
333
334
- File \\ "/napkinscript /tests/parsing/errors/expressions/record.js\\ ", line 13, characters 8-13:
334
+ File \\ "/syntax /tests/parsing/errors/expressions/record.js\\ ", line 13, characters 8-13:
335
335
336
336
337
337
11 │
@@ -355,7 +355,7 @@ exports[`setField.js 1`] = `
355
355
else sideEffect ()
356
356
=====Errors=============================================
357
357
358
- File \\ "/napkinscript /tests/parsing/errors/expressions/setField.js\\ ", line 4, characters 29-31:
358
+ File \\ "/syntax /tests/parsing/errors/expressions/setField.js\\ ", line 4, characters 29-31:
359
359
360
360
361
361
2 │ let a = 1
@@ -376,7 +376,7 @@ exports[`taggedTemplateLiterals.js 1`] = `
376
376
;;{ | null | }
377
377
=====Errors=============================================
378
378
379
- File \\ "/napkinscript /tests/parsing/errors/expressions/taggedTemplateLiterals.js\\ ", line 1, characters 0-5:
379
+ File \\ "/syntax /tests/parsing/errors/expressions/taggedTemplateLiterals.js\\ ", line 1, characters 0-5:
380
380
381
381
382
382
[31m1[0m │ [31mfoo()[0m\` null\`
@@ -393,7 +393,7 @@ exports[`try.js 1`] = `
393
393
let parsedPayload = try Js.Json.parseExn response with | _ -> Js.Json.null
394
394
=====Errors=============================================
395
395
396
- File \\ "/napkinscript /tests/parsing/errors/expressions/try.js\\ ", line 2, characters 36-38:
396
+ File \\ "/syntax /tests/parsing/errors/expressions/try.js\\ ", line 2, characters 36-38:
397
397
398
398
399
399
1 │ let parsedPayload =
@@ -415,7 +415,7 @@ let x = ((let a = 1 in let b = 2 in (a + b : int))[@ns.braces ])
415
415
let x = (\\ "hi\\ " : string)
416
416
=====Errors=============================================
417
417
418
- File \\ "/napkinscript /tests/parsing/errors/expressions/unexpectedConstraint.js\\ ", line 4, characters 2-13:
418
+ File \\ "/syntax /tests/parsing/errors/expressions/unexpectedConstraint.js\\ ", line 4, characters 2-13:
419
419
420
420
421
421
2 │ let a = 1
@@ -429,7 +429,7 @@ Expressions with type constraints need to be wrapped in parens:
429
429
430
430
431
431
432
- File \\ "/napkinscript /tests/parsing/errors/expressions/unexpectedConstraint.js\\ ", line 7, characters 8-20:
432
+ File \\ "/syntax /tests/parsing/errors/expressions/unexpectedConstraint.js\\ ", line 7, characters 8-20:
433
433
434
434
435
435
5 │ }
0 commit comments