#KT-10124 Fixed

This commit is contained in:
Anton Sukhonosenko
2015-12-01 23:24:12 +03:00
parent 36206ddf6d
commit 5bc70b3150
5 changed files with 78 additions and 37 deletions
+5
View File
@@ -0,0 +1,5 @@
fun
fun foo() {
}
+22
View File
@@ -0,0 +1,22 @@
JetFile: FunFun.kt
PACKAGE_DIRECTIVE
<empty list>
IMPORT_LIST
<empty list>
FUN
PsiElement(fun)('fun')
PsiErrorElement:Expecting function name or receiver type
<empty list>
PsiWhiteSpace('\n\n')
FUN
PsiElement(fun)('fun')
PsiWhiteSpace(' ')
PsiElement(IDENTIFIER)('foo')
VALUE_PARAMETER_LIST
PsiElement(LPAR)('(')
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
BLOCK
PsiElement(LBRACE)('{')
PsiWhiteSpace('\n\n')
PsiElement(RBRACE)('}')