Added parser test for function with initializer.

This commit is contained in:
Stanislav Erokhin
2015-03-13 20:25:58 +03:00
parent 446816e3db
commit 7a8341d0f1
4 changed files with 31 additions and 2 deletions
+14 -1
View File
@@ -622,4 +622,17 @@ JetFile: Functions.kt
USER_TYPE
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('bar')
PsiElement(QUEST)('?')
PsiElement(QUEST)('?')
PsiWhiteSpace('\n')
FUN
PsiElement(fun)('fun')
PsiWhiteSpace(' ')
PsiElement(IDENTIFIER)('foo')
VALUE_PARAMETER_LIST
PsiElement(LPAR)('(')
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiElement(EQ)('=')
PsiWhiteSpace(' ')
INTEGER_CONSTANT
PsiElement(INTEGER_LITERAL)('5')