[Parser] Continue parsing if context receiver is not parsed correctly
This commit is contained in:
committed by
TeamCityServer
parent
837f3b98fa
commit
5e426d5c16
+6
@@ -10630,6 +10630,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
|||||||
runTest("compiler/testData/diagnostics/tests/extensions/contextReceivers/superWithContext.kt");
|
runTest("compiler/testData/diagnostics/tests/extensions/contextReceivers/superWithContext.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("syntaxError.kt")
|
||||||
|
public void testSyntaxError() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/extensions/contextReceivers/syntaxError.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("thisIdentifierInfo.kt")
|
@TestMetadata("thisIdentifierInfo.kt")
|
||||||
public void testThisIdentifierInfo() throws Exception {
|
public void testThisIdentifierInfo() throws Exception {
|
||||||
|
|||||||
@@ -637,10 +637,10 @@ public class KotlinParsing extends AbstractKotlinParsing {
|
|||||||
}
|
}
|
||||||
if (at(COMMA)) {
|
if (at(COMMA)) {
|
||||||
advance();
|
advance();
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
if (!at(RPAR)) {
|
if (!at(RPAR)) {
|
||||||
error("Expecting comma or ')'");
|
error("Expecting comma or ')'");
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+3
@@ -0,0 +1,3 @@
|
|||||||
|
context(
|
||||||
|
<!SYNTAX!><!>fun foo() {
|
||||||
|
}
|
||||||
+3
@@ -0,0 +1,3 @@
|
|||||||
|
context(
|
||||||
|
<!SYNTAX!><!>fun foo() {
|
||||||
|
}
|
||||||
+3
@@ -0,0 +1,3 @@
|
|||||||
|
package
|
||||||
|
|
||||||
|
public fun foo(): kotlin.Unit
|
||||||
Generated
+6
@@ -10636,6 +10636,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
|||||||
runTest("compiler/testData/diagnostics/tests/extensions/contextReceivers/superWithContext.kt");
|
runTest("compiler/testData/diagnostics/tests/extensions/contextReceivers/superWithContext.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("syntaxError.kt")
|
||||||
|
public void testSyntaxError() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/extensions/contextReceivers/syntaxError.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("thisIdentifierInfo.kt")
|
@TestMetadata("thisIdentifierInfo.kt")
|
||||||
public void testThisIdentifierInfo() throws Exception {
|
public void testThisIdentifierInfo() throws Exception {
|
||||||
|
|||||||
Reference in New Issue
Block a user