Skip to content

Commit 5896f7e

Browse files
committedMay 27, 2021
Update test fixtures
1 parent 5f6f51a commit 5896f7e

File tree

312 files changed

+14660
-14615
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

312 files changed

+14660
-14615
lines changed
 

‎tests/fixtures/parser/ast/attr01-output.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,6 @@
340340
"attributes": [
341341
{
342342
"type": "SvelteAttribute",
343-
"boolean": false,
344343
"key": {
345344
"type": "SvelteName",
346345
"name": "data-text",
@@ -359,6 +358,7 @@
359358
}
360359
}
361360
},
361+
"boolean": false,
362362
"value": [
363363
{
364364
"type": "SvelteMustacheTag",
@@ -555,8 +555,8 @@
555555
}
556556
}
557557
],
558-
"comments": [],
559558
"sourceType": "module",
559+
"comments": [],
560560
"tokens": [
561561
{
562562
"type": "Punctuator",

‎tests/fixtures/parser/ast/await01-output.json

+99-99
Original file line numberDiff line numberDiff line change
@@ -185,44 +185,6 @@
185185
},
186186
{
187187
"type": "SvelteAwaitBlock",
188-
"catch": {
189-
"type": "SvelteAwaitCatchBlock",
190-
"children": [
191-
{
192-
"type": "SvelteText",
193-
"value": "\n",
194-
"range": [
195-
87,
196-
88
197-
],
198-
"loc": {
199-
"start": {
200-
"line": 7,
201-
"column": 8
202-
},
203-
"end": {
204-
"line": 8,
205-
"column": 0
206-
}
207-
}
208-
}
209-
],
210-
"error": null,
211-
"range": [
212-
79,
213-
88
214-
],
215-
"loc": {
216-
"start": {
217-
"line": 7,
218-
"column": 0
219-
},
220-
"end": {
221-
"line": 8,
222-
"column": 0
223-
}
224-
}
225-
},
226188
"expression": {
227189
"type": "Identifier",
228190
"name": "expression",
@@ -280,6 +242,7 @@
280242
},
281243
"then": {
282244
"type": "SvelteAwaitThenBlock",
245+
"value": null,
283246
"children": [
284247
{
285248
"type": "SvelteText",
@@ -300,7 +263,6 @@
300263
}
301264
}
302265
],
303-
"value": null,
304266
"range": [
305267
71,
306268
79
@@ -316,6 +278,44 @@
316278
}
317279
}
318280
},
281+
"catch": {
282+
"type": "SvelteAwaitCatchBlock",
283+
"error": null,
284+
"children": [
285+
{
286+
"type": "SvelteText",
287+
"value": "\n",
288+
"range": [
289+
87,
290+
88
291+
],
292+
"loc": {
293+
"start": {
294+
"line": 7,
295+
"column": 8
296+
},
297+
"end": {
298+
"line": 8,
299+
"column": 0
300+
}
301+
}
302+
}
303+
],
304+
"range": [
305+
79,
306+
88
307+
],
308+
"loc": {
309+
"start": {
310+
"line": 7,
311+
"column": 0
312+
},
313+
"end": {
314+
"line": 8,
315+
"column": 0
316+
}
317+
}
318+
},
319319
"range": [
320320
51,
321321
96
@@ -351,7 +351,6 @@
351351
},
352352
{
353353
"type": "SvelteAwaitBlock",
354-
"catch": null,
355354
"expression": {
356355
"type": "Identifier",
357356
"name": "expression",
@@ -409,6 +408,7 @@
409408
},
410409
"then": {
411410
"type": "SvelteAwaitThenBlock",
411+
"value": null,
412412
"children": [
413413
{
414414
"type": "SvelteText",
@@ -429,7 +429,6 @@
429429
}
430430
}
431431
],
432-
"value": null,
433432
"range": [
434433
118,
435434
126
@@ -445,6 +444,7 @@
445444
}
446445
}
447446
},
447+
"catch": null,
448448
"range": [
449449
98,
450450
134
@@ -480,7 +480,6 @@
480480
},
481481
{
482482
"type": "SvelteAwaitBlock",
483-
"catch": null,
484483
"expression": {
485484
"type": "Identifier",
486485
"name": "expression",
@@ -502,6 +501,24 @@
502501
"pending": null,
503502
"then": {
504503
"type": "SvelteAwaitThenBlock",
504+
"value": {
505+
"type": "Identifier",
506+
"name": "name",
507+
"range": [
508+
160,
509+
164
510+
],
511+
"loc": {
512+
"start": {
513+
"line": 14,
514+
"column": 24
515+
},
516+
"end": {
517+
"line": 14,
518+
"column": 28
519+
}
520+
}
521+
},
505522
"children": [
506523
{
507524
"type": "SvelteText",
@@ -522,24 +539,6 @@
522539
}
523540
}
524541
],
525-
"value": {
526-
"type": "Identifier",
527-
"name": "name",
528-
"range": [
529-
160,
530-
164
531-
],
532-
"loc": {
533-
"start": {
534-
"line": 14,
535-
"column": 24
536-
},
537-
"end": {
538-
"line": 14,
539-
"column": 28
540-
}
541-
}
542-
},
543542
"range": [
544543
136,
545544
166
@@ -555,6 +554,7 @@
555554
}
556555
}
557556
},
557+
"catch": null,
558558
"range": [
559559
136,
560560
174
@@ -590,8 +590,46 @@
590590
},
591591
{
592592
"type": "SvelteAwaitBlock",
593+
"expression": {
594+
"type": "Identifier",
595+
"name": "expression",
596+
"range": [
597+
184,
598+
194
599+
],
600+
"loc": {
601+
"start": {
602+
"line": 17,
603+
"column": 8
604+
},
605+
"end": {
606+
"line": 17,
607+
"column": 18
608+
}
609+
}
610+
},
611+
"pending": null,
612+
"then": null,
593613
"catch": {
594614
"type": "SvelteAwaitCatchBlock",
615+
"error": {
616+
"type": "Identifier",
617+
"name": "name",
618+
"range": [
619+
201,
620+
205
621+
],
622+
"loc": {
623+
"start": {
624+
"line": 17,
625+
"column": 25
626+
},
627+
"end": {
628+
"line": 17,
629+
"column": 29
630+
}
631+
}
632+
},
595633
"children": [
596634
{
597635
"type": "SvelteText",
@@ -612,24 +650,6 @@
612650
}
613651
}
614652
],
615-
"error": {
616-
"type": "Identifier",
617-
"name": "name",
618-
"range": [
619-
201,
620-
205
621-
],
622-
"loc": {
623-
"start": {
624-
"line": 17,
625-
"column": 25
626-
},
627-
"end": {
628-
"line": 17,
629-
"column": 29
630-
}
631-
}
632-
},
633653
"range": [
634654
176,
635655
207
@@ -645,26 +665,6 @@
645665
}
646666
}
647667
},
648-
"expression": {
649-
"type": "Identifier",
650-
"name": "expression",
651-
"range": [
652-
184,
653-
194
654-
],
655-
"loc": {
656-
"start": {
657-
"line": 17,
658-
"column": 8
659-
},
660-
"end": {
661-
"line": 17,
662-
"column": 18
663-
}
664-
}
665-
},
666-
"pending": null,
667-
"then": null,
668668
"range": [
669669
176,
670670
215
@@ -681,8 +681,8 @@
681681
}
682682
}
683683
],
684-
"comments": [],
685684
"sourceType": "module",
685+
"comments": [],
686686
"tokens": [
687687
{
688688
"type": "Punctuator",

0 commit comments

Comments
 (0)