[Parser] Add parsing of function's contract either before or after type constraints

This commit is contained in:
Arsen Nagdalian
2020-07-18 22:57:23 +03:00
parent 1b57889773
commit 32a64b888e
6 changed files with 401 additions and 188 deletions
@@ -385,16 +385,16 @@ public class ParsingTestGenerated extends AbstractParsingTest {
runTest("compiler/testData/psi/FunctionWithMultilineContract.kt");
}
@TestMetadata("FunctionWithTypeConstraintsAndContract.kt")
public void testFunctionWithTypeConstraintsAndContract() throws Exception {
runTest("compiler/testData/psi/FunctionWithTypeConstraintsAndContract.kt");
}
@TestMetadata("Functions.kt")
public void testFunctions() throws Exception {
runTest("compiler/testData/psi/Functions.kt");
}
@TestMetadata("FunctionsWithTypeConstraintsAndContract.kt")
public void testFunctionsWithTypeConstraintsAndContract() throws Exception {
runTest("compiler/testData/psi/FunctionsWithTypeConstraintsAndContract.kt");
}
@TestMetadata("FunctionsWithoutName.kt")
public void testFunctionsWithoutName() throws Exception {
runTest("compiler/testData/psi/FunctionsWithoutName.kt");