-
-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Implement error emission about existing file (#1076)
**Related issue:** - Part of #705
- Loading branch information
1 parent
637a99c
commit 90f7c04
Showing
16 changed files
with
105 additions
and
23 deletions.
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
12 changes: 12 additions & 0 deletions
12
..._checker/tests/conformance/externalModules/moduleResolutionWithExtensions.error-diff.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,12 @@ | ||
{ | ||
"required_errors": {}, | ||
"required_error_lines": {}, | ||
"extra_errors": { | ||
"TS2307": 1 | ||
}, | ||
"extra_error_lines": { | ||
"TS2307": [ | ||
1 | ||
] | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
...checker/tests/conformance/externalModules/moduleResolutionWithExtensions.stats.rust-debug
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Stats { | ||
required_error: 0, | ||
matched_error: 0, | ||
extra_error: 0, | ||
panic: 1, | ||
extra_error: 1, | ||
panic: 0, | ||
} |
6 changes: 3 additions & 3 deletions
6
...s_type_checker/tests/conformance/externalModules/relativePathMustResolve.stats.rust-debug
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Stats { | ||
required_error: 1, | ||
matched_error: 0, | ||
required_error: 0, | ||
matched_error: 1, | ||
extra_error: 0, | ||
panic: 1, | ||
panic: 0, | ||
} |
14 changes: 14 additions & 0 deletions
14
...e_checker/tests/conformance/externalModules/relativePathToDeclarationFile.error-diff.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,14 @@ | ||
{ | ||
"required_errors": {}, | ||
"required_error_lines": {}, | ||
"extra_errors": { | ||
"TS2307": 3 | ||
}, | ||
"extra_error_lines": { | ||
"TS2307": [ | ||
1, | ||
2, | ||
3 | ||
] | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
..._checker/tests/conformance/externalModules/relativePathToDeclarationFile.stats.rust-debug
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Stats { | ||
required_error: 0, | ||
matched_error: 0, | ||
extra_error: 0, | ||
panic: 1, | ||
extra_error: 3, | ||
panic: 0, | ||
} |
12 changes: 12 additions & 0 deletions
12
...ype_checker/tests/conformance/moduleResolution/allowImportingTsExtensions.error-diff.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,12 @@ | ||
{ | ||
"required_errors": {}, | ||
"required_error_lines": {}, | ||
"extra_errors": { | ||
"TS2307": 1 | ||
}, | ||
"extra_error_lines": { | ||
"TS2307": [ | ||
1 | ||
] | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
...pe_checker/tests/conformance/moduleResolution/allowImportingTsExtensions.stats.rust-debug
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Stats { | ||
required_error: 0, | ||
matched_error: 0, | ||
extra_error: 0, | ||
panic: 1, | ||
extra_error: 1, | ||
panic: 0, | ||
} |
13 changes: 13 additions & 0 deletions
13
...nformance/nonjsExtensions/declarationFileForHtmlFileWithinDeclarationFile.error-diff.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,13 @@ | ||
{ | ||
"required_errors": {}, | ||
"required_error_lines": {}, | ||
"extra_errors": { | ||
"TS2307": 2 | ||
}, | ||
"extra_error_lines": { | ||
"TS2307": [ | ||
1, | ||
1 | ||
] | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
...formance/nonjsExtensions/declarationFileForHtmlFileWithinDeclarationFile.stats.rust-debug
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Stats { | ||
required_error: 0, | ||
matched_error: 0, | ||
extra_error: 0, | ||
panic: 1, | ||
extra_error: 2, | ||
panic: 0, | ||
} |
12 changes: 12 additions & 0 deletions
12
...pe_checker/tests/conformance/nonjsExtensions/declarationFileForHtmlImport.error-diff.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,12 @@ | ||
{ | ||
"required_errors": {}, | ||
"required_error_lines": {}, | ||
"extra_errors": { | ||
"TS2307": 1 | ||
}, | ||
"extra_error_lines": { | ||
"TS2307": [ | ||
1 | ||
] | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
...e_checker/tests/conformance/nonjsExtensions/declarationFileForHtmlImport.stats.rust-debug
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Stats { | ||
required_error: 0, | ||
matched_error: 0, | ||
extra_error: 0, | ||
panic: 1, | ||
extra_error: 1, | ||
panic: 0, | ||
} |
18 changes: 18 additions & 0 deletions
18
...stc_ts_type_checker/tests/conformance/types/import/importTypeLocalMissing.error-diff.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,18 @@ | ||
{ | ||
"required_errors": { | ||
"TS2694": 1 | ||
}, | ||
"required_error_lines": { | ||
"TS2694": [ | ||
3 | ||
] | ||
}, | ||
"extra_errors": { | ||
"TS0": 1 | ||
}, | ||
"extra_error_lines": { | ||
"TS0": [ | ||
16 | ||
] | ||
} | ||
} |
8 changes: 4 additions & 4 deletions
8
...tc_ts_type_checker/tests/conformance/types/import/importTypeLocalMissing.stats.rust-debug
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Stats { | ||
required_error: 4, | ||
matched_error: 0, | ||
extra_error: 0, | ||
panic: 1, | ||
required_error: 1, | ||
matched_error: 3, | ||
extra_error: 1, | ||
panic: 0, | ||
} |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Stats { | ||
required_error: 3493, | ||
matched_error: 6542, | ||
extra_error: 764, | ||
panic: 73, | ||
required_error: 3489, | ||
matched_error: 6546, | ||
extra_error: 773, | ||
panic: 66, | ||
} |
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