Don't parse condition if there's no ( for if
This commit is contained in:
@@ -882,19 +882,41 @@ public class JetParsingTestGenerated extends AbstractJetParsingTest {
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInRecovery() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.TestsPackage", new File("compiler/testData/psi/recovery"), Pattern.compile("^(.*)\\.kts?$"), true);
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.TestsPackage",
|
||||
new File("compiler/testData/psi/recovery"), Pattern.compile("^(.*)\\.kts?$"),
|
||||
true);
|
||||
}
|
||||
|
||||
@TestMetadata("DoWhileWithEmptyCondition.kt")
|
||||
public void testDoWhileWithEmptyCondition() throws Exception {
|
||||
doParsingTest("compiler/testData/psi/recovery/DoWhileWithEmptyCondition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("DoWhileWithoutLPar.kt")
|
||||
public void testDoWhileWithoutLPar() throws Exception {
|
||||
doParsingTest("compiler/testData/psi/recovery/DoWhileWithoutLPar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("EnumEntryInitList.kt")
|
||||
public void testEnumEntryInitList() throws Exception {
|
||||
doParsingTest("compiler/testData/psi/recovery/EnumEntryInitList.kt");
|
||||
}
|
||||
|
||||
|
||||
@TestMetadata("ForRecovery.kt")
|
||||
public void testForRecovery() throws Exception {
|
||||
doParsingTest("compiler/testData/psi/recovery/ForRecovery.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("IfWithEmptyCondition.kt")
|
||||
public void testIfWithEmptyCondition() throws Exception {
|
||||
doParsingTest("compiler/testData/psi/recovery/IfWithEmptyCondition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("IfWithoutLPar.kt")
|
||||
public void testIfWithoutLPar() throws Exception {
|
||||
doParsingTest("compiler/testData/psi/recovery/IfWithoutLPar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportRecovery.kt")
|
||||
public void testImportRecovery() throws Exception {
|
||||
doParsingTest("compiler/testData/psi/recovery/ImportRecovery.kt");
|
||||
@@ -950,6 +972,16 @@ public class JetParsingTestGenerated extends AbstractJetParsingTest {
|
||||
doParsingTest("compiler/testData/psi/recovery/ValueParameterNoTypeRecovery.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("WhileWithEmptyCondition.kt")
|
||||
public void testWhileWithEmptyCondition() throws Exception {
|
||||
doParsingTest("compiler/testData/psi/recovery/WhileWithEmptyCondition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("WhileWithoutLPar.kt")
|
||||
public void testWhileWithoutLPar() throws Exception {
|
||||
doParsingTest("compiler/testData/psi/recovery/WhileWithoutLPar.kt");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/psi/script")
|
||||
|
||||
Reference in New Issue
Block a user