-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #215 from lopekpl/KT-1019
KT-1019 recover from missing parentheses in function declaration
- Loading branch information
Showing
7 changed files
with
75 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/funKeyword.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
fun<!SYNTAX, SYNTAX, SYNTAX, SYNTAX, SYNTAX!><!> | ||
fun<!SYNTAX, SYNTAX!><!> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class A { | ||
fun foo | ||
class B {} | ||
fun bar | ||
} | ||
class C {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
JetFile: FunctionNoParameterList.kt | ||
NAMESPACE_HEADER | ||
<empty list> | ||
CLASS | ||
PsiElement(class)('class') | ||
PsiWhiteSpace(' ') | ||
PsiElement(IDENTIFIER)('A') | ||
PsiWhiteSpace(' ') | ||
TYPE_PARAMETER_LIST | ||
<empty list> | ||
CLASS_BODY | ||
PsiElement(LBRACE)('{') | ||
PsiWhiteSpace('\n ') | ||
FUN | ||
PsiElement(fun)('fun') | ||
PsiWhiteSpace(' ') | ||
PsiElement(IDENTIFIER)('foo') | ||
PsiErrorElement:Expecting '(' | ||
<empty list> | ||
PsiWhiteSpace('\n ') | ||
CLASS | ||
PsiElement(class)('class') | ||
PsiWhiteSpace(' ') | ||
PsiElement(IDENTIFIER)('B') | ||
PsiWhiteSpace(' ') | ||
TYPE_PARAMETER_LIST | ||
<empty list> | ||
CLASS_BODY | ||
PsiElement(LBRACE)('{') | ||
PsiElement(RBRACE)('}') | ||
PsiWhiteSpace('\n ') | ||
FUN | ||
PsiElement(fun)('fun') | ||
PsiWhiteSpace(' ') | ||
PsiElement(IDENTIFIER)('bar') | ||
PsiErrorElement:Expecting '(' | ||
<empty list> | ||
PsiWhiteSpace('\n') | ||
PsiElement(RBRACE)('}') | ||
PsiWhiteSpace('\n') | ||
CLASS | ||
PsiElement(class)('class') | ||
PsiWhiteSpace(' ') | ||
PsiElement(IDENTIFIER)('C') | ||
PsiWhiteSpace(' ') | ||
TYPE_PARAMETER_LIST | ||
<empty list> | ||
CLASS_BODY | ||
PsiElement(LBRACE)('{') | ||
PsiElement(RBRACE)('}') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters