Parser test data fixed
This commit is contained in:
@@ -4,19 +4,33 @@ JetFile: FileStart_ERR.jet
|
|||||||
<empty list>
|
<empty list>
|
||||||
PsiErrorElement:Expecting namespace or top level declaration
|
PsiErrorElement:Expecting namespace or top level declaration
|
||||||
PsiElement(DIV)('/')
|
PsiElement(DIV)('/')
|
||||||
NAMESPACE
|
PsiErrorElement:Expecting namespace or top level declaration
|
||||||
NAMESPACE_HEADER
|
PsiElement(namespace)('package')
|
||||||
PsiElement(namespace)('package')
|
PsiWhiteSpace(' ')
|
||||||
PsiWhiteSpace(' ')
|
MODIFIER_LIST
|
||||||
REFERENCE_EXPRESSION
|
ANNOTATION_ENTRY
|
||||||
PsiElement(IDENTIFIER)('foo')
|
CONSTRUCTOR_CALLEE
|
||||||
PsiElement(DOT)('.')
|
TYPE_REFERENCE
|
||||||
PsiElement(IDENTIFIER)('bar')
|
USER_TYPE
|
||||||
PsiErrorElement:A namespace block in '{...}' expected
|
USER_TYPE
|
||||||
<empty list>
|
REFERENCE_EXPRESSION
|
||||||
PsiWhiteSpace('\n')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
IMPORT_DIRECTIVE
|
PsiElement(DOT)('.')
|
||||||
PsiElement(import)('import')
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('bar')
|
||||||
|
PsiWhiteSpace('\n')
|
||||||
|
ANNOTATION_ENTRY
|
||||||
|
CONSTRUCTOR_CALLEE
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('import')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
ANNOTATION_ENTRY
|
||||||
PsiElement(IDENTIFIER)('foo')
|
CONSTRUCTOR_CALLEE
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('foo')
|
||||||
|
PsiErrorElement:Expecting namespace or top level declaration
|
||||||
|
<empty list>
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
package foo.bar.goo
|
|
||||||
|
|
||||||
import foo as bar
|
|
||||||
|
|
||||||
package foof {
|
|
||||||
import foo.bar.*;
|
|
||||||
|
|
||||||
class Foo {}
|
|
||||||
|
|
||||||
package bar {
|
|
||||||
class Bar {}
|
|
||||||
|
|
||||||
package ns {
|
|
||||||
class X
|
|
||||||
|
|
||||||
class Y
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
class Bar<T> {}
|
|
||||||
|
|
||||||
package foo {}
|
|
||||||
|
|
||||||
package bar {
|
|
||||||
import sdf
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,146 +0,0 @@
|
|||||||
JetFile: NamespaceBlock.jet
|
|
||||||
NAMESPACE
|
|
||||||
NAMESPACE_HEADER
|
|
||||||
PsiElement(namespace)('package')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('foo')
|
|
||||||
PsiElement(DOT)('.')
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('bar')
|
|
||||||
PsiElement(DOT)('.')
|
|
||||||
PsiElement(IDENTIFIER)('goo')
|
|
||||||
PsiWhiteSpace('\n\n')
|
|
||||||
IMPORT_DIRECTIVE
|
|
||||||
PsiElement(import)('import')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('foo')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(as)('as')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(IDENTIFIER)('bar')
|
|
||||||
PsiWhiteSpace('\n\n')
|
|
||||||
NAMESPACE
|
|
||||||
NAMESPACE_HEADER
|
|
||||||
PsiElement(namespace)('package')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(IDENTIFIER)('foof')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(LBRACE)('{')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
NAMESPACE_BODY
|
|
||||||
IMPORT_DIRECTIVE
|
|
||||||
PsiElement(import)('import')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
DOT_QUALIFIED_EXPRESSION
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('foo')
|
|
||||||
PsiElement(DOT)('.')
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('bar')
|
|
||||||
PsiElement(DOT)('.')
|
|
||||||
PsiElement(MUL)('*')
|
|
||||||
PsiElement(SEMICOLON)(';')
|
|
||||||
PsiWhiteSpace('\n\n ')
|
|
||||||
CLASS
|
|
||||||
PsiElement(class)('class')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(IDENTIFIER)('Foo')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_PARAMETER_LIST
|
|
||||||
<empty list>
|
|
||||||
CLASS_BODY
|
|
||||||
PsiElement(LBRACE)('{')
|
|
||||||
PsiElement(RBRACE)('}')
|
|
||||||
PsiWhiteSpace('\n\n ')
|
|
||||||
NAMESPACE
|
|
||||||
NAMESPACE_HEADER
|
|
||||||
PsiElement(namespace)('package')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(IDENTIFIER)('bar')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(LBRACE)('{')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
NAMESPACE_BODY
|
|
||||||
CLASS
|
|
||||||
PsiElement(class)('class')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(IDENTIFIER)('Bar')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_PARAMETER_LIST
|
|
||||||
<empty list>
|
|
||||||
CLASS_BODY
|
|
||||||
PsiElement(LBRACE)('{')
|
|
||||||
PsiElement(RBRACE)('}')
|
|
||||||
PsiWhiteSpace('\n\n ')
|
|
||||||
NAMESPACE
|
|
||||||
NAMESPACE_HEADER
|
|
||||||
PsiElement(namespace)('package')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(IDENTIFIER)('ns')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(LBRACE)('{')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
NAMESPACE_BODY
|
|
||||||
CLASS
|
|
||||||
PsiElement(class)('class')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(IDENTIFIER)('X')
|
|
||||||
PsiWhiteSpace('\n\n ')
|
|
||||||
TYPE_PARAMETER_LIST
|
|
||||||
<empty list>
|
|
||||||
CLASS
|
|
||||||
PsiElement(class)('class')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(IDENTIFIER)('Y')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
TYPE_PARAMETER_LIST
|
|
||||||
<empty list>
|
|
||||||
PsiElement(RBRACE)('}')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
PsiElement(RBRACE)('}')
|
|
||||||
PsiWhiteSpace('\n')
|
|
||||||
PsiElement(RBRACE)('}')
|
|
||||||
PsiWhiteSpace('\n\n\n')
|
|
||||||
CLASS
|
|
||||||
PsiElement(class)('class')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(IDENTIFIER)('Bar')
|
|
||||||
TYPE_PARAMETER_LIST
|
|
||||||
PsiElement(LT)('<')
|
|
||||||
TYPE_PARAMETER
|
|
||||||
PsiElement(IDENTIFIER)('T')
|
|
||||||
PsiElement(GT)('>')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
CLASS_BODY
|
|
||||||
PsiElement(LBRACE)('{')
|
|
||||||
PsiElement(RBRACE)('}')
|
|
||||||
PsiWhiteSpace('\n\n')
|
|
||||||
NAMESPACE
|
|
||||||
NAMESPACE_HEADER
|
|
||||||
PsiElement(namespace)('package')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(IDENTIFIER)('foo')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(LBRACE)('{')
|
|
||||||
NAMESPACE_BODY
|
|
||||||
<empty list>
|
|
||||||
PsiElement(RBRACE)('}')
|
|
||||||
PsiWhiteSpace('\n\n')
|
|
||||||
NAMESPACE
|
|
||||||
NAMESPACE_HEADER
|
|
||||||
PsiElement(namespace)('package')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(IDENTIFIER)('bar')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(LBRACE)('{')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
NAMESPACE_BODY
|
|
||||||
IMPORT_DIRECTIVE
|
|
||||||
PsiElement(import)('import')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('sdf')
|
|
||||||
PsiWhiteSpace('\n\n')
|
|
||||||
PsiElement(RBRACE)('}')
|
|
||||||
@@ -2,37 +2,43 @@ JetFile: NamespaceBlockFirst.jet
|
|||||||
NAMESPACE
|
NAMESPACE
|
||||||
NAMESPACE_HEADER
|
NAMESPACE_HEADER
|
||||||
<empty list>
|
<empty list>
|
||||||
NAMESPACE
|
PsiErrorElement:Expecting namespace or top level declaration
|
||||||
NAMESPACE_HEADER
|
PsiElement(namespace)('package')
|
||||||
PsiElement(namespace)('package')
|
PsiWhiteSpace(' ')
|
||||||
PsiWhiteSpace(' ')
|
MODIFIER_LIST
|
||||||
PsiElement(IDENTIFIER)('foobar')
|
ANNOTATION_ENTRY
|
||||||
PsiWhiteSpace(' ')
|
CONSTRUCTOR_CALLEE
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('foobar')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiErrorElement:Expecting namespace or top level declaration
|
||||||
PsiElement(LBRACE)('{')
|
PsiElement(LBRACE)('{')
|
||||||
PsiWhiteSpace('\n ')
|
PsiWhiteSpace('\n ')
|
||||||
NAMESPACE_BODY
|
PROPERTY
|
||||||
PROPERTY
|
PsiElement(val)('val')
|
||||||
PsiElement(val)('val')
|
PsiWhiteSpace(' ')
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(IDENTIFIER)('a')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(EQ)('=')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
INTEGER_CONSTANT
|
||||||
|
PsiElement(INTEGER_LITERAL)('1')
|
||||||
|
PsiWhiteSpace('\n ')
|
||||||
|
PROPERTY
|
||||||
|
PsiElement(val)('val')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(IDENTIFIER)('b')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(EQ)('=')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
DOT_QUALIFIED_EXPRESSION
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('foobar')
|
||||||
|
PsiElement(DOT)('.')
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace('\n')
|
||||||
PsiElement(EQ)('=')
|
PsiErrorElement:Expecting namespace or top level declaration
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
INTEGER_CONSTANT
|
|
||||||
PsiElement(INTEGER_LITERAL)('1')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
PROPERTY
|
|
||||||
PsiElement(val)('val')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(IDENTIFIER)('b')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(EQ)('=')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
DOT_QUALIFIED_EXPRESSION
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('foobar')
|
|
||||||
PsiElement(DOT)('.')
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('a')
|
|
||||||
PsiWhiteSpace('\n')
|
|
||||||
PsiElement(RBRACE)('}')
|
PsiElement(RBRACE)('}')
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
package foo.bar.goo
|
|
||||||
|
|
||||||
import foo as
|
|
||||||
import foo.
|
|
||||||
import foo.bar.
|
|
||||||
import foo. as bar
|
|
||||||
|
|
||||||
package foof {
|
|
||||||
import foo.bar.* as bar
|
|
||||||
import foo as ;
|
|
||||||
import foo. ;
|
|
||||||
import foo.bar. ;
|
|
||||||
import foo. as bar ;
|
|
||||||
import foo.bar.* as bar ;
|
|
||||||
import foo.bar.* as ;
|
|
||||||
|
|
||||||
package foo
|
|
||||||
|
|
||||||
class Foo {}
|
|
||||||
package {
|
|
||||||
class Bar {}
|
|
||||||
|
|
||||||
package ns {
|
|
||||||
class X
|
|
||||||
|
|
||||||
class Y
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
dsfgd
|
|
||||||
|
|
||||||
class Bar<T> {}
|
|
||||||
|
|
||||||
package foo
|
|
||||||
|
|
||||||
package {}
|
|
||||||
|
|
||||||
package bar {
|
|
||||||
import sdf
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,318 +0,0 @@
|
|||||||
JetFile: NamespaceBlock_ERR.jet
|
|
||||||
NAMESPACE
|
|
||||||
NAMESPACE_HEADER
|
|
||||||
PsiElement(namespace)('package')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('foo')
|
|
||||||
PsiElement(DOT)('.')
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('bar')
|
|
||||||
PsiElement(DOT)('.')
|
|
||||||
PsiElement(IDENTIFIER)('goo')
|
|
||||||
PsiWhiteSpace('\n\n')
|
|
||||||
IMPORT_DIRECTIVE
|
|
||||||
PsiElement(import)('import')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('foo')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(as)('as')
|
|
||||||
PsiWhiteSpace('\n')
|
|
||||||
PsiElement(IDENTIFIER)('import')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
NAMESPACE
|
|
||||||
MODIFIER_LIST
|
|
||||||
ANNOTATION_ENTRY
|
|
||||||
CONSTRUCTOR_CALLEE
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('foo')
|
|
||||||
PsiElement(DOT)('.')
|
|
||||||
PsiWhiteSpace('\n')
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('import')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
ANNOTATION_ENTRY
|
|
||||||
CONSTRUCTOR_CALLEE
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
USER_TYPE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('foo')
|
|
||||||
PsiElement(DOT)('.')
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('bar')
|
|
||||||
PsiElement(DOT)('.')
|
|
||||||
PsiWhiteSpace('\n')
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('import')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
ANNOTATION_ENTRY
|
|
||||||
CONSTRUCTOR_CALLEE
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('foo')
|
|
||||||
PsiElement(DOT)('.')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiErrorElement:Expecting type name
|
|
||||||
PsiElement(as)('as')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
ANNOTATION_ENTRY
|
|
||||||
CONSTRUCTOR_CALLEE
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('bar')
|
|
||||||
PsiWhiteSpace('\n\n')
|
|
||||||
NAMESPACE_HEADER
|
|
||||||
PsiElement(namespace)('package')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(IDENTIFIER)('foof')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(LBRACE)('{')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
NAMESPACE_BODY
|
|
||||||
IMPORT_DIRECTIVE
|
|
||||||
PsiElement(import)('import')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
DOT_QUALIFIED_EXPRESSION
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('foo')
|
|
||||||
PsiElement(DOT)('.')
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('bar')
|
|
||||||
PsiElement(DOT)('.')
|
|
||||||
PsiElement(MUL)('*')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiErrorElement:Cannot rename a all imported items to one identifier
|
|
||||||
PsiElement(as)('as')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(IDENTIFIER)('bar')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
IMPORT_DIRECTIVE
|
|
||||||
PsiElement(import)('import')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('foo')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(as)('as')
|
|
||||||
PsiErrorElement:Expecting identifier
|
|
||||||
<empty list>
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(SEMICOLON)(';')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
IMPORT_DIRECTIVE
|
|
||||||
PsiElement(import)('import')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
DOT_QUALIFIED_EXPRESSION
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('foo')
|
|
||||||
PsiElement(DOT)('.')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiErrorElement:Qualified name must be a '.'-separated identifier list
|
|
||||||
<empty list>
|
|
||||||
PsiElement(SEMICOLON)(';')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
IMPORT_DIRECTIVE
|
|
||||||
PsiElement(import)('import')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
DOT_QUALIFIED_EXPRESSION
|
|
||||||
DOT_QUALIFIED_EXPRESSION
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('foo')
|
|
||||||
PsiElement(DOT)('.')
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('bar')
|
|
||||||
PsiElement(DOT)('.')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiErrorElement:Qualified name must be a '.'-separated identifier list
|
|
||||||
<empty list>
|
|
||||||
PsiElement(SEMICOLON)(';')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
IMPORT_DIRECTIVE
|
|
||||||
PsiElement(import)('import')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
DOT_QUALIFIED_EXPRESSION
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('foo')
|
|
||||||
PsiElement(DOT)('.')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiErrorElement:Qualified name must be a '.'-separated identifier list
|
|
||||||
<empty list>
|
|
||||||
PsiElement(as)('as')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(IDENTIFIER)('bar')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(SEMICOLON)(';')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
IMPORT_DIRECTIVE
|
|
||||||
PsiElement(import)('import')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
DOT_QUALIFIED_EXPRESSION
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('foo')
|
|
||||||
PsiElement(DOT)('.')
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('bar')
|
|
||||||
PsiElement(DOT)('.')
|
|
||||||
PsiElement(MUL)('*')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiErrorElement:Cannot rename a all imported items to one identifier
|
|
||||||
PsiElement(as)('as')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(IDENTIFIER)('bar')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(SEMICOLON)(';')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
IMPORT_DIRECTIVE
|
|
||||||
PsiElement(import)('import')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
DOT_QUALIFIED_EXPRESSION
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('foo')
|
|
||||||
PsiElement(DOT)('.')
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('bar')
|
|
||||||
PsiElement(DOT)('.')
|
|
||||||
PsiElement(MUL)('*')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiErrorElement:Cannot rename a all imported items to one identifier
|
|
||||||
PsiElement(as)('as')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(SEMICOLON)(';')
|
|
||||||
PsiWhiteSpace('\n\n ')
|
|
||||||
NAMESPACE
|
|
||||||
NAMESPACE_HEADER
|
|
||||||
PsiElement(namespace)('package')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(IDENTIFIER)('foo')
|
|
||||||
PsiErrorElement:A namespace block in '{...}' expected
|
|
||||||
<empty list>
|
|
||||||
PsiWhiteSpace('\n\n ')
|
|
||||||
CLASS
|
|
||||||
PsiElement(class)('class')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(IDENTIFIER)('Foo')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_PARAMETER_LIST
|
|
||||||
<empty list>
|
|
||||||
CLASS_BODY
|
|
||||||
PsiElement(LBRACE)('{')
|
|
||||||
PsiElement(RBRACE)('}')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
NAMESPACE
|
|
||||||
NAMESPACE_HEADER
|
|
||||||
PsiElement(namespace)('package')
|
|
||||||
PsiErrorElement:Expecting namespace name
|
|
||||||
<empty list>
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(LBRACE)('{')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
NAMESPACE_BODY
|
|
||||||
CLASS
|
|
||||||
PsiElement(class)('class')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(IDENTIFIER)('Bar')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_PARAMETER_LIST
|
|
||||||
<empty list>
|
|
||||||
CLASS_BODY
|
|
||||||
PsiElement(LBRACE)('{')
|
|
||||||
PsiElement(RBRACE)('}')
|
|
||||||
PsiWhiteSpace('\n\n ')
|
|
||||||
NAMESPACE
|
|
||||||
NAMESPACE_HEADER
|
|
||||||
PsiElement(namespace)('package')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(IDENTIFIER)('ns')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(LBRACE)('{')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
NAMESPACE_BODY
|
|
||||||
CLASS
|
|
||||||
PsiElement(class)('class')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(IDENTIFIER)('X')
|
|
||||||
PsiWhiteSpace('\n\n ')
|
|
||||||
TYPE_PARAMETER_LIST
|
|
||||||
<empty list>
|
|
||||||
CLASS
|
|
||||||
PsiElement(class)('class')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(IDENTIFIER)('Y')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
TYPE_PARAMETER_LIST
|
|
||||||
<empty list>
|
|
||||||
PsiElement(RBRACE)('}')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
PsiElement(RBRACE)('}')
|
|
||||||
PsiWhiteSpace('\n')
|
|
||||||
PsiElement(RBRACE)('}')
|
|
||||||
PsiWhiteSpace('\n\n')
|
|
||||||
CLASS
|
|
||||||
MODIFIER_LIST
|
|
||||||
ANNOTATION_ENTRY
|
|
||||||
CONSTRUCTOR_CALLEE
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('dsfgd')
|
|
||||||
PsiWhiteSpace('\n\n')
|
|
||||||
PsiElement(class)('class')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(IDENTIFIER)('Bar')
|
|
||||||
TYPE_PARAMETER_LIST
|
|
||||||
PsiElement(LT)('<')
|
|
||||||
TYPE_PARAMETER
|
|
||||||
PsiElement(IDENTIFIER)('T')
|
|
||||||
PsiElement(GT)('>')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
CLASS_BODY
|
|
||||||
PsiElement(LBRACE)('{')
|
|
||||||
PsiElement(RBRACE)('}')
|
|
||||||
PsiWhiteSpace('\n\n')
|
|
||||||
NAMESPACE
|
|
||||||
NAMESPACE_HEADER
|
|
||||||
PsiElement(namespace)('package')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(IDENTIFIER)('foo')
|
|
||||||
PsiErrorElement:A namespace block in '{...}' expected
|
|
||||||
<empty list>
|
|
||||||
PsiWhiteSpace('\n\n')
|
|
||||||
NAMESPACE
|
|
||||||
NAMESPACE_HEADER
|
|
||||||
PsiElement(namespace)('package')
|
|
||||||
PsiErrorElement:Expecting namespace name
|
|
||||||
<empty list>
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(LBRACE)('{')
|
|
||||||
NAMESPACE_BODY
|
|
||||||
<empty list>
|
|
||||||
PsiElement(RBRACE)('}')
|
|
||||||
PsiWhiteSpace('\n\n')
|
|
||||||
NAMESPACE
|
|
||||||
NAMESPACE_HEADER
|
|
||||||
PsiElement(namespace)('package')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(IDENTIFIER)('bar')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(LBRACE)('{')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
NAMESPACE_BODY
|
|
||||||
IMPORT_DIRECTIVE
|
|
||||||
PsiElement(import)('import')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('sdf')
|
|
||||||
PsiWhiteSpace('\n\n')
|
|
||||||
PsiElement(RBRACE)('}')
|
|
||||||
@@ -1,9 +1 @@
|
|||||||
public [a] package name;
|
public [a] package name
|
||||||
|
|
||||||
[a] package a {
|
|
||||||
val foo
|
|
||||||
|
|
||||||
private package b {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -17,46 +17,3 @@ JetFile: NamespaceModifiers.jet
|
|||||||
PsiElement(namespace)('package')
|
PsiElement(namespace)('package')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('name')
|
PsiElement(IDENTIFIER)('name')
|
||||||
PsiElement(SEMICOLON)(';')
|
|
||||||
PsiWhiteSpace('\n\n')
|
|
||||||
NAMESPACE
|
|
||||||
MODIFIER_LIST
|
|
||||||
ANNOTATION
|
|
||||||
PsiElement(LBRACKET)('[')
|
|
||||||
ANNOTATION_ENTRY
|
|
||||||
CONSTRUCTOR_CALLEE
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('a')
|
|
||||||
PsiElement(RBRACKET)(']')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
NAMESPACE_HEADER
|
|
||||||
PsiElement(namespace)('package')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(IDENTIFIER)('a')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(LBRACE)('{')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
NAMESPACE_BODY
|
|
||||||
PROPERTY
|
|
||||||
PsiElement(val)('val')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(IDENTIFIER)('foo')
|
|
||||||
PsiWhiteSpace('\n\n ')
|
|
||||||
NAMESPACE
|
|
||||||
MODIFIER_LIST
|
|
||||||
PsiElement(private)('private')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
NAMESPACE_HEADER
|
|
||||||
PsiElement(namespace)('package')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(IDENTIFIER)('b')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(LBRACE)('{')
|
|
||||||
PsiWhiteSpace('\n\n ')
|
|
||||||
NAMESPACE_BODY
|
|
||||||
<empty list>
|
|
||||||
PsiElement(RBRACE)('}')
|
|
||||||
PsiWhiteSpace('\n')
|
|
||||||
PsiElement(RBRACE)('}')
|
|
||||||
@@ -16,112 +16,119 @@ JetFile: RootNamespace.jet
|
|||||||
PsiWhiteSpace('\n\n')
|
PsiWhiteSpace('\n\n')
|
||||||
TYPE_PARAMETER_LIST
|
TYPE_PARAMETER_LIST
|
||||||
<empty list>
|
<empty list>
|
||||||
NAMESPACE
|
PsiErrorElement:Expecting namespace or top level declaration
|
||||||
NAMESPACE_HEADER
|
PsiElement(namespace)('package')
|
||||||
PsiElement(namespace)('package')
|
PsiWhiteSpace(' ')
|
||||||
PsiWhiteSpace(' ')
|
MODIFIER_LIST
|
||||||
REFERENCE_EXPRESSION
|
ANNOTATION_ENTRY
|
||||||
PsiElement(IDENTIFIER)('foo')
|
CONSTRUCTOR_CALLEE
|
||||||
PsiElement(DOT)('.')
|
TYPE_REFERENCE
|
||||||
PsiElement(IDENTIFIER)('bar')
|
USER_TYPE
|
||||||
PsiWhiteSpace(' ')
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('foo')
|
||||||
|
PsiElement(DOT)('.')
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('bar')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiErrorElement:Expecting namespace or top level declaration
|
||||||
PsiElement(LBRACE)('{')
|
PsiElement(LBRACE)('{')
|
||||||
PsiWhiteSpace('\n ')
|
PsiWhiteSpace('\n ')
|
||||||
NAMESPACE_BODY
|
FUN
|
||||||
FUN
|
PsiElement(fun)('fun')
|
||||||
PsiElement(fun)('fun')
|
PsiWhiteSpace(' ')
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
PsiElement(IDENTIFIER)('foo')
|
VALUE_PARAMETER_LIST
|
||||||
VALUE_PARAMETER_LIST
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(RPAR)(')')
|
||||||
PsiElement(RPAR)(')')
|
PsiWhiteSpace(' ')
|
||||||
PsiWhiteSpace(' ')
|
BLOCK
|
||||||
BLOCK
|
PsiElement(LBRACE)('{')
|
||||||
PsiElement(LBRACE)('{')
|
PsiWhiteSpace('\n ')
|
||||||
PsiWhiteSpace('\n ')
|
DOT_QUALIFIED_EXPRESSION
|
||||||
|
DOT_QUALIFIED_EXPRESSION
|
||||||
DOT_QUALIFIED_EXPRESSION
|
DOT_QUALIFIED_EXPRESSION
|
||||||
DOT_QUALIFIED_EXPRESSION
|
ROOT_NAMESPACE
|
||||||
DOT_QUALIFIED_EXPRESSION
|
PsiElement(namespace)('package')
|
||||||
ROOT_NAMESPACE
|
|
||||||
PsiElement(namespace)('package')
|
|
||||||
PsiElement(DOT)('.')
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('foo')
|
|
||||||
PsiElement(DOT)('.')
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('bar')
|
|
||||||
PsiElement(DOT)('.')
|
PsiElement(DOT)('.')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('X')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
PsiWhiteSpace('\n ')
|
PsiElement(DOT)('.')
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('bar')
|
||||||
|
PsiElement(DOT)('.')
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('X')
|
||||||
|
PsiWhiteSpace('\n ')
|
||||||
|
DOT_QUALIFIED_EXPRESSION
|
||||||
|
DOT_QUALIFIED_EXPRESSION
|
||||||
DOT_QUALIFIED_EXPRESSION
|
DOT_QUALIFIED_EXPRESSION
|
||||||
DOT_QUALIFIED_EXPRESSION
|
ROOT_NAMESPACE
|
||||||
DOT_QUALIFIED_EXPRESSION
|
PsiElement(namespace)('package')
|
||||||
ROOT_NAMESPACE
|
|
||||||
PsiElement(namespace)('package')
|
|
||||||
PsiElement(DOT)('.')
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('foo')
|
|
||||||
PsiElement(DOT)('.')
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('bar')
|
|
||||||
PsiElement(DOT)('.')
|
PsiElement(DOT)('.')
|
||||||
CALL_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
REFERENCE_EXPRESSION
|
PsiElement(IDENTIFIER)('foo')
|
||||||
PsiElement(IDENTIFIER)('X')
|
PsiElement(DOT)('.')
|
||||||
VALUE_ARGUMENT_LIST
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(IDENTIFIER)('bar')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(DOT)('.')
|
||||||
PsiWhiteSpace('\n ')
|
CALL_EXPRESSION
|
||||||
WHEN
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(when)('when')
|
PsiElement(IDENTIFIER)('X')
|
||||||
PsiWhiteSpace(' ')
|
VALUE_ARGUMENT_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('e')
|
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
|
PsiWhiteSpace('\n ')
|
||||||
|
WHEN
|
||||||
|
PsiElement(when)('when')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(LPAR)('(')
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('e')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(LBRACE)('{')
|
||||||
|
PsiWhiteSpace('\n ')
|
||||||
|
WHEN_ENTRY
|
||||||
|
WHEN_CONDITION_IS_PATTERN
|
||||||
|
PsiElement(is)('is')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(LBRACE)('{')
|
DECOMPOSER_PATTERN
|
||||||
PsiWhiteSpace('\n ')
|
DOT_QUALIFIED_EXPRESSION
|
||||||
WHEN_ENTRY
|
DOT_QUALIFIED_EXPRESSION
|
||||||
WHEN_CONDITION_IS_PATTERN
|
|
||||||
PsiElement(is)('is')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
DECOMPOSER_PATTERN
|
|
||||||
DOT_QUALIFIED_EXPRESSION
|
DOT_QUALIFIED_EXPRESSION
|
||||||
DOT_QUALIFIED_EXPRESSION
|
ROOT_NAMESPACE
|
||||||
DOT_QUALIFIED_EXPRESSION
|
PsiElement(namespace)('package')
|
||||||
ROOT_NAMESPACE
|
|
||||||
PsiElement(namespace)('package')
|
|
||||||
PsiElement(DOT)('.')
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('foo')
|
|
||||||
PsiElement(DOT)('.')
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('bar')
|
|
||||||
PsiElement(DOT)('.')
|
PsiElement(DOT)('.')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('X')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(DOT)('.')
|
||||||
DECOMPOSER_ARGUMENT_LIST
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(HASH)('#')
|
PsiElement(IDENTIFIER)('bar')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(DOT)('.')
|
||||||
TUPLE_PATTERN_ENTRY
|
REFERENCE_EXPRESSION
|
||||||
TYPE_PATTERN
|
PsiElement(IDENTIFIER)('X')
|
||||||
TYPE_REFERENCE
|
PsiWhiteSpace(' ')
|
||||||
USER_TYPE
|
DECOMPOSER_ARGUMENT_LIST
|
||||||
REFERENCE_EXPRESSION
|
PsiElement(HASH)('#')
|
||||||
PsiElement(IDENTIFIER)('x')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
TUPLE_PATTERN_ENTRY
|
||||||
PsiWhiteSpace(' ')
|
TYPE_PATTERN
|
||||||
PsiElement(ARROW)('->')
|
TYPE_REFERENCE
|
||||||
PsiWhiteSpace(' ')
|
USER_TYPE
|
||||||
BLOCK
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(LBRACE)('{')
|
PsiElement(IDENTIFIER)('x')
|
||||||
PsiElement(RBRACE)('}')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace('\n ')
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(ARROW)('->')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
BLOCK
|
||||||
|
PsiElement(LBRACE)('{')
|
||||||
PsiElement(RBRACE)('}')
|
PsiElement(RBRACE)('}')
|
||||||
PsiWhiteSpace('\n ')
|
PsiWhiteSpace('\n ')
|
||||||
PsiElement(RBRACE)('}')
|
PsiElement(RBRACE)('}')
|
||||||
PsiWhiteSpace('\n')
|
PsiWhiteSpace('\n ')
|
||||||
|
PsiElement(RBRACE)('}')
|
||||||
|
PsiWhiteSpace('\n')
|
||||||
|
PsiErrorElement:Expecting namespace or top level declaration
|
||||||
PsiElement(RBRACE)('}')
|
PsiElement(RBRACE)('}')
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
foo bar(1) buzz<T>(1) zoo package aa
|
foo bar(1) buzz<T>(1) zoo package aa
|
||||||
|
|
||||||
foo bar(1) buzz<T>(1) zoo package a {}
|
|
||||||
foo bar(1) buzz<T>(1) zoo class A
|
foo bar(1) buzz<T>(1) zoo class A
|
||||||
foo bar(1) buzz<T>(1) zoo object B
|
foo bar(1) buzz<T>(1) zoo object B
|
||||||
foo bar(1) buzz<T>(1) zoo fun a() {}
|
foo bar(1) buzz<T>(1) zoo fun a() {}
|
||||||
|
|||||||
@@ -54,66 +54,6 @@ JetFile: ShortAnnotations.jet
|
|||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('aa')
|
PsiElement(IDENTIFIER)('aa')
|
||||||
PsiWhiteSpace('\n\n')
|
PsiWhiteSpace('\n\n')
|
||||||
NAMESPACE
|
|
||||||
MODIFIER_LIST
|
|
||||||
ANNOTATION_ENTRY
|
|
||||||
CONSTRUCTOR_CALLEE
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('foo')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
ANNOTATION_ENTRY
|
|
||||||
CONSTRUCTOR_CALLEE
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('bar')
|
|
||||||
VALUE_ARGUMENT_LIST
|
|
||||||
PsiElement(LPAR)('(')
|
|
||||||
VALUE_ARGUMENT
|
|
||||||
INTEGER_CONSTANT
|
|
||||||
PsiElement(INTEGER_LITERAL)('1')
|
|
||||||
PsiElement(RPAR)(')')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
ANNOTATION_ENTRY
|
|
||||||
CONSTRUCTOR_CALLEE
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('buzz')
|
|
||||||
TYPE_ARGUMENT_LIST
|
|
||||||
PsiElement(LT)('<')
|
|
||||||
TYPE_PROJECTION
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('T')
|
|
||||||
PsiElement(GT)('>')
|
|
||||||
VALUE_ARGUMENT_LIST
|
|
||||||
PsiElement(LPAR)('(')
|
|
||||||
VALUE_ARGUMENT
|
|
||||||
INTEGER_CONSTANT
|
|
||||||
PsiElement(INTEGER_LITERAL)('1')
|
|
||||||
PsiElement(RPAR)(')')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
ANNOTATION_ENTRY
|
|
||||||
CONSTRUCTOR_CALLEE
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('zoo')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
NAMESPACE_HEADER
|
|
||||||
PsiElement(namespace)('package')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(IDENTIFIER)('a')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(LBRACE)('{')
|
|
||||||
NAMESPACE_BODY
|
|
||||||
<empty list>
|
|
||||||
PsiElement(RBRACE)('}')
|
|
||||||
PsiWhiteSpace('\n')
|
|
||||||
CLASS
|
CLASS
|
||||||
MODIFIER_LIST
|
MODIFIER_LIST
|
||||||
ANNOTATION_ENTRY
|
ANNOTATION_ENTRY
|
||||||
|
|||||||
@@ -1,19 +1,19 @@
|
|||||||
//package a {
|
//package a {
|
||||||
val afoo = abar()
|
val afoo = abar()
|
||||||
|
|
||||||
fun bar() = <error descr="[TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM] Type checking has run into a recursive problem">foo</error>
|
fun abar() = <error descr="[TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM] Type checking has run into a recursive problem. Easiest workaround: specify types of your declarations explicitly">afoo</error>
|
||||||
}
|
//}
|
||||||
|
|
||||||
//package b {
|
//package b {
|
||||||
fun bfoo() = bbar()
|
fun bfoo() = bbar()
|
||||||
|
|
||||||
fun bar() = <error descr="[TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM] Type checking has run into a recursive problem">foo()</error>
|
fun bbar() = <error descr="[TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM] Type checking has run into a recursive problem. Easiest workaround: specify types of your declarations explicitly">bfoo()</error>
|
||||||
}
|
//}
|
||||||
|
|
||||||
//package c {
|
//package c {
|
||||||
fun cbazz() = cbar()
|
fun cbazz() = cbar()
|
||||||
|
|
||||||
fun foo() = <error descr="[TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM] Type checking has run into a recursive problem">bazz()</error>
|
fun cfoo() = <error descr="[TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM] Type checking has run into a recursive problem. Easiest workaround: specify types of your declarations explicitly">cbazz()</error>
|
||||||
|
|
||||||
fun cbar() = cfoo()
|
fun cbar() = cfoo()
|
||||||
//}
|
//}
|
||||||
|
|||||||
Reference in New Issue
Block a user