From c5dd882c5d77bac57a26840e63769e8857b1e205 Mon Sep 17 00:00:00 2001 From: tanhauhau Date: Sun, 27 Jun 2021 11:19:01 +0800 Subject: [PATCH] fix tabs --- .../samples/const-tag-hoisting/main.svelte | 4 ++-- .../samples/const-tag-ordering/main.svelte | 4 ++-- .../samples/const-tag-conflict-1/errors.json | 16 +++++++++------- .../samples/const-tag-conflict-2/errors.json | 16 +++++++++------- .../samples/const-tag-cyclical/errors.json | 16 +++++++++------- .../samples/const-tag-placement-1/errors.json | 16 +++++++++------- .../samples/const-tag-placement-2/errors.json | 16 +++++++++------- .../samples/const-tag-placement-3/errors.json | 16 +++++++++------- .../samples/const-tag-readonly-1/errors.json | 16 +++++++++------- .../samples/const-tag-readonly-2/errors.json | 16 +++++++++------- 10 files changed, 76 insertions(+), 60 deletions(-) diff --git a/test/runtime/samples/const-tag-hoisting/main.svelte b/test/runtime/samples/const-tag-hoisting/main.svelte index 7759e9998eda..49fce93274ce 100644 --- a/test/runtime/samples/const-tag-hoisting/main.svelte +++ b/test/runtime/samples/const-tag-hoisting/main.svelte @@ -6,6 +6,6 @@
{n} ^ 4 = {hypercubed}
{@const squared = n * n} - {@const cubed = squared * n} - {@const hypercubed = cubed * n} + {@const cubed = squared * n} + {@const hypercubed = cubed * n} {/each} \ No newline at end of file diff --git a/test/runtime/samples/const-tag-ordering/main.svelte b/test/runtime/samples/const-tag-ordering/main.svelte index 7759e9998eda..49fce93274ce 100644 --- a/test/runtime/samples/const-tag-ordering/main.svelte +++ b/test/runtime/samples/const-tag-ordering/main.svelte @@ -6,6 +6,6 @@
{n} ^ 4 = {hypercubed}
{@const squared = n * n} - {@const cubed = squared * n} - {@const hypercubed = cubed * n} + {@const cubed = squared * n} + {@const hypercubed = cubed * n} {/each} \ No newline at end of file diff --git a/test/validator/samples/const-tag-conflict-1/errors.json b/test/validator/samples/const-tag-conflict-1/errors.json index 1ce17c84965a..59c72eccaf68 100644 --- a/test/validator/samples/const-tag-conflict-1/errors.json +++ b/test/validator/samples/const-tag-conflict-1/errors.json @@ -1,7 +1,9 @@ -[{ - "code": "invalid-const-declaration", - "message": "'a' has already been declared", - "start": { "line": 7, "column": 2, "character": 84 }, - "end": { "line": 7, "column": 19, "character": 101 }, - "pos": 84 -}] +[ + { + "code": "invalid-const-declaration", + "message": "'a' has already been declared", + "start": { "line": 7, "column": 2, "character": 84 }, + "end": { "line": 7, "column": 19, "character": 101 }, + "pos": 84 + } +] diff --git a/test/validator/samples/const-tag-conflict-2/errors.json b/test/validator/samples/const-tag-conflict-2/errors.json index b3cd991301c1..11e25350913e 100644 --- a/test/validator/samples/const-tag-conflict-2/errors.json +++ b/test/validator/samples/const-tag-conflict-2/errors.json @@ -1,7 +1,9 @@ -[{ - "code": "invalid-const-declaration", - "message": "'item' has already been declared", - "start": { "line": 6, "column": 2, "character": 64 }, - "end": { "line": 6, "column": 21, "character": 83 }, - "pos": 64 -}] +[ + { + "code": "invalid-const-declaration", + "message": "'item' has already been declared", + "start": { "line": 6, "column": 2, "character": 64 }, + "end": { "line": 6, "column": 21, "character": 83 }, + "pos": 64 + } +] diff --git a/test/validator/samples/const-tag-cyclical/errors.json b/test/validator/samples/const-tag-cyclical/errors.json index 4b7d6f08ca9e..ed15a7f95a1a 100644 --- a/test/validator/samples/const-tag-cyclical/errors.json +++ b/test/validator/samples/const-tag-cyclical/errors.json @@ -1,7 +1,9 @@ -[{ - "code": "cyclical-constant-tags", - "message": "Cyclical dependency detected: b → c → b", - "start": { "line": 6, "column": 2, "character": 61 }, - "end": { "line": 6, "column": 20, "character": 79 }, - "pos": 61 -}] +[ + { + "code": "cyclical-constant-tags", + "message": "Cyclical dependency detected: b → c → b", + "start": { "line": 6, "column": 2, "character": 61 }, + "end": { "line": 6, "column": 20, "character": 79 }, + "pos": 61 + } +] diff --git a/test/validator/samples/const-tag-placement-1/errors.json b/test/validator/samples/const-tag-placement-1/errors.json index f75cd2cdcf00..96c661cae3a1 100644 --- a/test/validator/samples/const-tag-placement-1/errors.json +++ b/test/validator/samples/const-tag-placement-1/errors.json @@ -1,7 +1,9 @@ -[{ - "code": "invalid-const-placement", - "message": "{@const} must be the immediate child of {#each}, {:then}, {:catch}, and ", - "start": { "line": 5, "column": 0, "character": 36 }, - "end": { "line": 5, "column": 18, "character": 54 }, - "pos": 36 -}] +[ + { + "code": "invalid-const-placement", + "message": "{@const} must be the immediate child of {#each}, {:then}, {:catch}, and ", + "start": { "line": 5, "column": 0, "character": 36 }, + "end": { "line": 5, "column": 18, "character": 54 }, + "pos": 36 + } +] diff --git a/test/validator/samples/const-tag-placement-2/errors.json b/test/validator/samples/const-tag-placement-2/errors.json index 6240e8d0423d..89d3cce34139 100644 --- a/test/validator/samples/const-tag-placement-2/errors.json +++ b/test/validator/samples/const-tag-placement-2/errors.json @@ -1,7 +1,9 @@ -[{ - "code": "invalid-const-placement", - "message": "{@const} must be the immediate child of {#each}, {:then}, {:catch}, and ", - "start": { "line": 6, "column": 2, "character": 46 }, - "end": { "line": 6, "column": 20, "character": 64 }, - "pos": 46 -}] +[ + { + "code": "invalid-const-placement", + "message": "{@const} must be the immediate child of {#each}, {:then}, {:catch}, and ", + "start": { "line": 6, "column": 2, "character": 46 }, + "end": { "line": 6, "column": 20, "character": 64 }, + "pos": 46 + } +] diff --git a/test/validator/samples/const-tag-placement-3/errors.json b/test/validator/samples/const-tag-placement-3/errors.json index 7c137784e4a9..332d21c131d3 100644 --- a/test/validator/samples/const-tag-placement-3/errors.json +++ b/test/validator/samples/const-tag-placement-3/errors.json @@ -1,7 +1,9 @@ -[{ - "code": "invalid-const-placement", - "message": "{@const} must be the immediate child of {#each}, {:then}, {:catch}, and ", - "start": { "line": 7, "column": 4, "character": 63 }, - "end": { "line": 7, "column": 18, "character": 77 }, - "pos": 63 -}] +[ + { + "code": "invalid-const-placement", + "message": "{@const} must be the immediate child of {#each}, {:then}, {:catch}, and ", + "start": { "line": 7, "column": 4, "character": 63 }, + "end": { "line": 7, "column": 18, "character": 77 }, + "pos": 63 + } +] diff --git a/test/validator/samples/const-tag-readonly-1/errors.json b/test/validator/samples/const-tag-readonly-1/errors.json index 4d12ca3e1a15..8a9e12520633 100644 --- a/test/validator/samples/const-tag-readonly-1/errors.json +++ b/test/validator/samples/const-tag-readonly-1/errors.json @@ -1,7 +1,9 @@ -[{ - "code": "invalid-const-update", - "message": "'b' is declared using {@const ...} and it is read-only", - "start": { "line": 7, "column": 26, "character": 106 }, - "end": { "line": 7, "column": 30, "character": 110 }, - "pos": 106 -}] +[ + { + "code": "invalid-const-update", + "message": "'b' is declared using {@const ...} and it is read-only", + "start": { "line": 7, "column": 26, "character": 106 }, + "end": { "line": 7, "column": 30, "character": 110 }, + "pos": 106 + } +] diff --git a/test/validator/samples/const-tag-readonly-2/errors.json b/test/validator/samples/const-tag-readonly-2/errors.json index 3390ca5ed33a..746a21e86ae7 100644 --- a/test/validator/samples/const-tag-readonly-2/errors.json +++ b/test/validator/samples/const-tag-readonly-2/errors.json @@ -1,7 +1,9 @@ -[{ - "code": "invalid-binding", - "message": "Cannot bind to a variable declared with {@const ...}", - "start": { "line": 7, "column": 9, "character": 89 }, - "end": { "line": 7, "column": 23, "character": 103 }, - "pos": 89 -}] +[ + { + "code": "invalid-binding", + "message": "Cannot bind to a variable declared with {@const ...}", + "start": { "line": 7, "column": 9, "character": 89 }, + "end": { "line": 7, "column": 23, "character": 103 }, + "pos": 89 + } +]