Revert "KT-8263: Conditional operators are not parsed correctly"

This reverts commit ec8da2033c.

For the reason for the revert see KT-53719

^KT-8263 Open
^KT-53719 Fixed
This commit is contained in:
Denis.Zharkov
2022-08-25 18:13:21 +02:00
committed by teamcity
parent 154e53c701
commit 211d662708
37 changed files with 220 additions and 4849 deletions
@@ -2908,70 +2908,6 @@ public class ParsingTestGenerated extends AbstractParsingTest {
runTest("compiler/testData/psi/stringTemplates/StringTemplateWithTryWithoutBlockInShortEntry.kt");
}
}
@TestMetadata("compiler/testData/psi/typeArgumentList")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class TypeArgumentList extends AbstractParsingTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doParsingTest, this, testDataFilePath);
}
public void testAllFilesPresentInTypeArgumentList() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/psi/typeArgumentList"), Pattern.compile("^(.*)\\.kts?$"), null, true);
}
@TestMetadata("compiler/testData/psi/typeArgumentList/correctness")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Correctness extends AbstractParsingTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doParsingTest, this, testDataFilePath);
}
public void testAllFilesPresentInCorrectness() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/psi/typeArgumentList/correctness"), Pattern.compile("^(.*)\\.kts?$"), null, true);
}
@TestMetadata("binaryExpressionsInFunctionCall.kt")
public void testBinaryExpressionsInFunctionCall() throws Exception {
runTest("compiler/testData/psi/typeArgumentList/correctness/binaryExpressionsInFunctionCall.kt");
}
@TestMetadata("callExpressionsAnyLHSAtomicExpression.kt")
public void testCallExpressionsAnyLHSAtomicExpression() throws Exception {
runTest("compiler/testData/psi/typeArgumentList/correctness/callExpressionsAnyLHSAtomicExpression.kt");
}
@TestMetadata("callExpressionsInFunctionCall.kt")
public void testCallExpressionsInFunctionCall() throws Exception {
runTest("compiler/testData/psi/typeArgumentList/correctness/callExpressionsInFunctionCall.kt");
}
}
@TestMetadata("compiler/testData/psi/typeArgumentList/recovery")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Recovery extends AbstractParsingTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doParsingTest, this, testDataFilePath);
}
public void testAllFilesPresentInRecovery() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/psi/typeArgumentList/recovery"), Pattern.compile("^(.*)\\.kts?$"), null, true);
}
@TestMetadata("callExpressions.kt")
public void testCallExpressions() throws Exception {
runTest("compiler/testData/psi/typeArgumentList/recovery/callExpressions.kt");
}
@TestMetadata("callExpressions_ERR.kt")
public void testCallExpressions_ERR() throws Exception {
runTest("compiler/testData/psi/typeArgumentList/recovery/callExpressions_ERR.kt");
}
}
}
}
@TestMetadata("compiler/testData/parseCodeFragment/expression")