Relax assertion in parser for a recovery case with annotations

^KT-24937 Fixed
This commit is contained in:
Denis Zharkov
2018-12-10 16:03:45 +03:00
parent 3727fabb0f
commit 5992896d76
8 changed files with 509 additions and 1 deletions
@@ -860,6 +860,11 @@ public class ParsingTestGenerated extends AbstractParsingTest {
runTest("compiler/testData/psi/annotation/at/expressionJustAtTyped.kt");
}
@TestMetadata("kt21055.kt")
public void testKt21055() throws Exception {
runTest("compiler/testData/psi/annotation/at/kt21055.kt");
}
@TestMetadata("modifierAtFileStart.kt")
public void testModifierAtFileStart() throws Exception {
runTest("compiler/testData/psi/annotation/at/modifierAtFileStart.kt");
@@ -870,6 +875,16 @@ public class ParsingTestGenerated extends AbstractParsingTest {
runTest("compiler/testData/psi/annotation/at/primaryConstructor.kt");
}
@TestMetadata("recoveryWhitespaceBeforeColon.kt")
public void testRecoveryWhitespaceBeforeColon() throws Exception {
runTest("compiler/testData/psi/annotation/at/recoveryWhitespaceBeforeColon.kt");
}
@TestMetadata("recoveryWhitespaceBeforeColon_ERR.kt")
public void testRecoveryWhitespaceBeforeColon_ERR() throws Exception {
runTest("compiler/testData/psi/annotation/at/recoveryWhitespaceBeforeColon_ERR.kt");
}
@TestMetadata("validDeclarations.kt")
public void testValidDeclarations() throws Exception {
runTest("compiler/testData/psi/annotation/at/validDeclarations.kt");