-
-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: enhance precompile blank for parser error workaround (#2173)
- Loading branch information
1 parent
582b76a
commit 4424524
Showing
7 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
packages/svelte2tsx/test/htmlx2jsx/samples/editing-bracket/expected.error.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "ParseError", | ||
"code": "parse-error", | ||
"start": { | ||
"line": 1, | ||
"column": 26, | ||
"character": 26 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"column": 26, | ||
"character": 26 | ||
}, | ||
"pos": 26, | ||
"frame": "1: {someRecord[anotherRecord.]}\n ^" | ||
} |
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/htmlx2jsx/samples/editing-bracket/expectedv2.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
someRecord[anotherRecord.]; |
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/htmlx2jsx/samples/editing-bracket/input.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{someRecord[anotherRecord.]} |
16 changes: 16 additions & 0 deletions
16
packages/svelte2tsx/test/htmlx2jsx/samples/editing-parentheses/expected.error.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "ParseError", | ||
"code": "parse-error", | ||
"start": { | ||
"line": 1, | ||
"column": 16, | ||
"character": 16 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"column": 16, | ||
"character": 16 | ||
}, | ||
"pos": 16, | ||
"frame": "1: {console.log(''.)}\n ^\n2: \n3: {#await Promise.resolve(''.)}" | ||
} |
7 changes: 7 additions & 0 deletions
7
packages/svelte2tsx/test/htmlx2jsx/samples/editing-parentheses/expectedv2.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
console.log(''.); | ||
|
||
{ | ||
|
||
const $$_value = await (Promise.resolve(''.));{ const value = $$_value; | ||
|
||
}} |
7 changes: 7 additions & 0 deletions
7
packages/svelte2tsx/test/htmlx2jsx/samples/editing-parentheses/input.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{console.log(''.)} | ||
|
||
{#await Promise.resolve(''.)} | ||
|
||
{:then value} | ||
|
||
{/await} |