Error message corrected: packages can't be nested any more

This commit is contained in:
Andrey Breslav
2014-10-14 14:38:33 +04:00
parent 391b57077b
commit 2bf6db003a
12 changed files with 289 additions and 289 deletions
@@ -376,7 +376,7 @@ public class JetParsing extends AbstractJetParsing {
}
if (declType == null) {
errorAndAdvance("Expecting package directive or top level declaration");
errorAndAdvance("Expecting a top level declaration");
decl.drop();
}
else {
+3 -3
View File
@@ -1,9 +1,9 @@
JetFile: FileStart_ERR.kt
PACKAGE_DIRECTIVE
<empty list>
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(DIV)('/')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(package)('package')
PsiWhiteSpace(' ')
MODIFIER_LIST
@@ -31,5 +31,5 @@ JetFile: FileStart_ERR.kt
USER_TYPE
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('foo')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
<empty list>
+1 -1
View File
@@ -7,7 +7,7 @@ JetFile: Functions_ERR.kt
PsiElement(IDENTIFIER)('foo')
PsiErrorElement:Expecting '('
<empty list>
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiWhiteSpace('\n')
FUN
+3 -3
View File
@@ -5,7 +5,7 @@ JetFile: PackageBlockFirst.kt
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('foobar')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
PsiWhiteSpace('\n ')
PROPERTY
@@ -32,5 +32,5 @@ JetFile: PackageBlockFirst.kt
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('a')
PsiWhiteSpace('\n')
PsiErrorElement:Expecting package directive or top level declaration
PsiElement(RBRACE)('}')
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
+8 -8
View File
@@ -119,22 +119,22 @@ JetFile: Properties_ERR.kt
MODIFIER_LIST
PsiElement(public)('public')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiWhiteSpace('\n ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(EQ)('=')
PsiWhiteSpace(' ')
PROPERTY
@@ -176,4 +176,4 @@ JetFile: Properties_ERR.kt
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting function body
PsiElement(MINUS)('-')
PsiElement(MINUS)('-')
+3 -3
View File
@@ -15,7 +15,7 @@ JetFile: RootPackage.kt
PsiWhiteSpace(' ')
PsiElement(IDENTIFIER)('X')
PsiWhiteSpace('\n\n')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(package)('package')
PsiWhiteSpace(' ')
MODIFIER_LIST
@@ -30,7 +30,7 @@ JetFile: RootPackage.kt
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('bar')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
PsiWhiteSpace('\n ')
FUN
@@ -127,5 +127,5 @@ JetFile: RootPackage.kt
PsiWhiteSpace('\n ')
PsiElement(RBRACE)('}')
PsiWhiteSpace('\n')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
@@ -11,7 +11,7 @@ JetFile: FunctionTypesWithFunctionReceivers.kt
TYPE_REFERENCE
PsiErrorElement:Type expected
<empty list>
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
MODIFIER_LIST
ANNOTATION_ENTRY
@@ -47,21 +47,21 @@ JetFile: FunctionTypesWithFunctionReceivers.kt
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('x')
PsiElement(GT)('>')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(DOT)('.')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(COLON)(':')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiWhiteSpace('\n')
TYPEDEF
@@ -74,11 +74,11 @@ JetFile: FunctionTypesWithFunctionReceivers.kt
TYPE_REFERENCE
PsiErrorElement:Type expected
<empty list>
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
MODIFIER_LIST
ANNOTATION_ENTRY
@@ -87,39 +87,39 @@ JetFile: FunctionTypesWithFunctionReceivers.kt
USER_TYPE
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('S')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(DOT)('.')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(COLON)(':')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(DOT)('.')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(COLON)(':')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiWhiteSpace('\n')
TYPEDEF
@@ -132,9 +132,9 @@ JetFile: FunctionTypesWithFunctionReceivers.kt
TYPE_REFERENCE
PsiErrorElement:Type expected
<empty list>
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
MODIFIER_LIST
ANNOTATION_ENTRY
@@ -143,37 +143,37 @@ JetFile: FunctionTypesWithFunctionReceivers.kt
USER_TYPE
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('T')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(DOT)('.')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(COLON)(':')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(DOT)('.')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(COLON)(':')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiWhiteSpace('\n')
TYPEDEF
@@ -186,9 +186,9 @@ JetFile: FunctionTypesWithFunctionReceivers.kt
TYPE_REFERENCE
PsiErrorElement:Type expected
<empty list>
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
MODIFIER_LIST
ANNOTATION_ENTRY
@@ -201,37 +201,37 @@ JetFile: FunctionTypesWithFunctionReceivers.kt
PsiElement(DOT)('.')
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('T')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(DOT)('.')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(COLON)(':')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(DOT)('.')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(COLON)(':')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiWhiteSpace('\n')
TYPEDEF
@@ -244,9 +244,9 @@ JetFile: FunctionTypesWithFunctionReceivers.kt
TYPE_REFERENCE
PsiErrorElement:Type expected
<empty list>
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
MODIFIER_LIST
ANNOTATION_ENTRY
@@ -282,37 +282,37 @@ JetFile: FunctionTypesWithFunctionReceivers.kt
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('x')
PsiElement(GT)('>')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(DOT)('.')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(COLON)(':')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(DOT)('.')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(COLON)(':')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiWhiteSpace('\n')
TYPEDEF
@@ -325,11 +325,11 @@ JetFile: FunctionTypesWithFunctionReceivers.kt
TYPE_REFERENCE
PsiErrorElement:Type expected
<empty list>
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
MODIFIER_LIST
ANNOTATION_ENTRY
@@ -338,39 +338,39 @@ JetFile: FunctionTypesWithFunctionReceivers.kt
USER_TYPE
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('S')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(DOT)('.')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(COLON)(':')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(DOT)('.')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(COLON)(':')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiWhiteSpace('\n\n')
TYPEDEF
@@ -393,7 +393,7 @@ JetFile: FunctionTypesWithFunctionReceivers.kt
PsiErrorElement:Type expected
<empty list>
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
MODIFIER_LIST
ANNOTATION
@@ -406,9 +406,9 @@ JetFile: FunctionTypesWithFunctionReceivers.kt
PsiElement(IDENTIFIER)('a')
PsiElement(RBRACKET)(']')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
MODIFIER_LIST
ANNOTATION_ENTRY
@@ -417,39 +417,39 @@ JetFile: FunctionTypesWithFunctionReceivers.kt
USER_TYPE
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('S')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(DOT)('.')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(COLON)(':')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(DOT)('.')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(COLON)(':')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiWhiteSpace('\n')
TYPEDEF
@@ -472,7 +472,7 @@ JetFile: FunctionTypesWithFunctionReceivers.kt
PsiErrorElement:Type expected
<empty list>
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
MODIFIER_LIST
ANNOTATION
@@ -485,7 +485,7 @@ JetFile: FunctionTypesWithFunctionReceivers.kt
PsiElement(IDENTIFIER)('a')
PsiElement(RBRACKET)(']')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
MODIFIER_LIST
ANNOTATION_ENTRY
@@ -494,37 +494,37 @@ JetFile: FunctionTypesWithFunctionReceivers.kt
USER_TYPE
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('T')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(DOT)('.')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(COLON)(':')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(DOT)('.')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(COLON)(':')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiWhiteSpace('\n')
TYPEDEF
@@ -547,7 +547,7 @@ JetFile: FunctionTypesWithFunctionReceivers.kt
PsiErrorElement:Type expected
<empty list>
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
MODIFIER_LIST
ANNOTATION
@@ -560,7 +560,7 @@ JetFile: FunctionTypesWithFunctionReceivers.kt
PsiElement(IDENTIFIER)('a')
PsiElement(RBRACKET)(']')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
MODIFIER_LIST
ANNOTATION_ENTRY
@@ -573,37 +573,37 @@ JetFile: FunctionTypesWithFunctionReceivers.kt
PsiElement(DOT)('.')
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('T')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(DOT)('.')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(COLON)(':')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(DOT)('.')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(COLON)(':')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiWhiteSpace('\n')
TYPEDEF
@@ -626,7 +626,7 @@ JetFile: FunctionTypesWithFunctionReceivers.kt
PsiErrorElement:Type expected
<empty list>
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
MODIFIER_LIST
ANNOTATION
@@ -639,7 +639,7 @@ JetFile: FunctionTypesWithFunctionReceivers.kt
PsiElement(IDENTIFIER)('a')
PsiElement(RBRACKET)(']')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
MODIFIER_LIST
ANNOTATION_ENTRY
@@ -675,37 +675,37 @@ JetFile: FunctionTypesWithFunctionReceivers.kt
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('x')
PsiElement(GT)('>')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(DOT)('.')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(COLON)(':')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(DOT)('.')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(COLON)(':')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiWhiteSpace('\n')
TYPEDEF
@@ -728,7 +728,7 @@ JetFile: FunctionTypesWithFunctionReceivers.kt
PsiErrorElement:Type expected
<empty list>
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
MODIFIER_LIST
ANNOTATION
@@ -741,9 +741,9 @@ JetFile: FunctionTypesWithFunctionReceivers.kt
PsiElement(IDENTIFIER)('a')
PsiElement(RBRACKET)(']')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
MODIFIER_LIST
ANNOTATION_ENTRY
@@ -752,37 +752,37 @@ JetFile: FunctionTypesWithFunctionReceivers.kt
USER_TYPE
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('S')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(DOT)('.')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(COLON)(':')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(DOT)('.')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(COLON)(':')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
@@ -20,7 +20,7 @@ JetFile: FunctionsWithFunctionReceivers.kt
USER_TYPE
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('a')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACKET)(']')
PsiWhiteSpace(' ')
MODIFIER_LIST
@@ -38,9 +38,9 @@ JetFile: FunctionsWithFunctionReceivers.kt
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('T')
PsiElement(GT)('>')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(DOT)('.')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
MODIFIER_LIST
ANNOTATION_ENTRY
@@ -57,19 +57,19 @@ JetFile: FunctionsWithFunctionReceivers.kt
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('B')
PsiElement(GT)('>')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(COLON)(':')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(DOT)('.')
FUN
MODIFIER_LIST
@@ -101,7 +101,7 @@ JetFile: FunctionsWithFunctionReceivers.kt
USER_TYPE
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('a')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACKET)(']')
PsiWhiteSpace(' ')
MODIFIER_LIST
@@ -119,9 +119,9 @@ JetFile: FunctionsWithFunctionReceivers.kt
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('T')
PsiElement(GT)('>')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(DOT)('.')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
MODIFIER_LIST
ANNOTATION_ENTRY
@@ -138,19 +138,19 @@ JetFile: FunctionsWithFunctionReceivers.kt
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('B')
PsiElement(GT)('>')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(COLON)(':')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(DOT)('.')
MODIFIER_LIST
ANNOTATION_ENTRY
@@ -162,7 +162,7 @@ JetFile: FunctionsWithFunctionReceivers.kt
VALUE_ARGUMENT_LIST
PsiElement(LPAR)('(')
PsiElement(RPAR)(')')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(SEMICOLON)(';')
PsiWhiteSpace('\n')
FUN
@@ -184,7 +184,7 @@ JetFile: FunctionsWithFunctionReceivers.kt
USER_TYPE
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('a')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACKET)(']')
PsiWhiteSpace(' ')
MODIFIER_LIST
@@ -202,9 +202,9 @@ JetFile: FunctionsWithFunctionReceivers.kt
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('T')
PsiElement(GT)('>')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(DOT)('.')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
MODIFIER_LIST
ANNOTATION_ENTRY
@@ -221,19 +221,19 @@ JetFile: FunctionsWithFunctionReceivers.kt
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('B')
PsiElement(GT)('>')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(COLON)(':')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(DOT)('.')
MODIFIER_LIST
ANNOTATION_ENTRY
@@ -246,9 +246,9 @@ JetFile: FunctionsWithFunctionReceivers.kt
PsiElement(LPAR)('(')
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiWhiteSpace('\n')
FUN
@@ -280,7 +280,7 @@ JetFile: FunctionsWithFunctionReceivers.kt
USER_TYPE
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('a')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACKET)(']')
PsiWhiteSpace(' ')
MODIFIER_LIST
@@ -298,9 +298,9 @@ JetFile: FunctionsWithFunctionReceivers.kt
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('T')
PsiElement(GT)('>')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(DOT)('.')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
MODIFIER_LIST
ANNOTATION_ENTRY
@@ -317,19 +317,19 @@ JetFile: FunctionsWithFunctionReceivers.kt
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('B')
PsiElement(GT)('>')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(COLON)(':')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(DOT)('.')
MODIFIER_LIST
ANNOTATION_ENTRY
@@ -342,9 +342,9 @@ JetFile: FunctionsWithFunctionReceivers.kt
PsiElement(LPAR)('(')
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiWhiteSpace('\n')
FUN
@@ -387,9 +387,9 @@ JetFile: FunctionsWithFunctionReceivers.kt
USER_TYPE
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('Unit')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(DOT)('.')
FUN
MODIFIER_LIST
@@ -422,7 +422,7 @@ JetFile: FunctionsWithFunctionReceivers.kt
PsiErrorElement:Parameters must have type annotation
<empty list>
PsiElement(RPAR)(')')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(DOT)('.')
MODIFIER_LIST
ANNOTATION_ENTRY
@@ -435,7 +435,7 @@ JetFile: FunctionsWithFunctionReceivers.kt
PsiElement(LPAR)('(')
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(COLON)(':')
PsiWhiteSpace(' ')
MODIFIER_LIST
@@ -446,9 +446,9 @@ JetFile: FunctionsWithFunctionReceivers.kt
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('Unit')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiWhiteSpace('\n\n\n')
PsiComment(EOL_COMMENT)('// Recovery')
@@ -473,7 +473,7 @@ JetFile: FunctionsWithFunctionReceivers.kt
USER_TYPE
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('a')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACKET)(']')
PsiWhiteSpace(' ')
MODIFIER_LIST
@@ -491,9 +491,9 @@ JetFile: FunctionsWithFunctionReceivers.kt
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('T')
PsiElement(GT)('>')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(DOT)('.')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
MODIFIER_LIST
ANNOTATION_ENTRY
@@ -510,21 +510,21 @@ JetFile: FunctionsWithFunctionReceivers.kt
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('B')
PsiElement(GT)('>')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(COLON)(':')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(DOT)('.')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(MINUS)('-')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LPAR)('(')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
@@ -81,9 +81,9 @@ JetFile: PropertiesWithFunctionReceivers.kt
PsiElement(LPAR)('(')
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiWhiteSpace('\n ')
MODIFIER_LIST
@@ -100,9 +100,9 @@ JetFile: PropertiesWithFunctionReceivers.kt
PsiElement(IDENTIFIER)('it')
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiWhiteSpace('\n\n')
PROPERTY
@@ -143,7 +143,7 @@ JetFile: PropertiesWithFunctionReceivers.kt
PsiElement(LPAR)('(')
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(COLON)(':')
PsiWhiteSpace(' ')
MODIFIER_LIST
@@ -154,9 +154,9 @@ JetFile: PropertiesWithFunctionReceivers.kt
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('Foo')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiWhiteSpace('\n ')
MODIFIER_LIST
@@ -173,9 +173,9 @@ JetFile: PropertiesWithFunctionReceivers.kt
PsiElement(IDENTIFIER)('it')
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiWhiteSpace('\n\n\n')
PROPERTY
@@ -232,9 +232,9 @@ JetFile: PropertiesWithFunctionReceivers.kt
PsiElement(LPAR)('(')
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiWhiteSpace('\n ')
MODIFIER_LIST
@@ -262,9 +262,9 @@ JetFile: PropertiesWithFunctionReceivers.kt
PsiElement(IDENTIFIER)('b')
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiWhiteSpace('\n\n\n')
PROPERTY
@@ -323,9 +323,9 @@ JetFile: PropertiesWithFunctionReceivers.kt
PsiElement(IDENTIFIER)('b')
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiWhiteSpace('\n\n\n')
PROPERTY
@@ -382,9 +382,9 @@ JetFile: PropertiesWithFunctionReceivers.kt
PsiElement(LPAR)('(')
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiWhiteSpace('\n\n')
PsiComment(EOL_COMMENT)('// Error recovery:')
@@ -423,12 +423,12 @@ JetFile: PropertiesWithFunctionReceivers.kt
USER_TYPE
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('set')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiWhiteSpace('\n ')
MODIFIER_LIST
@@ -442,9 +442,9 @@ JetFile: PropertiesWithFunctionReceivers.kt
PsiElement(LPAR)('(')
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiWhiteSpace('\n\n')
PROPERTY
@@ -488,9 +488,9 @@ JetFile: PropertiesWithFunctionReceivers.kt
PsiElement(IDENTIFIER)('foo')
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiWhiteSpace('\n ')
MODIFIER_LIST
@@ -504,9 +504,9 @@ JetFile: PropertiesWithFunctionReceivers.kt
PsiElement(LPAR)('(')
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiWhiteSpace('\n ')
MODIFIER_LIST
@@ -520,7 +520,7 @@ JetFile: PropertiesWithFunctionReceivers.kt
PsiElement(LPAR)('(')
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
@@ -11,7 +11,7 @@ JetFile: functionTypes.kt
PsiWhiteSpace('\n')
PsiElement(RBRACE)('}')
PsiWhiteSpace('\n\n')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(package)('package')
PsiWhiteSpace(' ')
MODIFIER_LIST
@@ -22,7 +22,7 @@ JetFile: functionTypes.kt
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('n')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
PsiWhiteSpace('\n ')
CLASS
@@ -30,7 +30,7 @@ JetFile: functionTypes.kt
PsiWhiteSpace(' ')
PsiElement(IDENTIFIER)('B')
PsiWhiteSpace('\n')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
PsiWhiteSpace('\n')
CLASS
@@ -66,10 +66,10 @@ JetFile: WrongWordInParentheses.kt
PsiErrorElement:Expecting ')'
PsiElement(EXCL)('!')
PsiWhiteSpace('\n')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RPAR)(')')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(LBRACE)('{')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(RBRACE)('}')
@@ -77,8 +77,8 @@ JetFile: DelegateAndInitializer.kt
PsiElement(RPAR)(')')
PsiElement(SEMICOLON)(';')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(EQ)('=')
PsiWhiteSpace(' ')
PsiErrorElement:Expecting package directive or top level declaration
PsiErrorElement:Expecting a top level declaration
PsiElement(INTEGER_LITERAL)('3')