Add recovery for import lists in the middle of the file
Note, that it only works for top-level declarations ^KT-7185 Fixed
This commit is contained in:
@@ -9071,6 +9071,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
|
||||
runTest("compiler/testData/diagnostics/tests/imports/TopLevelClassVsPackage.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("twoImportLists.kt")
|
||||
public void testTwoImportLists() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/imports/twoImportLists.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("WrongImport.kt")
|
||||
public void testWrongImport() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/imports/WrongImport.kt");
|
||||
|
||||
Generated
+5
@@ -9071,6 +9071,11 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
|
||||
runTest("compiler/testData/diagnostics/tests/imports/TopLevelClassVsPackage.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("twoImportLists.kt")
|
||||
public void testTwoImportLists() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/imports/twoImportLists.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("WrongImport.kt")
|
||||
public void testWrongImport() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/imports/WrongImport.kt");
|
||||
|
||||
@@ -2013,6 +2013,11 @@ public class ParsingTestGenerated extends AbstractParsingTest {
|
||||
runTest("compiler/testData/psi/recovery/ImportRecovery.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("importsWithConflict.kt")
|
||||
public void testImportsWithConflict() throws Exception {
|
||||
runTest("compiler/testData/psi/recovery/importsWithConflict.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("IncompleteAccessor1.kt")
|
||||
public void testIncompleteAccessor1() throws Exception {
|
||||
runTest("compiler/testData/psi/recovery/IncompleteAccessor1.kt");
|
||||
|
||||
Reference in New Issue
Block a user