KT-8263: Conditional operators are not parsed correctly
This commit is contained in:
@@ -2908,6 +2908,70 @@ 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")
|
||||
|
||||
Reference in New Issue
Block a user