GreatSyntacticShift: Parser test data fixed
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
namespace foo.bar.goo
|
package foo.bar.goo
|
||||||
|
|
||||||
abstract
|
abstract
|
||||||
open
|
open
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
JetFile: Attributes.jet
|
JetFile: Attributes.jet
|
||||||
NAMESPACE
|
NAMESPACE
|
||||||
NAMESPACE_HEADER
|
NAMESPACE_HEADER
|
||||||
PsiElement(namespace)('namespace')
|
PsiElement(namespace)('package')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
fun foo() {
|
fun foo() {
|
||||||
|
|
||||||
when (e) {
|
when (e) {
|
||||||
is [a] val a => d
|
is [a] val a -> d
|
||||||
is [a] val a is foo => d
|
is [a] val a is foo -> d
|
||||||
is [a] * => d
|
is [a] * -> d
|
||||||
is [a] 2 => d
|
is [a] 2 -> d
|
||||||
is [a] T => d
|
is [a] T -> d
|
||||||
is [a] T @ () => d
|
is [a] T #() -> d
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ JetFile: AttributesOnPatterns.jet
|
|||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('d')
|
PsiElement(IDENTIFIER)('d')
|
||||||
@@ -77,7 +77,7 @@ JetFile: AttributesOnPatterns.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('d')
|
PsiElement(IDENTIFIER)('d')
|
||||||
@@ -99,7 +99,7 @@ JetFile: AttributesOnPatterns.jet
|
|||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(MUL)('*')
|
PsiElement(MUL)('*')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('d')
|
PsiElement(IDENTIFIER)('d')
|
||||||
@@ -122,7 +122,7 @@ JetFile: AttributesOnPatterns.jet
|
|||||||
INTEGER_CONSTANT
|
INTEGER_CONSTANT
|
||||||
PsiElement(INTEGER_LITERAL)('2')
|
PsiElement(INTEGER_LITERAL)('2')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('d')
|
PsiElement(IDENTIFIER)('d')
|
||||||
@@ -147,7 +147,7 @@ JetFile: AttributesOnPatterns.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('T')
|
PsiElement(IDENTIFIER)('T')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('d')
|
PsiElement(IDENTIFIER)('d')
|
||||||
@@ -169,14 +169,13 @@ JetFile: AttributesOnPatterns.jet
|
|||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('T')
|
PsiElement(IDENTIFIER)('T')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(AT)('@')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
DECOMPOSER_ARGUMENT_LIST
|
DECOMPOSER_ARGUMENT_LIST
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('d')
|
PsiElement(IDENTIFIER)('d')
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace foo.bar.goo
|
package foo.bar.goo
|
||||||
|
|
||||||
abstract
|
abstract
|
||||||
open
|
open
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
JetFile: Attributes_ERR.jet
|
JetFile: Attributes_ERR.jet
|
||||||
NAMESPACE
|
NAMESPACE
|
||||||
NAMESPACE_HEADER
|
NAMESPACE_HEADER
|
||||||
PsiElement(namespace)('namespace')
|
PsiElement(namespace)('package')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace foo
|
package foo
|
||||||
|
|
||||||
class Runnable<a,a>(a : doo = 0) : foo(d=0), bar by x, bar {
|
class Runnable<a,a>(a : doo = 0) : foo(d=0), bar by x, bar {
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
JetFile: BabySteps.jet
|
JetFile: BabySteps.jet
|
||||||
NAMESPACE
|
NAMESPACE
|
||||||
NAMESPACE_HEADER
|
NAMESPACE_HEADER
|
||||||
PsiElement(namespace)('namespace')
|
PsiElement(namespace)('package')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
PsiWhiteSpace('\n\n')
|
PsiWhiteSpace('\n\n')
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace foo
|
package foo
|
||||||
|
|
||||||
class Runnable<a,a>(a : doo = 0) : foo(d=0), ,bar by x, bar {
|
class Runnable<a,a>(a : doo = 0) : foo(d=0), ,bar by x, bar {
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
JetFile: BabySteps_ERR.jet
|
JetFile: BabySteps_ERR.jet
|
||||||
NAMESPACE
|
NAMESPACE
|
||||||
NAMESPACE_HEADER
|
NAMESPACE_HEADER
|
||||||
PsiElement(namespace)('namespace')
|
PsiElement(namespace)('package')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
PsiWhiteSpace('\n\n')
|
PsiWhiteSpace('\n\n')
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
fun foo() {
|
fun foo() {
|
||||||
when (a) {
|
when (a) {
|
||||||
a.foo => a
|
a.foo -> a
|
||||||
a.foo() => a
|
a.foo() -> a
|
||||||
a.foo<T> => a
|
a.foo<T> -> a
|
||||||
a.foo<T>(a) => a
|
a.foo<T>(a) -> a
|
||||||
a.foo<T>(a, d) => a
|
a.foo<T>(a, d) -> a
|
||||||
a.{bar} => a
|
a.{bar} -> a
|
||||||
a.{!bar} => a
|
a.{!bar} -> a
|
||||||
a.{() => !bar} => a
|
a.{() -> !bar} -> a
|
||||||
else => a
|
else -> a
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ JetFile: CallsInWhen.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
@@ -52,7 +52,7 @@ JetFile: CallsInWhen.jet
|
|||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
@@ -76,7 +76,7 @@ JetFile: CallsInWhen.jet
|
|||||||
PsiElement(IDENTIFIER)('T')
|
PsiElement(IDENTIFIER)('T')
|
||||||
PsiElement(GT)('>')
|
PsiElement(GT)('>')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
@@ -106,7 +106,7 @@ JetFile: CallsInWhen.jet
|
|||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
@@ -141,7 +141,7 @@ JetFile: CallsInWhen.jet
|
|||||||
PsiElement(IDENTIFIER)('d')
|
PsiElement(IDENTIFIER)('d')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
@@ -161,7 +161,7 @@ JetFile: CallsInWhen.jet
|
|||||||
PsiElement(IDENTIFIER)('bar')
|
PsiElement(IDENTIFIER)('bar')
|
||||||
PsiElement(RBRACE)('}')
|
PsiElement(RBRACE)('}')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
@@ -184,7 +184,7 @@ JetFile: CallsInWhen.jet
|
|||||||
PsiElement(IDENTIFIER)('bar')
|
PsiElement(IDENTIFIER)('bar')
|
||||||
PsiElement(RBRACE)('}')
|
PsiElement(RBRACE)('}')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
@@ -203,7 +203,7 @@ JetFile: CallsInWhen.jet
|
|||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BLOCK
|
BLOCK
|
||||||
PREFIX_EXPRESSION
|
PREFIX_EXPRESSION
|
||||||
@@ -213,7 +213,7 @@ JetFile: CallsInWhen.jet
|
|||||||
PsiElement(IDENTIFIER)('bar')
|
PsiElement(IDENTIFIER)('bar')
|
||||||
PsiElement(RBRACE)('}')
|
PsiElement(RBRACE)('}')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
@@ -221,7 +221,7 @@ JetFile: CallsInWhen.jet
|
|||||||
WHEN_ENTRY
|
WHEN_ENTRY
|
||||||
PsiElement(else)('else')
|
PsiElement(else)('else')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
/namespace foo.bar
|
/package foo.bar
|
||||||
import foo
|
import foo
|
||||||
@@ -6,7 +6,7 @@ JetFile: FileStart_ERR.jet
|
|||||||
PsiElement(DIV)('/')
|
PsiElement(DIV)('/')
|
||||||
NAMESPACE
|
NAMESPACE
|
||||||
NAMESPACE_HEADER
|
NAMESPACE_HEADER
|
||||||
PsiElement(namespace)('namespace')
|
PsiElement(namespace)('package')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
|
|||||||
@@ -3,28 +3,28 @@ fun foo() {
|
|||||||
|
|
||||||
{foo}
|
{foo}
|
||||||
|
|
||||||
{a => a}
|
{a -> a}
|
||||||
|
|
||||||
{(a) => a}
|
{(a) -> a}
|
||||||
{(a : A) => a}
|
{(a : A) -> a}
|
||||||
{(a : A) : T => a}
|
{(a : A) : T -> a}
|
||||||
{(a) : T => a}
|
{(a) : T -> a}
|
||||||
|
|
||||||
{(a, a) => a}
|
{(a, a) -> a}
|
||||||
{(a : A, a : B) => a}
|
{(a : A, a : B) -> a}
|
||||||
{(a : A, a) : T => a}
|
{(a : A, a) : T -> a}
|
||||||
{(a, a : B) : T => a}
|
{(a, a : B) : T -> a}
|
||||||
|
|
||||||
{() => a}
|
{() -> a}
|
||||||
{() => a}
|
{() -> a}
|
||||||
{() : T => a}
|
{() : T -> a}
|
||||||
{() : T => a}
|
{() : T -> a}
|
||||||
|
|
||||||
{T.(a) => a}
|
{T.(a) -> a}
|
||||||
{T.(a : A) => a}
|
{T.(a : A) -> a}
|
||||||
{T.(a : A) : T => a}
|
{T.(a : A) : T -> a}
|
||||||
{T.(a) : T => a}
|
{T.(a) : T -> a}
|
||||||
|
|
||||||
{x, y => 1}
|
{x, y -> 1}
|
||||||
{[a] x, [b] y, [c] z => 1}
|
{[a] x, [b] y, [c] z -> 1}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ JetFile: FunctionLiterals.jet
|
|||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BLOCK
|
BLOCK
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -51,7 +51,7 @@ JetFile: FunctionLiterals.jet
|
|||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BLOCK
|
BLOCK
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -74,7 +74,7 @@ JetFile: FunctionLiterals.jet
|
|||||||
PsiElement(IDENTIFIER)('A')
|
PsiElement(IDENTIFIER)('A')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BLOCK
|
BLOCK
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -104,7 +104,7 @@ JetFile: FunctionLiterals.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('T')
|
PsiElement(IDENTIFIER)('T')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BLOCK
|
BLOCK
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -127,7 +127,7 @@ JetFile: FunctionLiterals.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('T')
|
PsiElement(IDENTIFIER)('T')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BLOCK
|
BLOCK
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -147,7 +147,7 @@ JetFile: FunctionLiterals.jet
|
|||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BLOCK
|
BLOCK
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -181,7 +181,7 @@ JetFile: FunctionLiterals.jet
|
|||||||
PsiElement(IDENTIFIER)('B')
|
PsiElement(IDENTIFIER)('B')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BLOCK
|
BLOCK
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -215,7 +215,7 @@ JetFile: FunctionLiterals.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('T')
|
PsiElement(IDENTIFIER)('T')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BLOCK
|
BLOCK
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -249,7 +249,7 @@ JetFile: FunctionLiterals.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('T')
|
PsiElement(IDENTIFIER)('T')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BLOCK
|
BLOCK
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -263,7 +263,7 @@ JetFile: FunctionLiterals.jet
|
|||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BLOCK
|
BLOCK
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -277,7 +277,7 @@ JetFile: FunctionLiterals.jet
|
|||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BLOCK
|
BLOCK
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -298,7 +298,7 @@ JetFile: FunctionLiterals.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('T')
|
PsiElement(IDENTIFIER)('T')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BLOCK
|
BLOCK
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -319,7 +319,7 @@ JetFile: FunctionLiterals.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('T')
|
PsiElement(IDENTIFIER)('T')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BLOCK
|
BLOCK
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -340,7 +340,7 @@ JetFile: FunctionLiterals.jet
|
|||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BLOCK
|
BLOCK
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -368,7 +368,7 @@ JetFile: FunctionLiterals.jet
|
|||||||
PsiElement(IDENTIFIER)('A')
|
PsiElement(IDENTIFIER)('A')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BLOCK
|
BLOCK
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -403,7 +403,7 @@ JetFile: FunctionLiterals.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('T')
|
PsiElement(IDENTIFIER)('T')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BLOCK
|
BLOCK
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -431,7 +431,7 @@ JetFile: FunctionLiterals.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('T')
|
PsiElement(IDENTIFIER)('T')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BLOCK
|
BLOCK
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -449,7 +449,7 @@ JetFile: FunctionLiterals.jet
|
|||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
PsiElement(IDENTIFIER)('y')
|
PsiElement(IDENTIFIER)('y')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BLOCK
|
BLOCK
|
||||||
INTEGER_CONSTANT
|
INTEGER_CONSTANT
|
||||||
@@ -459,56 +459,41 @@ JetFile: FunctionLiterals.jet
|
|||||||
FUNCTION_LITERAL_EXPRESSION
|
FUNCTION_LITERAL_EXPRESSION
|
||||||
FUNCTION_LITERAL
|
FUNCTION_LITERAL
|
||||||
PsiElement(LBRACE)('{')
|
PsiElement(LBRACE)('{')
|
||||||
VALUE_PARAMETER_LIST
|
BLOCK
|
||||||
VALUE_PARAMETER
|
ANNOTATED_EXPRESSION
|
||||||
MODIFIER_LIST
|
ANNOTATION
|
||||||
ANNOTATION
|
PsiElement(LBRACKET)('[')
|
||||||
PsiElement(LBRACKET)('[')
|
ANNOTATION_ENTRY
|
||||||
ANNOTATION_ENTRY
|
CONSTRUCTOR_CALLEE
|
||||||
CONSTRUCTOR_CALLEE
|
TYPE_REFERENCE
|
||||||
TYPE_REFERENCE
|
USER_TYPE
|
||||||
USER_TYPE
|
REFERENCE_EXPRESSION
|
||||||
REFERENCE_EXPRESSION
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(RBRACKET)(']')
|
||||||
PsiElement(RBRACKET)(']')
|
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('x')
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(COMMA)(',')
|
PsiElement(IDENTIFIER)('x')
|
||||||
PsiWhiteSpace(' ')
|
PsiErrorElement:Unexpected tokens (use ';' to separate expressions on the same line)
|
||||||
VALUE_PARAMETER
|
PsiElement(COMMA)(',')
|
||||||
MODIFIER_LIST
|
PsiWhiteSpace(' ')
|
||||||
ANNOTATION
|
PsiElement(LBRACKET)('[')
|
||||||
PsiElement(LBRACKET)('[')
|
PsiElement(IDENTIFIER)('b')
|
||||||
ANNOTATION_ENTRY
|
PsiElement(RBRACKET)(']')
|
||||||
CONSTRUCTOR_CALLEE
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('b')
|
|
||||||
PsiElement(RBRACKET)(']')
|
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('y')
|
PsiElement(IDENTIFIER)('y')
|
||||||
PsiElement(COMMA)(',')
|
PsiElement(COMMA)(',')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
VALUE_PARAMETER
|
PsiElement(LBRACKET)('[')
|
||||||
MODIFIER_LIST
|
PsiElement(IDENTIFIER)('c')
|
||||||
ANNOTATION
|
PsiElement(RBRACKET)(']')
|
||||||
PsiElement(LBRACKET)('[')
|
|
||||||
ANNOTATION_ENTRY
|
|
||||||
CONSTRUCTOR_CALLEE
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('c')
|
|
||||||
PsiElement(RBRACKET)(']')
|
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('z')
|
PsiElement(IDENTIFIER)('z')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BLOCK
|
|
||||||
INTEGER_CONSTANT
|
|
||||||
PsiElement(INTEGER_LITERAL)('1')
|
PsiElement(INTEGER_LITERAL)('1')
|
||||||
|
PsiElement(RBRACE)('}')
|
||||||
|
PsiWhiteSpace('\n')
|
||||||
PsiElement(RBRACE)('}')
|
PsiElement(RBRACE)('}')
|
||||||
PsiWhiteSpace('\n')
|
PsiErrorElement:Expecting '}
|
||||||
PsiElement(RBRACE)('}')
|
<empty list>
|
||||||
@@ -1,18 +1,18 @@
|
|||||||
fun foo() {
|
fun foo() {
|
||||||
{ => a}
|
{ -> a}
|
||||||
|
|
||||||
{(a => a}
|
{(a -> a}
|
||||||
{(a : ) => a}
|
{(a : ) -> a}
|
||||||
{(a : A) : => a}
|
{(a : A) : -> a}
|
||||||
{(a) : T => }
|
{(a) : T -> }
|
||||||
|
|
||||||
{(a, ) => a}
|
{(a, ) -> a}
|
||||||
{(a : A, , a : B) => a}
|
{(a : A, , a : B) -> a}
|
||||||
{(a : A, , , a) : T => a}
|
{(a : A, , , a) : T -> a}
|
||||||
|
|
||||||
{T.t(a) => a}
|
{T.t(a) -> a}
|
||||||
{T.t -(a : A) => a}
|
{T.t -(a : A) -> a}
|
||||||
|
|
||||||
{a : b => f}
|
{a : b -> f}
|
||||||
{T.a : b => f}
|
{T.a : b -> f}
|
||||||
}
|
}
|
||||||
@@ -17,12 +17,10 @@ JetFile: FunctionLiterals_ERR.jet
|
|||||||
FUNCTION_LITERAL
|
FUNCTION_LITERAL
|
||||||
PsiElement(LBRACE)('{')
|
PsiElement(LBRACE)('{')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
VALUE_PARAMETER_LIST
|
PsiElement(ARROW)('->')
|
||||||
VALUE_PARAMETER
|
|
||||||
PsiErrorElement:Expecting parameter name
|
|
||||||
<empty list>
|
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
|
VALUE_PARAMETER_LIST
|
||||||
|
<empty list>
|
||||||
BLOCK
|
BLOCK
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
@@ -38,7 +36,7 @@ JetFile: FunctionLiterals_ERR.jet
|
|||||||
PsiErrorElement:Expecting ')
|
PsiErrorElement:Expecting ')
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BLOCK
|
BLOCK
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -60,7 +58,7 @@ JetFile: FunctionLiterals_ERR.jet
|
|||||||
<empty list>
|
<empty list>
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BLOCK
|
BLOCK
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -87,7 +85,7 @@ JetFile: FunctionLiterals_ERR.jet
|
|||||||
PsiErrorElement:Expecting a type
|
PsiErrorElement:Expecting a type
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BLOCK
|
BLOCK
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -110,7 +108,7 @@ JetFile: FunctionLiterals_ERR.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('T')
|
PsiElement(IDENTIFIER)('T')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BLOCK
|
BLOCK
|
||||||
<empty list>
|
<empty list>
|
||||||
@@ -129,7 +127,7 @@ JetFile: FunctionLiterals_ERR.jet
|
|||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BLOCK
|
BLOCK
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -166,7 +164,7 @@ JetFile: FunctionLiterals_ERR.jet
|
|||||||
PsiElement(IDENTIFIER)('B')
|
PsiElement(IDENTIFIER)('B')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BLOCK
|
BLOCK
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -208,7 +206,7 @@ JetFile: FunctionLiterals_ERR.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('T')
|
PsiElement(IDENTIFIER)('T')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BLOCK
|
BLOCK
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -218,100 +216,118 @@ JetFile: FunctionLiterals_ERR.jet
|
|||||||
FUNCTION_LITERAL_EXPRESSION
|
FUNCTION_LITERAL_EXPRESSION
|
||||||
FUNCTION_LITERAL
|
FUNCTION_LITERAL
|
||||||
PsiElement(LBRACE)('{')
|
PsiElement(LBRACE)('{')
|
||||||
TYPE_REFERENCE
|
BLOCK
|
||||||
USER_TYPE
|
DOT_QUALIFIED_EXPRESSION
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('T')
|
PsiElement(IDENTIFIER)('T')
|
||||||
PsiElement(DOT)('.')
|
PsiElement(DOT)('.')
|
||||||
PsiErrorElement:Expecting '('
|
CALL_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('t')
|
REFERENCE_EXPRESSION
|
||||||
VALUE_PARAMETER_LIST
|
PsiElement(IDENTIFIER)('t')
|
||||||
PsiElement(LPAR)('(')
|
VALUE_ARGUMENT_LIST
|
||||||
VALUE_PARAMETER
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(IDENTIFIER)('a')
|
VALUE_ARGUMENT
|
||||||
PsiElement(RPAR)(')')
|
REFERENCE_EXPRESSION
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
BLOCK
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('a')
|
|
||||||
PsiElement(RBRACE)('}')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
FUNCTION_LITERAL_EXPRESSION
|
|
||||||
FUNCTION_LITERAL
|
|
||||||
PsiElement(LBRACE)('{')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('T')
|
|
||||||
PsiElement(DOT)('.')
|
|
||||||
PsiErrorElement:Expecting '('
|
|
||||||
PsiElement(IDENTIFIER)('t')
|
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(MINUS)('-')
|
PsiErrorElement:Unexpected tokens (use ';' to separate expressions on the same line)
|
||||||
VALUE_PARAMETER_LIST
|
PsiElement(ARROW)('->')
|
||||||
PsiElement(LPAR)('(')
|
|
||||||
VALUE_PARAMETER
|
|
||||||
PsiElement(IDENTIFIER)('a')
|
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('A')
|
|
||||||
PsiElement(RPAR)(')')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
BLOCK
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiElement(RBRACE)('}')
|
PsiElement(RBRACE)('}')
|
||||||
PsiWhiteSpace('\n\n ')
|
PsiWhiteSpace('\n ')
|
||||||
FUNCTION_LITERAL_EXPRESSION
|
FUNCTION_LITERAL_EXPRESSION
|
||||||
FUNCTION_LITERAL
|
FUNCTION_LITERAL
|
||||||
PsiElement(LBRACE)('{')
|
PsiElement(LBRACE)('{')
|
||||||
VALUE_PARAMETER_LIST
|
BLOCK
|
||||||
VALUE_PARAMETER
|
BINARY_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('a')
|
DOT_QUALIFIED_EXPRESSION
|
||||||
PsiWhiteSpace(' ')
|
REFERENCE_EXPRESSION
|
||||||
PsiErrorElement:To specify a type of a parameter or a return type, use the full notation: {(parameter : Type) : ReturnType => ...}
|
PsiElement(IDENTIFIER)('T')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(DOT)('.')
|
||||||
PsiWhiteSpace(' ')
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('b')
|
PsiElement(IDENTIFIER)('t')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
VALUE_PARAMETER
|
OPERATION_REFERENCE
|
||||||
PsiErrorElement:Expecting parameter name
|
PsiElement(MINUS)('-')
|
||||||
<empty list>
|
PARENTHESIZED
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(LPAR)('(')
|
||||||
PsiWhiteSpace(' ')
|
BINARY_WITH_TYPE
|
||||||
BLOCK
|
REFERENCE_EXPRESSION
|
||||||
REFERENCE_EXPRESSION
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiElement(IDENTIFIER)('f')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(RBRACE)('}')
|
OPERATION_REFERENCE
|
||||||
PsiWhiteSpace('\n ')
|
PsiElement(COLON)(':')
|
||||||
FUNCTION_LITERAL_EXPRESSION
|
PsiWhiteSpace(' ')
|
||||||
FUNCTION_LITERAL
|
TYPE_REFERENCE
|
||||||
PsiElement(LBRACE)('{')
|
USER_TYPE
|
||||||
TYPE_REFERENCE
|
REFERENCE_EXPRESSION
|
||||||
USER_TYPE
|
PsiElement(IDENTIFIER)('A')
|
||||||
REFERENCE_EXPRESSION
|
PsiElement(RPAR)(')')
|
||||||
PsiElement(IDENTIFIER)('T')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOT)('.')
|
PsiErrorElement:Unexpected tokens (use ';' to separate expressions on the same line)
|
||||||
PsiErrorElement:To specify a receiver type, use the full notation: {ReceiverType.(parameters) [: ReturnType] => ...}
|
PsiElement(ARROW)('->')
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiWhiteSpace(' ')
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(RBRACE)('}')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace('\n\n ')
|
||||||
PsiElement(IDENTIFIER)('b')
|
FUNCTION_LITERAL_EXPRESSION
|
||||||
PsiWhiteSpace(' ')
|
FUNCTION_LITERAL
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(LBRACE)('{')
|
||||||
PsiWhiteSpace(' ')
|
VALUE_PARAMETER_LIST
|
||||||
BLOCK
|
VALUE_PARAMETER
|
||||||
REFERENCE_EXPRESSION
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiElement(IDENTIFIER)('f')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(RBRACE)('}')
|
PsiErrorElement:To specify a type of a parameter or a return type, use the full notation: {(parameter : Type) : ReturnType => ...}
|
||||||
PsiWhiteSpace('\n')
|
PsiElement(COLON)(':')
|
||||||
PsiElement(RBRACE)('}')
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('b')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
VALUE_PARAMETER
|
||||||
|
PsiErrorElement:Expecting parameter name
|
||||||
|
<empty list>
|
||||||
|
PsiElement(ARROW)('->')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
BLOCK
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('f')
|
||||||
|
PsiElement(RBRACE)('}')
|
||||||
|
PsiWhiteSpace('\n ')
|
||||||
|
FUNCTION_LITERAL_EXPRESSION
|
||||||
|
FUNCTION_LITERAL
|
||||||
|
PsiElement(LBRACE)('{')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('T')
|
||||||
|
PsiElement(DOT)('.')
|
||||||
|
VALUE_PARAMETER_LIST
|
||||||
|
PsiErrorElement:Expecting a parameter list in parentheses (...)
|
||||||
|
PsiElement(IDENTIFIER)('a')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
VALUE_PARAMETER
|
||||||
|
PsiErrorElement:Expecting parameter declaration
|
||||||
|
<empty list>
|
||||||
|
PsiElement(COLON)(':')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('b')
|
||||||
|
PsiErrorElement:Expecting ')
|
||||||
|
<empty list>
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(ARROW)('->')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
BLOCK
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('f')
|
||||||
|
PsiElement(RBRACE)('}')
|
||||||
|
PsiWhiteSpace('\n')
|
||||||
|
PsiElement(RBRACE)('}')
|
||||||
|
PsiErrorElement:Expecting '}'
|
||||||
|
<empty list>
|
||||||
@@ -1,24 +1,24 @@
|
|||||||
type f = fun ([a] a) : b
|
type f = ([a] a) -> b
|
||||||
type f = fun (a) : b
|
type f = (a) -> b
|
||||||
type f = fun () : [x] b
|
type f = () -> [x] b
|
||||||
type f = fun () : ()
|
type f = () -> #()
|
||||||
|
|
||||||
type f = fun (a : [a] a) : b
|
type f = (a : [a] a) -> b
|
||||||
type f = fun (a : a) : b
|
type f = (a : a) -> b
|
||||||
type f = fun () : b
|
type f = () -> b
|
||||||
type f = fun () : ()
|
type f = () -> #()
|
||||||
|
|
||||||
type f = fun (a : [a] a, foo, x : bar) : b
|
type f = (a : [a] a, foo, x : bar) -> b
|
||||||
type f = fun (foo, a : a) : b
|
type f = (foo, a : a) -> b
|
||||||
type f = fun (foo, a : fun (a) : b) : b
|
type f = (foo, a : (a) -> b) -> b
|
||||||
type f = fun (foo, a : fun (a) : b) : fun () : ()
|
type f = (foo, a : (a) -> b) -> () -> #()
|
||||||
|
|
||||||
type f = fun (ref foo, ref a : fun (ref a) : b) : fun () : ()
|
type f = (ref foo, ref a : (ref a) -> b) -> () -> #()
|
||||||
|
|
||||||
type f = fun T.() : ()
|
type f = T.() -> #()
|
||||||
type f = fun T.T.() : ()
|
type f = T.T.() -> #()
|
||||||
type f = fun T<A, B>.T<x>.() : ()
|
type f = T<A, B>.T<x>.() -> #()
|
||||||
|
|
||||||
type f = [a] fun T.() : ()
|
type f = [a] T.() -> #()
|
||||||
type f = [a] fun T.T.() : ()
|
type f = [a] T.T.() -> #()
|
||||||
type f = [a] fun T<A, B>.T<x>.() : ()
|
type f = [a] T<A, B>.T<x>.() -> #()
|
||||||
|
|||||||
@@ -10,11 +10,9 @@ JetFile: FunctionTypes.jet
|
|||||||
TYPE_PARAMETER_LIST
|
TYPE_PARAMETER_LIST
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
@@ -35,7 +33,7 @@ JetFile: FunctionTypes.jet
|
|||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -50,11 +48,9 @@ JetFile: FunctionTypes.jet
|
|||||||
TYPE_PARAMETER_LIST
|
TYPE_PARAMETER_LIST
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
@@ -64,7 +60,7 @@ JetFile: FunctionTypes.jet
|
|||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -79,16 +75,14 @@ JetFile: FunctionTypes.jet
|
|||||||
TYPE_PARAMETER_LIST
|
TYPE_PARAMETER_LIST
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
ANNOTATION
|
ANNOTATION
|
||||||
@@ -113,19 +107,18 @@ JetFile: FunctionTypes.jet
|
|||||||
TYPE_PARAMETER_LIST
|
TYPE_PARAMETER_LIST
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
TUPLE_TYPE
|
TUPLE_TYPE
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace('\n\n')
|
PsiWhiteSpace('\n\n')
|
||||||
@@ -137,11 +130,9 @@ JetFile: FunctionTypes.jet
|
|||||||
TYPE_PARAMETER_LIST
|
TYPE_PARAMETER_LIST
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
@@ -165,7 +156,7 @@ JetFile: FunctionTypes.jet
|
|||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -180,11 +171,9 @@ JetFile: FunctionTypes.jet
|
|||||||
TYPE_PARAMETER_LIST
|
TYPE_PARAMETER_LIST
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
@@ -198,7 +187,7 @@ JetFile: FunctionTypes.jet
|
|||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -213,16 +202,14 @@ JetFile: FunctionTypes.jet
|
|||||||
TYPE_PARAMETER_LIST
|
TYPE_PARAMETER_LIST
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -237,19 +224,18 @@ JetFile: FunctionTypes.jet
|
|||||||
TYPE_PARAMETER_LIST
|
TYPE_PARAMETER_LIST
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
TUPLE_TYPE
|
TUPLE_TYPE
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace('\n\n')
|
PsiWhiteSpace('\n\n')
|
||||||
@@ -261,11 +247,9 @@ JetFile: FunctionTypes.jet
|
|||||||
TYPE_PARAMETER_LIST
|
TYPE_PARAMETER_LIST
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
@@ -307,7 +291,7 @@ JetFile: FunctionTypes.jet
|
|||||||
PsiElement(IDENTIFIER)('bar')
|
PsiElement(IDENTIFIER)('bar')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -322,11 +306,9 @@ JetFile: FunctionTypes.jet
|
|||||||
TYPE_PARAMETER_LIST
|
TYPE_PARAMETER_LIST
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
@@ -347,7 +329,7 @@ JetFile: FunctionTypes.jet
|
|||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -362,11 +344,9 @@ JetFile: FunctionTypes.jet
|
|||||||
TYPE_PARAMETER_LIST
|
TYPE_PARAMETER_LIST
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
@@ -380,11 +360,9 @@ JetFile: FunctionTypes.jet
|
|||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
@@ -394,7 +372,7 @@ JetFile: FunctionTypes.jet
|
|||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -402,7 +380,7 @@ JetFile: FunctionTypes.jet
|
|||||||
PsiElement(IDENTIFIER)('b')
|
PsiElement(IDENTIFIER)('b')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -417,11 +395,9 @@ JetFile: FunctionTypes.jet
|
|||||||
TYPE_PARAMETER_LIST
|
TYPE_PARAMETER_LIST
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
@@ -435,11 +411,9 @@ JetFile: FunctionTypes.jet
|
|||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
@@ -449,7 +423,7 @@ JetFile: FunctionTypes.jet
|
|||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -457,20 +431,19 @@ JetFile: FunctionTypes.jet
|
|||||||
PsiElement(IDENTIFIER)('b')
|
PsiElement(IDENTIFIER)('b')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
TUPLE_TYPE
|
TUPLE_TYPE
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace('\n\n')
|
PsiWhiteSpace('\n\n')
|
||||||
@@ -482,11 +455,9 @@ JetFile: FunctionTypes.jet
|
|||||||
TYPE_PARAMETER_LIST
|
TYPE_PARAMETER_LIST
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
@@ -506,11 +477,9 @@ JetFile: FunctionTypes.jet
|
|||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
@@ -523,7 +492,7 @@ JetFile: FunctionTypes.jet
|
|||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -531,20 +500,19 @@ JetFile: FunctionTypes.jet
|
|||||||
PsiElement(IDENTIFIER)('b')
|
PsiElement(IDENTIFIER)('b')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
TUPLE_TYPE
|
TUPLE_TYPE
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace('\n\n')
|
PsiWhiteSpace('\n\n')
|
||||||
@@ -556,11 +524,9 @@ JetFile: FunctionTypes.jet
|
|||||||
TYPE_PARAMETER_LIST
|
TYPE_PARAMETER_LIST
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -570,10 +536,11 @@ JetFile: FunctionTypes.jet
|
|||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
TUPLE_TYPE
|
TUPLE_TYPE
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace('\n')
|
PsiWhiteSpace('\n')
|
||||||
@@ -585,11 +552,9 @@ JetFile: FunctionTypes.jet
|
|||||||
TYPE_PARAMETER_LIST
|
TYPE_PARAMETER_LIST
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -603,10 +568,11 @@ JetFile: FunctionTypes.jet
|
|||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
TUPLE_TYPE
|
TUPLE_TYPE
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace('\n')
|
PsiWhiteSpace('\n')
|
||||||
@@ -618,11 +584,9 @@ JetFile: FunctionTypes.jet
|
|||||||
TYPE_PARAMETER_LIST
|
TYPE_PARAMETER_LIST
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -659,10 +623,11 @@ JetFile: FunctionTypes.jet
|
|||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
TUPLE_TYPE
|
TUPLE_TYPE
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace('\n\n')
|
PsiWhiteSpace('\n\n')
|
||||||
@@ -676,20 +641,18 @@ JetFile: FunctionTypes.jet
|
|||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
ANNOTATION
|
|
||||||
PsiElement(LBRACKET)('[')
|
|
||||||
ANNOTATION_ENTRY
|
|
||||||
CONSTRUCTOR_CALLEE
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('a')
|
|
||||||
PsiElement(RBRACKET)(']')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
|
ANNOTATION
|
||||||
|
PsiElement(LBRACKET)('[')
|
||||||
|
ANNOTATION_ENTRY
|
||||||
|
CONSTRUCTOR_CALLEE
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('a')
|
||||||
|
PsiElement(RBRACKET)(']')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('T')
|
PsiElement(IDENTIFIER)('T')
|
||||||
@@ -698,10 +661,11 @@ JetFile: FunctionTypes.jet
|
|||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
TUPLE_TYPE
|
TUPLE_TYPE
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace('\n')
|
PsiWhiteSpace('\n')
|
||||||
@@ -715,20 +679,18 @@ JetFile: FunctionTypes.jet
|
|||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
ANNOTATION
|
|
||||||
PsiElement(LBRACKET)('[')
|
|
||||||
ANNOTATION_ENTRY
|
|
||||||
CONSTRUCTOR_CALLEE
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('a')
|
|
||||||
PsiElement(RBRACKET)(']')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
|
ANNOTATION
|
||||||
|
PsiElement(LBRACKET)('[')
|
||||||
|
ANNOTATION_ENTRY
|
||||||
|
CONSTRUCTOR_CALLEE
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('a')
|
||||||
|
PsiElement(RBRACKET)(']')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -741,10 +703,11 @@ JetFile: FunctionTypes.jet
|
|||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
TUPLE_TYPE
|
TUPLE_TYPE
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace('\n')
|
PsiWhiteSpace('\n')
|
||||||
@@ -758,20 +721,18 @@ JetFile: FunctionTypes.jet
|
|||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
ANNOTATION
|
|
||||||
PsiElement(LBRACKET)('[')
|
|
||||||
ANNOTATION_ENTRY
|
|
||||||
CONSTRUCTOR_CALLEE
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('a')
|
|
||||||
PsiElement(RBRACKET)(']')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
|
ANNOTATION
|
||||||
|
PsiElement(LBRACKET)('[')
|
||||||
|
ANNOTATION_ENTRY
|
||||||
|
CONSTRUCTOR_CALLEE
|
||||||
|
TYPE_REFERENCE
|
||||||
|
USER_TYPE
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('a')
|
||||||
|
PsiElement(RBRACKET)(']')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -807,9 +768,10 @@ JetFile: FunctionTypes.jet
|
|||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
TUPLE_TYPE
|
TUPLE_TYPE
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
@@ -1 +1 @@
|
|||||||
type f = fun (a, ) : b
|
type f = (a, ) -> b
|
||||||
|
|||||||
@@ -10,11 +10,9 @@ JetFile: FunctionTypes_ERR.jet
|
|||||||
TYPE_PARAMETER_LIST
|
TYPE_PARAMETER_LIST
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
@@ -28,7 +26,7 @@ JetFile: FunctionTypes_ERR.jet
|
|||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
|
|||||||
@@ -2,21 +2,21 @@ fun foo()
|
|||||||
fun [a] foo()
|
fun [a] foo()
|
||||||
fun [a] T.foo()
|
fun [a] T.foo()
|
||||||
fun [a] T.foo(a : foo) : bar
|
fun [a] T.foo(a : foo) : bar
|
||||||
fun [a()] T.foo<T : fun (a) : b>(a : foo) : bar
|
fun [a()] T.foo<T : (a) -> b>(a : foo) : bar
|
||||||
|
|
||||||
fun foo();
|
fun foo();
|
||||||
fun [a] foo();
|
fun [a] foo();
|
||||||
fun [a] T.foo();
|
fun [a] T.foo();
|
||||||
fun [a] T.foo(a : foo) : bar;
|
fun [a] T.foo(a : foo) : bar;
|
||||||
fun [a()] T.foo<T : fun (a) : b>(a : foo) : bar;
|
fun [a()] T.foo<T : (a) -> b>(a : foo) : bar;
|
||||||
|
|
||||||
fun foo() {}
|
fun foo() {}
|
||||||
fun [a] foo() {}
|
fun [a] foo() {}
|
||||||
fun [a] T.foo() {}
|
fun [a] T.foo() {}
|
||||||
fun [a] T.foo(a : foo) : bar {}
|
fun [a] T.foo(a : foo) : bar {}
|
||||||
fun [a()] T.foo<T : fun (a) : b>(a : foo) : bar {}
|
fun [a()] T.foo<T : (a) -> b>(a : foo) : bar {}
|
||||||
|
|
||||||
fun [a()] T.foo<T : [a] fun (a) : b>(a : foo) : bar {}
|
fun [a()] T.foo<T : [a] (a) -> b>(a : foo) : bar {}
|
||||||
|
|
||||||
fun A?.foo() : bar?
|
fun A?.foo() : bar?
|
||||||
fun A? .foo() : bar?
|
fun A? .foo() : bar?
|
||||||
@@ -118,11 +118,9 @@ JetFile: Functions.jet
|
|||||||
PsiElement(IDENTIFIER)('T')
|
PsiElement(IDENTIFIER)('T')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
@@ -132,7 +130,7 @@ JetFile: Functions.jet
|
|||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -279,11 +277,9 @@ JetFile: Functions.jet
|
|||||||
PsiElement(IDENTIFIER)('T')
|
PsiElement(IDENTIFIER)('T')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
@@ -293,7 +289,7 @@ JetFile: Functions.jet
|
|||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -453,11 +449,9 @@ JetFile: Functions.jet
|
|||||||
PsiElement(IDENTIFIER)('T')
|
PsiElement(IDENTIFIER)('T')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
@@ -467,7 +461,7 @@ JetFile: Functions.jet
|
|||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -537,10 +531,8 @@ JetFile: Functions.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiElement(RBRACKET)(']')
|
PsiElement(RBRACKET)(']')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
@@ -550,7 +542,7 @@ JetFile: Functions.jet
|
|||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace foo.bar.goo
|
package foo.bar.goo
|
||||||
|
|
||||||
import namespace.foo
|
import namespace.foo
|
||||||
import foo
|
import foo
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
JetFile: Imports.jet
|
JetFile: Imports.jet
|
||||||
NAMESPACE
|
NAMESPACE
|
||||||
NAMESPACE_HEADER
|
NAMESPACE_HEADER
|
||||||
PsiElement(namespace)('namespace')
|
PsiElement(namespace)('package')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace foo.bar.goo
|
package foo.bar.goo
|
||||||
|
|
||||||
import namespace ;
|
import namespace ;
|
||||||
import namespace.*
|
import namespace.*
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
JetFile: Imports_ERR.jet
|
JetFile: Imports_ERR.jet
|
||||||
NAMESPACE
|
NAMESPACE
|
||||||
NAMESPACE_HEADER
|
NAMESPACE_HEADER
|
||||||
PsiElement(namespace)('namespace')
|
PsiElement(namespace)('package')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
@@ -94,7 +94,7 @@ JetFile: Imports_ERR.jet
|
|||||||
PsiElement(DOT)('.')
|
PsiElement(DOT)('.')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiErrorElement:Type name expected
|
PsiErrorElement:Expecting type name
|
||||||
PsiElement(as)('as')
|
PsiElement(as)('as')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
ANNOTATION_ENTRY
|
ANNOTATION_ENTRY
|
||||||
@@ -124,7 +124,7 @@ JetFile: Imports_ERR.jet
|
|||||||
PsiElement(IDENTIFIER)('bar')
|
PsiElement(IDENTIFIER)('bar')
|
||||||
PsiElement(DOT)('.')
|
PsiElement(DOT)('.')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiErrorElement:Type name expected
|
PsiErrorElement:Expecting type name
|
||||||
PsiElement(MUL)('*')
|
PsiElement(MUL)('*')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiErrorElement:Expecting namespace or top level declaration
|
PsiErrorElement:Expecting namespace or top level declaration
|
||||||
@@ -158,7 +158,7 @@ JetFile: Imports_ERR.jet
|
|||||||
PsiElement(IDENTIFIER)('bar')
|
PsiElement(IDENTIFIER)('bar')
|
||||||
PsiElement(DOT)('.')
|
PsiElement(DOT)('.')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiErrorElement:Type name expected
|
PsiErrorElement:Expecting type name
|
||||||
PsiElement(MUL)('*')
|
PsiElement(MUL)('*')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiErrorElement:Expecting namespace or top level declaration
|
PsiErrorElement:Expecting namespace or top level declaration
|
||||||
|
|||||||
@@ -6,6 +6,6 @@ fun foo() {
|
|||||||
|
|
||||||
out val foo = 5
|
out val foo = 5
|
||||||
[a] var foo = 4
|
[a] var foo = 4
|
||||||
type f = fun T.() : ()
|
type f = T.() -> #()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -109,11 +109,9 @@ JetFile: LocalDeclarations.jet
|
|||||||
TYPE_PARAMETER_LIST
|
TYPE_PARAMETER_LIST
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -123,10 +121,11 @@ JetFile: LocalDeclarations.jet
|
|||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
TUPLE_TYPE
|
TUPLE_TYPE
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace('\n\n')
|
PsiWhiteSpace('\n\n')
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
namespace foo.bar.goo
|
package foo.bar.goo
|
||||||
|
|
||||||
import foo as bar
|
import foo as bar
|
||||||
|
|
||||||
namespace foof {
|
package foof {
|
||||||
import foo.bar.*;
|
import foo.bar.*;
|
||||||
|
|
||||||
class Foo {}
|
class Foo {}
|
||||||
|
|
||||||
namespace bar {
|
package bar {
|
||||||
class Bar {}
|
class Bar {}
|
||||||
|
|
||||||
namespace ns {
|
package ns {
|
||||||
class X
|
class X
|
||||||
|
|
||||||
class Y
|
class Y
|
||||||
@@ -21,9 +21,9 @@ namespace foof {
|
|||||||
|
|
||||||
class Bar<T> {}
|
class Bar<T> {}
|
||||||
|
|
||||||
namespace foo {}
|
package foo {}
|
||||||
|
|
||||||
namespace bar {
|
package bar {
|
||||||
import sdf
|
import sdf
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
JetFile: NamespaceBlock.jet
|
JetFile: NamespaceBlock.jet
|
||||||
NAMESPACE
|
NAMESPACE
|
||||||
NAMESPACE_HEADER
|
NAMESPACE_HEADER
|
||||||
PsiElement(namespace)('namespace')
|
PsiElement(namespace)('package')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
@@ -23,7 +23,7 @@ JetFile: NamespaceBlock.jet
|
|||||||
PsiWhiteSpace('\n\n')
|
PsiWhiteSpace('\n\n')
|
||||||
NAMESPACE
|
NAMESPACE
|
||||||
NAMESPACE_HEADER
|
NAMESPACE_HEADER
|
||||||
PsiElement(namespace)('namespace')
|
PsiElement(namespace)('package')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('foof')
|
PsiElement(IDENTIFIER)('foof')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
@@ -56,7 +56,7 @@ JetFile: NamespaceBlock.jet
|
|||||||
PsiWhiteSpace('\n\n ')
|
PsiWhiteSpace('\n\n ')
|
||||||
NAMESPACE
|
NAMESPACE
|
||||||
NAMESPACE_HEADER
|
NAMESPACE_HEADER
|
||||||
PsiElement(namespace)('namespace')
|
PsiElement(namespace)('package')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('bar')
|
PsiElement(IDENTIFIER)('bar')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
@@ -76,7 +76,7 @@ JetFile: NamespaceBlock.jet
|
|||||||
PsiWhiteSpace('\n\n ')
|
PsiWhiteSpace('\n\n ')
|
||||||
NAMESPACE
|
NAMESPACE
|
||||||
NAMESPACE_HEADER
|
NAMESPACE_HEADER
|
||||||
PsiElement(namespace)('namespace')
|
PsiElement(namespace)('package')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('ns')
|
PsiElement(IDENTIFIER)('ns')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
@@ -119,7 +119,7 @@ JetFile: NamespaceBlock.jet
|
|||||||
PsiWhiteSpace('\n\n')
|
PsiWhiteSpace('\n\n')
|
||||||
NAMESPACE
|
NAMESPACE
|
||||||
NAMESPACE_HEADER
|
NAMESPACE_HEADER
|
||||||
PsiElement(namespace)('namespace')
|
PsiElement(namespace)('package')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
@@ -130,7 +130,7 @@ JetFile: NamespaceBlock.jet
|
|||||||
PsiWhiteSpace('\n\n')
|
PsiWhiteSpace('\n\n')
|
||||||
NAMESPACE
|
NAMESPACE
|
||||||
NAMESPACE_HEADER
|
NAMESPACE_HEADER
|
||||||
PsiElement(namespace)('namespace')
|
PsiElement(namespace)('package')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('bar')
|
PsiElement(IDENTIFIER)('bar')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace foobar {
|
package foobar {
|
||||||
val a = 1
|
val a = 1
|
||||||
val b = foobar.a
|
val b = foobar.a
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ JetFile: NamespaceBlockFirst.jet
|
|||||||
<empty list>
|
<empty list>
|
||||||
NAMESPACE
|
NAMESPACE
|
||||||
NAMESPACE_HEADER
|
NAMESPACE_HEADER
|
||||||
PsiElement(namespace)('namespace')
|
PsiElement(namespace)('package')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('foobar')
|
PsiElement(IDENTIFIER)('foobar')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
namespace foo.bar.goo
|
package foo.bar.goo
|
||||||
|
|
||||||
import foo as
|
import foo as
|
||||||
import foo.
|
import foo.
|
||||||
import foo.bar.
|
import foo.bar.
|
||||||
import foo. as bar
|
import foo. as bar
|
||||||
|
|
||||||
namespace foof {
|
package foof {
|
||||||
import foo.bar.* as bar
|
import foo.bar.* as bar
|
||||||
import foo as ;
|
import foo as ;
|
||||||
import foo. ;
|
import foo. ;
|
||||||
@@ -14,13 +14,13 @@ namespace foof {
|
|||||||
import foo.bar.* as bar ;
|
import foo.bar.* as bar ;
|
||||||
import foo.bar.* as ;
|
import foo.bar.* as ;
|
||||||
|
|
||||||
namespace foo
|
package foo
|
||||||
|
|
||||||
class Foo {}
|
class Foo {}
|
||||||
namespace {
|
package {
|
||||||
class Bar {}
|
class Bar {}
|
||||||
|
|
||||||
namespace ns {
|
package ns {
|
||||||
class X
|
class X
|
||||||
|
|
||||||
class Y
|
class Y
|
||||||
@@ -32,11 +32,11 @@ dsfgd
|
|||||||
|
|
||||||
class Bar<T> {}
|
class Bar<T> {}
|
||||||
|
|
||||||
namespace foo
|
package foo
|
||||||
|
|
||||||
namespace {}
|
package {}
|
||||||
|
|
||||||
namespace bar {
|
package bar {
|
||||||
import sdf
|
import sdf
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
JetFile: NamespaceBlock_ERR.jet
|
JetFile: NamespaceBlock_ERR.jet
|
||||||
NAMESPACE
|
NAMESPACE
|
||||||
NAMESPACE_HEADER
|
NAMESPACE_HEADER
|
||||||
PsiElement(namespace)('namespace')
|
PsiElement(namespace)('package')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
@@ -61,7 +61,7 @@ JetFile: NamespaceBlock_ERR.jet
|
|||||||
PsiElement(DOT)('.')
|
PsiElement(DOT)('.')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiErrorElement:Type name expected
|
PsiErrorElement:Expecting type name
|
||||||
PsiElement(as)('as')
|
PsiElement(as)('as')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
ANNOTATION_ENTRY
|
ANNOTATION_ENTRY
|
||||||
@@ -72,7 +72,7 @@ JetFile: NamespaceBlock_ERR.jet
|
|||||||
PsiElement(IDENTIFIER)('bar')
|
PsiElement(IDENTIFIER)('bar')
|
||||||
PsiWhiteSpace('\n\n')
|
PsiWhiteSpace('\n\n')
|
||||||
NAMESPACE_HEADER
|
NAMESPACE_HEADER
|
||||||
PsiElement(namespace)('namespace')
|
PsiElement(namespace)('package')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('foof')
|
PsiElement(IDENTIFIER)('foof')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
@@ -193,7 +193,7 @@ JetFile: NamespaceBlock_ERR.jet
|
|||||||
PsiWhiteSpace('\n\n ')
|
PsiWhiteSpace('\n\n ')
|
||||||
NAMESPACE
|
NAMESPACE
|
||||||
NAMESPACE_HEADER
|
NAMESPACE_HEADER
|
||||||
PsiElement(namespace)('namespace')
|
PsiElement(namespace)('package')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
PsiErrorElement:A namespace block in '{...}' expected
|
PsiErrorElement:A namespace block in '{...}' expected
|
||||||
@@ -212,7 +212,7 @@ JetFile: NamespaceBlock_ERR.jet
|
|||||||
PsiWhiteSpace('\n ')
|
PsiWhiteSpace('\n ')
|
||||||
NAMESPACE
|
NAMESPACE
|
||||||
NAMESPACE_HEADER
|
NAMESPACE_HEADER
|
||||||
PsiElement(namespace)('namespace')
|
PsiElement(namespace)('package')
|
||||||
PsiErrorElement:Expecting namespace name
|
PsiErrorElement:Expecting namespace name
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
@@ -232,7 +232,7 @@ JetFile: NamespaceBlock_ERR.jet
|
|||||||
PsiWhiteSpace('\n\n ')
|
PsiWhiteSpace('\n\n ')
|
||||||
NAMESPACE
|
NAMESPACE
|
||||||
NAMESPACE_HEADER
|
NAMESPACE_HEADER
|
||||||
PsiElement(namespace)('namespace')
|
PsiElement(namespace)('package')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('ns')
|
PsiElement(IDENTIFIER)('ns')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
@@ -283,7 +283,7 @@ JetFile: NamespaceBlock_ERR.jet
|
|||||||
PsiWhiteSpace('\n\n')
|
PsiWhiteSpace('\n\n')
|
||||||
NAMESPACE
|
NAMESPACE
|
||||||
NAMESPACE_HEADER
|
NAMESPACE_HEADER
|
||||||
PsiElement(namespace)('namespace')
|
PsiElement(namespace)('package')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
PsiErrorElement:A namespace block in '{...}' expected
|
PsiErrorElement:A namespace block in '{...}' expected
|
||||||
@@ -291,7 +291,7 @@ JetFile: NamespaceBlock_ERR.jet
|
|||||||
PsiWhiteSpace('\n\n')
|
PsiWhiteSpace('\n\n')
|
||||||
NAMESPACE
|
NAMESPACE
|
||||||
NAMESPACE_HEADER
|
NAMESPACE_HEADER
|
||||||
PsiElement(namespace)('namespace')
|
PsiElement(namespace)('package')
|
||||||
PsiErrorElement:Expecting namespace name
|
PsiErrorElement:Expecting namespace name
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
@@ -302,7 +302,7 @@ JetFile: NamespaceBlock_ERR.jet
|
|||||||
PsiWhiteSpace('\n\n')
|
PsiWhiteSpace('\n\n')
|
||||||
NAMESPACE
|
NAMESPACE
|
||||||
NAMESPACE_HEADER
|
NAMESPACE_HEADER
|
||||||
PsiElement(namespace)('namespace')
|
PsiElement(namespace)('package')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('bar')
|
PsiElement(IDENTIFIER)('bar')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
public [a] namespace name;
|
public [a] package name;
|
||||||
|
|
||||||
[a] namespace a {
|
[a] package a {
|
||||||
val foo
|
val foo
|
||||||
|
|
||||||
private namespace b {
|
private package b {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -14,7 +14,7 @@ JetFile: NamespaceModifiers.jet
|
|||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiElement(RBRACKET)(']')
|
PsiElement(RBRACKET)(']')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(namespace)('namespace')
|
PsiElement(namespace)('package')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('name')
|
PsiElement(IDENTIFIER)('name')
|
||||||
PsiElement(SEMICOLON)(';')
|
PsiElement(SEMICOLON)(';')
|
||||||
@@ -32,7 +32,7 @@ JetFile: NamespaceModifiers.jet
|
|||||||
PsiElement(RBRACKET)(']')
|
PsiElement(RBRACKET)(']')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
NAMESPACE_HEADER
|
NAMESPACE_HEADER
|
||||||
PsiElement(namespace)('namespace')
|
PsiElement(namespace)('package')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
@@ -49,7 +49,7 @@ JetFile: NamespaceModifiers.jet
|
|||||||
PsiElement(private)('private')
|
PsiElement(private)('private')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
NAMESPACE_HEADER
|
NAMESPACE_HEADER
|
||||||
PsiElement(namespace)('namespace')
|
PsiElement(namespace)('package')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('b')
|
PsiElement(IDENTIFIER)('b')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
|
|||||||
@@ -21,17 +21,17 @@ fun foo() {
|
|||||||
+ d]
|
+ d]
|
||||||
|
|
||||||
when (e) {
|
when (e) {
|
||||||
is T @
|
is T
|
||||||
() => a
|
#() -> a
|
||||||
in f
|
in f
|
||||||
() => a
|
() -> a
|
||||||
!is T
|
!is T
|
||||||
@ () => a
|
#() -> a
|
||||||
!in f
|
!in f
|
||||||
() => a
|
() -> a
|
||||||
f
|
f
|
||||||
() => a
|
() -> a
|
||||||
}
|
}
|
||||||
val f = a is T
|
val f = a is T
|
||||||
()
|
#()
|
||||||
}
|
}
|
||||||
@@ -244,14 +244,13 @@ JetFile: NewlinesInParentheses.jet
|
|||||||
DECOMPOSER_PATTERN
|
DECOMPOSER_PATTERN
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('T')
|
PsiElement(IDENTIFIER)('T')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' \n ')
|
||||||
PsiElement(AT)('@')
|
|
||||||
PsiWhiteSpace('\n ')
|
|
||||||
DECOMPOSER_ARGUMENT_LIST
|
DECOMPOSER_ARGUMENT_LIST
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
@@ -269,7 +268,7 @@ JetFile: NewlinesInParentheses.jet
|
|||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
@@ -281,14 +280,13 @@ JetFile: NewlinesInParentheses.jet
|
|||||||
DECOMPOSER_PATTERN
|
DECOMPOSER_PATTERN
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('T')
|
PsiElement(IDENTIFIER)('T')
|
||||||
PsiWhiteSpace('\n ')
|
PsiWhiteSpace('\n ')
|
||||||
PsiElement(AT)('@')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
DECOMPOSER_ARGUMENT_LIST
|
DECOMPOSER_ARGUMENT_LIST
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
@@ -306,7 +304,7 @@ JetFile: NewlinesInParentheses.jet
|
|||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
@@ -322,7 +320,7 @@ JetFile: NewlinesInParentheses.jet
|
|||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
@@ -343,14 +341,13 @@ JetFile: NewlinesInParentheses.jet
|
|||||||
OPERATION_REFERENCE
|
OPERATION_REFERENCE
|
||||||
PsiElement(is)('is')
|
PsiElement(is)('is')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_PATTERN
|
DECOMPOSER_PATTERN
|
||||||
TYPE_REFERENCE
|
REFERENCE_EXPRESSION
|
||||||
USER_TYPE
|
PsiElement(IDENTIFIER)('T')
|
||||||
REFERENCE_EXPRESSION
|
PsiWhiteSpace('\n ')
|
||||||
PsiElement(IDENTIFIER)('T')
|
DECOMPOSER_ARGUMENT_LIST
|
||||||
PsiWhiteSpace('\n ')
|
PsiElement(HASH)('#')
|
||||||
TUPLE
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(RPAR)(')')
|
||||||
PsiElement(RPAR)(')')
|
|
||||||
PsiWhiteSpace('\n')
|
PsiWhiteSpace('\n')
|
||||||
PsiElement(RBRACE)('}')
|
PsiElement(RBRACE)('}')
|
||||||
@@ -37,19 +37,19 @@ fun foo() {
|
|||||||
t : Any?
|
t : Any?
|
||||||
t as Any<T>?
|
t as Any<T>?
|
||||||
t as Any.Any<T>.Any<T>
|
t as Any.Any<T>.Any<T>
|
||||||
t as fun () : T
|
t as () -> T
|
||||||
t as? Any<T>?
|
t as? Any<T>?
|
||||||
t as? Any.Any<T>.Any<T>
|
t as? Any.Any<T>.Any<T>
|
||||||
t as? fun () : T
|
t as? () -> T
|
||||||
|
|
||||||
t : Any * 1
|
t : Any * 1
|
||||||
t : Any? * 1
|
t : Any? * 1
|
||||||
t as Any<T>? * 1
|
t as Any<T>? * 1
|
||||||
t as Any.Any<T>.Any<T> * 1
|
t as Any.Any<T>.Any<T> * 1
|
||||||
t as fun () : T * 1
|
t as () -> T * 1
|
||||||
t as? Any<T>? * 1
|
t as? Any<T>? * 1
|
||||||
t as? Any.Any<T>.Any<T> * 1
|
t as? Any.Any<T>.Any<T> * 1
|
||||||
t as? fun () : T * 1
|
t as? () -> T * 1
|
||||||
|
|
||||||
++t : Any + 1
|
++t : Any + 1
|
||||||
a.b : Any + 1
|
a.b : Any + 1
|
||||||
|
|||||||
@@ -671,15 +671,13 @@ JetFile: Precedence.jet
|
|||||||
OPERATION_REFERENCE
|
OPERATION_REFERENCE
|
||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BINARY_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
REFERENCE_EXPRESSION
|
PsiElement(IDENTIFIER)('b')
|
||||||
PsiElement(IDENTIFIER)('b')
|
PsiWhiteSpace(' ')
|
||||||
PsiWhiteSpace(' ')
|
PsiErrorElement:Unexpected tokens (use ';' to separate expressions on the same line)
|
||||||
OPERATION_REFERENCE
|
PsiElement(ARROW)('->')
|
||||||
PsiElement(ARROW)('->')
|
PsiWhiteSpace(' ')
|
||||||
PsiWhiteSpace(' ')
|
PsiElement(IDENTIFIER)('c')
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('c')
|
|
||||||
PsiWhiteSpace('\n ')
|
PsiWhiteSpace('\n ')
|
||||||
BINARY_EXPRESSION
|
BINARY_EXPRESSION
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -788,16 +786,14 @@ JetFile: Precedence.jet
|
|||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
OPERATION_REFERENCE
|
OPERATION_REFERENCE
|
||||||
PsiElement(as)('as')
|
PsiElement(as)('as')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -868,16 +864,14 @@ JetFile: Precedence.jet
|
|||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
OPERATION_REFERENCE
|
OPERATION_REFERENCE
|
||||||
PsiElement(AS_SAFE)('as?')
|
PsiElement(AS_SAFE)('as?')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -1003,16 +997,14 @@ JetFile: Precedence.jet
|
|||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
OPERATION_REFERENCE
|
OPERATION_REFERENCE
|
||||||
PsiElement(as)('as')
|
PsiElement(as)('as')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -1104,16 +1096,14 @@ JetFile: Precedence.jet
|
|||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
OPERATION_REFERENCE
|
OPERATION_REFERENCE
|
||||||
PsiElement(AS_SAFE)('as?')
|
PsiElement(AS_SAFE)('as?')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
namespace foo.bar;
|
package foo.bar;
|
||||||
|
|
||||||
class X
|
class X
|
||||||
|
|
||||||
namespace foo.bar {
|
package foo.bar {
|
||||||
fun foo() {
|
fun foo() {
|
||||||
namespace.foo.bar.X
|
namespace.foo.bar.X
|
||||||
namespace.foo.bar.X()
|
namespace.foo.bar.X()
|
||||||
when (e) {
|
when (e) {
|
||||||
is namespace.foo.bar.X @ (x) => {}
|
is namespace.foo.bar.X #(x) -> {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
JetFile: RootNamespace.jet
|
JetFile: RootNamespace.jet
|
||||||
NAMESPACE
|
NAMESPACE
|
||||||
NAMESPACE_HEADER
|
NAMESPACE_HEADER
|
||||||
PsiElement(namespace)('namespace')
|
PsiElement(namespace)('package')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
@@ -18,7 +18,7 @@ JetFile: RootNamespace.jet
|
|||||||
<empty list>
|
<empty list>
|
||||||
NAMESPACE
|
NAMESPACE
|
||||||
NAMESPACE_HEADER
|
NAMESPACE_HEADER
|
||||||
PsiElement(namespace)('namespace')
|
PsiElement(namespace)('package')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
@@ -102,10 +102,9 @@ JetFile: RootNamespace.jet
|
|||||||
PsiElement(DOT)('.')
|
PsiElement(DOT)('.')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('X')
|
PsiElement(IDENTIFIER)('X')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(AT)('@')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
DECOMPOSER_ARGUMENT_LIST
|
DECOMPOSER_ARGUMENT_LIST
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
TUPLE_PATTERN_ENTRY
|
TUPLE_PATTERN_ENTRY
|
||||||
TYPE_PATTERN
|
TYPE_PATTERN
|
||||||
@@ -115,7 +114,7 @@ JetFile: RootNamespace.jet
|
|||||||
PsiElement(IDENTIFIER)('x')
|
PsiElement(IDENTIFIER)('x')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BLOCK
|
BLOCK
|
||||||
PsiElement(LBRACE)('{')
|
PsiElement(LBRACE)('{')
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
foo bar(1) buzz<T>(1) zoo namespace aa
|
foo bar(1) buzz<T>(1) zoo package aa
|
||||||
|
|
||||||
foo bar(1) buzz<T>(1) zoo namespace a {}
|
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() {}
|
||||||
@@ -24,6 +24,6 @@ class Foo {
|
|||||||
|
|
||||||
fun test() {
|
fun test() {
|
||||||
when (foo bar(1) buzz<T>(1) zoo val a = 1) {
|
when (foo bar(1) buzz<T>(1) zoo val a = 1) {
|
||||||
1 => 1
|
1 -> 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -50,7 +50,7 @@ JetFile: ShortAnnotations.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('zoo')
|
PsiElement(IDENTIFIER)('zoo')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(namespace)('namespace')
|
PsiElement(namespace)('package')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('aa')
|
PsiElement(IDENTIFIER)('aa')
|
||||||
PsiWhiteSpace('\n\n')
|
PsiWhiteSpace('\n\n')
|
||||||
@@ -105,7 +105,7 @@ JetFile: ShortAnnotations.jet
|
|||||||
PsiElement(IDENTIFIER)('zoo')
|
PsiElement(IDENTIFIER)('zoo')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
NAMESPACE_HEADER
|
NAMESPACE_HEADER
|
||||||
PsiElement(namespace)('namespace')
|
PsiElement(namespace)('package')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
@@ -1134,7 +1134,7 @@ JetFile: ShortAnnotations.jet
|
|||||||
INTEGER_CONSTANT
|
INTEGER_CONSTANT
|
||||||
PsiElement(INTEGER_LITERAL)('1')
|
PsiElement(INTEGER_LITERAL)('1')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
INTEGER_CONSTANT
|
INTEGER_CONSTANT
|
||||||
PsiElement(INTEGER_LITERAL)('1')
|
PsiElement(INTEGER_LITERAL)('1')
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
fun a(
|
fun a(
|
||||||
a : foo = (),
|
a : foo = #(),
|
||||||
a : foo = 10,
|
a : foo = 10,
|
||||||
a : foo = 0x10,
|
a : foo = 0x10,
|
||||||
a : foo = '1',
|
a : foo = '1',
|
||||||
@@ -17,7 +17,7 @@ fun a(
|
|||||||
a : foo = this,
|
a : foo = this,
|
||||||
a : foo = super<sdf>,
|
a : foo = super<sdf>,
|
||||||
a : foo = (10),
|
a : foo = (10),
|
||||||
a : foo = (10, "A", 0xf),
|
a : foo = #(10, "A", 0xf),
|
||||||
a : foo = Foo(bar),
|
a : foo = Foo(bar),
|
||||||
a : foo = Foo<A>(bar),
|
a : foo = Foo<A>(bar),
|
||||||
a : foo = Foo(),
|
a : foo = Foo(),
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ JetFile: SimpleExpressions.jet
|
|||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TUPLE
|
TUPLE
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiElement(COMMA)(',')
|
PsiElement(COMMA)(',')
|
||||||
@@ -325,6 +326,7 @@ JetFile: SimpleExpressions.jet
|
|||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TUPLE
|
TUPLE
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
INTEGER_CONSTANT
|
INTEGER_CONSTANT
|
||||||
PsiElement(INTEGER_LITERAL)('10')
|
PsiElement(INTEGER_LITERAL)('10')
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace foo.bar.goo
|
package foo.bar.goo
|
||||||
|
|
||||||
abstract
|
abstract
|
||||||
open
|
open
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
JetFile: SimpleModifiers.jet
|
JetFile: SimpleModifiers.jet
|
||||||
NAMESPACE
|
NAMESPACE
|
||||||
NAMESPACE_HEADER
|
NAMESPACE_HEADER
|
||||||
PsiElement(namespace)('namespace')
|
PsiElement(namespace)('package')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace foo.bar.goo
|
package foo.bar.goo
|
||||||
|
|
||||||
import foo
|
import foo
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
JetFile: SoftKeywords.jet
|
JetFile: SoftKeywords.jet
|
||||||
NAMESPACE
|
NAMESPACE
|
||||||
NAMESPACE_HEADER
|
NAMESPACE_HEADER
|
||||||
PsiElement(namespace)('namespace')
|
PsiElement(namespace)('package')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ fun demo() {
|
|||||||
val a = ""
|
val a = ""
|
||||||
val asd = 1
|
val asd = 1
|
||||||
val bar = 5
|
val bar = 5
|
||||||
fun map(f : fun () : Any?) : Int = 1
|
fun map(f : () -> Any?) : Int = 1
|
||||||
fun buzz(f : fun () : Any?) : Int = 1
|
fun buzz(f : () -> Any?) : Int = 1
|
||||||
val sdf = 1
|
val sdf = 1
|
||||||
val foo = 3;
|
val foo = 3;
|
||||||
"$this must be$as$t"
|
"$this must be$as$t"
|
||||||
|
|||||||
@@ -64,16 +64,14 @@ JetFile: StringTemplates.jet
|
|||||||
PsiElement(IDENTIFIER)('f')
|
PsiElement(IDENTIFIER)('f')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
NULLABLE_TYPE
|
NULLABLE_TYPE
|
||||||
@@ -105,16 +103,14 @@ JetFile: StringTemplates.jet
|
|||||||
PsiElement(IDENTIFIER)('f')
|
PsiElement(IDENTIFIER)('f')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
NULLABLE_TYPE
|
NULLABLE_TYPE
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
class F(
|
class F(
|
||||||
a : (),
|
a : #(),
|
||||||
x : (X),
|
x : #(X),
|
||||||
b : (A, B),
|
b : #(A, B),
|
||||||
c : (x : Int, y : Int),
|
c : #(x : Int, y : Int),
|
||||||
a : [x] (),
|
a : [x] #(),
|
||||||
x : [x]([x] X),
|
x : [x]#([x] X),
|
||||||
b : [x] ([x] A, [x]B),
|
b : [x] #([x] A, [x]B),
|
||||||
c : [x] (x : [x] Int, y : [x] Int)
|
c : [x] #(x : [x] Int, y : [x] Int)
|
||||||
)
|
)
|
||||||
@@ -18,6 +18,7 @@ JetFile: TupleTypes.jet
|
|||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
TUPLE_TYPE
|
TUPLE_TYPE
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiElement(COMMA)(',')
|
PsiElement(COMMA)(',')
|
||||||
@@ -29,6 +30,7 @@ JetFile: TupleTypes.jet
|
|||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
TUPLE_TYPE
|
TUPLE_TYPE
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -44,6 +46,7 @@ JetFile: TupleTypes.jet
|
|||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
TUPLE_TYPE
|
TUPLE_TYPE
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -65,6 +68,7 @@ JetFile: TupleTypes.jet
|
|||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
TUPLE_TYPE
|
TUPLE_TYPE
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
LABELED_TUPLE_TYPE_ENTRY
|
LABELED_TUPLE_TYPE_ENTRY
|
||||||
PsiElement(IDENTIFIER)('x')
|
PsiElement(IDENTIFIER)('x')
|
||||||
@@ -106,6 +110,7 @@ JetFile: TupleTypes.jet
|
|||||||
PsiElement(RBRACKET)(']')
|
PsiElement(RBRACKET)(']')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TUPLE_TYPE
|
TUPLE_TYPE
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiElement(COMMA)(',')
|
PsiElement(COMMA)(',')
|
||||||
@@ -126,6 +131,7 @@ JetFile: TupleTypes.jet
|
|||||||
PsiElement(IDENTIFIER)('x')
|
PsiElement(IDENTIFIER)('x')
|
||||||
PsiElement(RBRACKET)(']')
|
PsiElement(RBRACKET)(']')
|
||||||
TUPLE_TYPE
|
TUPLE_TYPE
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
ANNOTATION
|
ANNOTATION
|
||||||
@@ -161,6 +167,7 @@ JetFile: TupleTypes.jet
|
|||||||
PsiElement(RBRACKET)(']')
|
PsiElement(RBRACKET)(']')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TUPLE_TYPE
|
TUPLE_TYPE
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
ANNOTATION
|
ANNOTATION
|
||||||
@@ -211,6 +218,7 @@ JetFile: TupleTypes.jet
|
|||||||
PsiElement(RBRACKET)(']')
|
PsiElement(RBRACKET)(']')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TUPLE_TYPE
|
TUPLE_TYPE
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
LABELED_TUPLE_TYPE_ENTRY
|
LABELED_TUPLE_TYPE_ENTRY
|
||||||
PsiElement(IDENTIFIER)('x')
|
PsiElement(IDENTIFIER)('x')
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
class F(
|
class F(
|
||||||
a : (),
|
a : #(),
|
||||||
x : (X),
|
x : #(X),
|
||||||
b : (A, ),
|
b : #(A, ),
|
||||||
c : (x : , : Int),
|
c : #(x : , : Int),
|
||||||
a : [x] (),
|
a : [x] #(),
|
||||||
x : [x]([x X),
|
x : [x]#([x X),
|
||||||
b : [x] ([x] A, [x]B),
|
b : [x] #([x] A, [x]B),
|
||||||
c : [x] (x : [x] Int, y : [x] Int)
|
c : [x] #(x : [x] Int, y : [x] Int)
|
||||||
)
|
)
|
||||||
@@ -18,6 +18,7 @@ JetFile: TupleTypes_ERR.jet
|
|||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
TUPLE_TYPE
|
TUPLE_TYPE
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiElement(COMMA)(',')
|
PsiElement(COMMA)(',')
|
||||||
@@ -29,6 +30,7 @@ JetFile: TupleTypes_ERR.jet
|
|||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
TUPLE_TYPE
|
TUPLE_TYPE
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -44,6 +46,7 @@ JetFile: TupleTypes_ERR.jet
|
|||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
TUPLE_TYPE
|
TUPLE_TYPE
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -63,6 +66,7 @@ JetFile: TupleTypes_ERR.jet
|
|||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
TUPLE_TYPE
|
TUPLE_TYPE
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
LABELED_TUPLE_TYPE_ENTRY
|
LABELED_TUPLE_TYPE_ENTRY
|
||||||
PsiElement(IDENTIFIER)('x')
|
PsiElement(IDENTIFIER)('x')
|
||||||
@@ -101,6 +105,7 @@ JetFile: TupleTypes_ERR.jet
|
|||||||
PsiElement(RBRACKET)(']')
|
PsiElement(RBRACKET)(']')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TUPLE_TYPE
|
TUPLE_TYPE
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiElement(COMMA)(',')
|
PsiElement(COMMA)(',')
|
||||||
@@ -121,6 +126,7 @@ JetFile: TupleTypes_ERR.jet
|
|||||||
PsiElement(IDENTIFIER)('x')
|
PsiElement(IDENTIFIER)('x')
|
||||||
PsiElement(RBRACKET)(']')
|
PsiElement(RBRACKET)(']')
|
||||||
TUPLE_TYPE
|
TUPLE_TYPE
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
ANNOTATION
|
ANNOTATION
|
||||||
@@ -160,6 +166,7 @@ JetFile: TupleTypes_ERR.jet
|
|||||||
PsiElement(RBRACKET)(']')
|
PsiElement(RBRACKET)(']')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TUPLE_TYPE
|
TUPLE_TYPE
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
ANNOTATION
|
ANNOTATION
|
||||||
@@ -210,6 +217,7 @@ JetFile: TupleTypes_ERR.jet
|
|||||||
PsiElement(RBRACKET)(']')
|
PsiElement(RBRACKET)(']')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TUPLE_TYPE
|
TUPLE_TYPE
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
LABELED_TUPLE_TYPE_ENTRY
|
LABELED_TUPLE_TYPE_ENTRY
|
||||||
PsiElement(IDENTIFIER)('x')
|
PsiElement(IDENTIFIER)('x')
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
val foo = (a = 3)
|
val foo = #(a = 3)
|
||||||
val foo = (a = 3, a)
|
val foo = #(a = 3, a)
|
||||||
@@ -10,6 +10,7 @@ JetFile: TuplesWithLabeledEntries.jet
|
|||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TUPLE
|
TUPLE
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
LABELED_TUPLE_ENTRY
|
LABELED_TUPLE_ENTRY
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
@@ -28,6 +29,7 @@ JetFile: TuplesWithLabeledEntries.jet
|
|||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TUPLE
|
TUPLE
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
LABELED_TUPLE_ENTRY
|
LABELED_TUPLE_ENTRY
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace foo.bar.goo
|
package foo.bar.goo
|
||||||
|
|
||||||
type foo = bar
|
type foo = bar
|
||||||
type foo<T> = bar
|
type foo<T> = bar
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
JetFile: TypeDef.jet
|
JetFile: TypeDef.jet
|
||||||
NAMESPACE
|
NAMESPACE
|
||||||
NAMESPACE_HEADER
|
NAMESPACE_HEADER
|
||||||
PsiElement(namespace)('namespace')
|
PsiElement(namespace)('package')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
fun foo() {
|
fun foo() {
|
||||||
foo<Int?>()
|
foo<Int?>()
|
||||||
fooo<Double?addddd>()
|
fooo<Double?addddd>()
|
||||||
dd<(Int, Int, Int)>(if (true) (1, 1, 1) else (2, 2, 2))
|
dd<#(Int, Int, Int)>(if (true) #(1, 1, 1) else #(2, 2, 2))
|
||||||
foo(bar<a, b, c>(d))
|
foo(bar<a, b, c>(d))
|
||||||
foo(bar<a, b+1, c>(d))
|
foo(bar<a, b+1, c>(d))
|
||||||
foo(bar<a, f(), c>(d))
|
foo(bar<a, f(), c>(d))
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ JetFile: TypeExpressionAmbiguities_ERR.jet
|
|||||||
TYPE_PROJECTION
|
TYPE_PROJECTION
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
TUPLE_TYPE
|
TUPLE_TYPE
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -90,6 +91,7 @@ JetFile: TypeExpressionAmbiguities_ERR.jet
|
|||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
THEN
|
THEN
|
||||||
TUPLE
|
TUPLE
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
INTEGER_CONSTANT
|
INTEGER_CONSTANT
|
||||||
PsiElement(INTEGER_LITERAL)('1')
|
PsiElement(INTEGER_LITERAL)('1')
|
||||||
@@ -107,6 +109,7 @@ JetFile: TypeExpressionAmbiguities_ERR.jet
|
|||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
ELSE
|
ELSE
|
||||||
TUPLE
|
TUPLE
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
INTEGER_CONSTANT
|
INTEGER_CONSTANT
|
||||||
PsiElement(INTEGER_LITERAL)('2')
|
PsiElement(INTEGER_LITERAL)('2')
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
fun foo() {
|
fun foo() {
|
||||||
return false
|
return false
|
||||||
|
|
||||||
fun a() = {when(x) { is a => b }}
|
fun a() = {when(x) { is a -> b }}
|
||||||
|
|
||||||
// foo
|
// foo
|
||||||
fun b() {}
|
fun b() {}
|
||||||
@@ -13,20 +13,20 @@ fun foo() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
when (e) {
|
when (e) {
|
||||||
is a => foo
|
is a -> foo
|
||||||
}
|
}
|
||||||
when (e) {
|
when (e) {
|
||||||
is Tree @ (a, b) => foo
|
is Tree #(a, b) -> foo
|
||||||
is null => foo
|
is null -> foo
|
||||||
is 1 => foo
|
is 1 -> foo
|
||||||
is A.b => foo
|
is A.b -> foo
|
||||||
is 1.0 => foo
|
is 1.0 -> foo
|
||||||
is 'c' => foo
|
is 'c' -> foo
|
||||||
is "sadfsa" => foo
|
is "sadfsa" -> foo
|
||||||
is """ddd""" => foo
|
is """ddd""" -> foo
|
||||||
is * => foo
|
is * -> foo
|
||||||
is val a is Foo => foo
|
is val a is Foo -> foo
|
||||||
is (val a is Foo, b) => foo
|
is #(val a is Foo, b) -> foo
|
||||||
}
|
}
|
||||||
when (when(when (e) {
|
when (when(when (e) {
|
||||||
|
|
||||||
@@ -39,45 +39,45 @@ fun foo() {
|
|||||||
|
|
||||||
fun foo() {
|
fun foo() {
|
||||||
when (val a = e) {
|
when (val a = e) {
|
||||||
is Tree => c
|
is Tree -> c
|
||||||
is Tree @ (null, val r) => c
|
is Tree #(null, val r) -> c
|
||||||
is a @ (a, b) => c
|
is a #(a, b) -> c
|
||||||
is a @ (a, b) => c
|
is a #(a, b) -> c
|
||||||
is a.a @ (a, b) => c
|
is a.a #(a, b) -> c
|
||||||
is a.a @ (foo = a, bar = b) => c
|
is a.a #(foo = a, bar = b) -> c
|
||||||
is namespace.a.a @ (a, b) => c
|
is namespace.a.a #(a, b) -> c
|
||||||
is a @ (val a is T, b) => c
|
is a #(val a is T, b) -> c
|
||||||
is a @ (b, 1) => c
|
is a #(b, 1) -> c
|
||||||
in 1..2 => dsf
|
in 1..2 -> dsf
|
||||||
!in 2 => sd
|
!in 2 -> sd
|
||||||
!is t => d
|
!is t -> d
|
||||||
is fun (foo) : Bar => fgpp
|
is (foo) -> Bar -> fgpp
|
||||||
is (1, val a is Foo, *, Foo, bar) => d
|
is #(1, val a is Foo, *, Foo, bar) -> d
|
||||||
is (Foo, val a in 1..2, *, val _ !is Foo, val bar is foo.bar<a> @ (a)) => d
|
is #(Foo, val a in 1..2, *, val _ !is Foo, val bar is foo.bar<a> #(a)) -> d
|
||||||
is (Int, Int) => 2
|
is #(Int, Int) -> 2
|
||||||
is val a : Foo => 2
|
is val a : Foo -> 2
|
||||||
else => foo
|
else -> foo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun foo() {
|
fun foo() {
|
||||||
when (val a = e) {
|
when (val a = e) {
|
||||||
is Tree,
|
is Tree,
|
||||||
is Tree @ (null, val r),
|
is Tree #(null, val r),
|
||||||
is a @ (a, b) => c
|
is a #(a, b) -> c
|
||||||
1, foo(), bar, 2 + 3,
|
1, foo(), bar, 2 + 3,
|
||||||
is a @ (a, b) => c
|
is a #(a, b) -> c
|
||||||
is a.a @ (val b, b) => c
|
is a.a #(val b, b) -> c
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun whenWithoutCondition(i : Int) {
|
fun whenWithoutCondition(i : Int) {
|
||||||
val j = 12
|
val j = 12
|
||||||
when {
|
when {
|
||||||
3 => -1
|
3 -> -1
|
||||||
i == 3 => -1
|
i == 3 -> -1
|
||||||
j < i, j == i => -1
|
j < i, j == i -> -1
|
||||||
i is Int => 1
|
i is Int -> 1
|
||||||
else => 2
|
else -> 2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+86
-102
@@ -52,7 +52,7 @@ JetFile: When.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('b')
|
PsiElement(IDENTIFIER)('b')
|
||||||
@@ -119,7 +119,7 @@ JetFile: When.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
@@ -143,10 +143,9 @@ JetFile: When.jet
|
|||||||
DECOMPOSER_PATTERN
|
DECOMPOSER_PATTERN
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('Tree')
|
PsiElement(IDENTIFIER)('Tree')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(AT)('@')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
DECOMPOSER_ARGUMENT_LIST
|
DECOMPOSER_ARGUMENT_LIST
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
TUPLE_PATTERN_ENTRY
|
TUPLE_PATTERN_ENTRY
|
||||||
TYPE_PATTERN
|
TYPE_PATTERN
|
||||||
@@ -164,7 +163,7 @@ JetFile: When.jet
|
|||||||
PsiElement(IDENTIFIER)('b')
|
PsiElement(IDENTIFIER)('b')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
@@ -177,7 +176,7 @@ JetFile: When.jet
|
|||||||
NULL
|
NULL
|
||||||
PsiElement(null)('null')
|
PsiElement(null)('null')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
@@ -190,7 +189,7 @@ JetFile: When.jet
|
|||||||
INTEGER_CONSTANT
|
INTEGER_CONSTANT
|
||||||
PsiElement(INTEGER_LITERAL)('1')
|
PsiElement(INTEGER_LITERAL)('1')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
@@ -209,7 +208,7 @@ JetFile: When.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('b')
|
PsiElement(IDENTIFIER)('b')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
@@ -222,7 +221,7 @@ JetFile: When.jet
|
|||||||
FLOAT_CONSTANT
|
FLOAT_CONSTANT
|
||||||
PsiElement(FLOAT_CONSTANT)('1.0')
|
PsiElement(FLOAT_CONSTANT)('1.0')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
@@ -235,7 +234,7 @@ JetFile: When.jet
|
|||||||
CHARACTER_CONSTANT
|
CHARACTER_CONSTANT
|
||||||
PsiElement(CHARACTER_LITERAL)(''c'')
|
PsiElement(CHARACTER_LITERAL)(''c'')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
@@ -251,7 +250,7 @@ JetFile: When.jet
|
|||||||
PsiElement(REGULAR_STRING_PART)('sadfsa')
|
PsiElement(REGULAR_STRING_PART)('sadfsa')
|
||||||
PsiElement(CLOSING_QUOTE)('"')
|
PsiElement(CLOSING_QUOTE)('"')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
@@ -264,7 +263,7 @@ JetFile: When.jet
|
|||||||
STRING_CONSTANT
|
STRING_CONSTANT
|
||||||
PsiElement(RAW_STRING_LITERAL)('"""ddd"""')
|
PsiElement(RAW_STRING_LITERAL)('"""ddd"""')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
@@ -276,7 +275,7 @@ JetFile: When.jet
|
|||||||
WILDCARD_PATTERN
|
WILDCARD_PATTERN
|
||||||
PsiElement(MUL)('*')
|
PsiElement(MUL)('*')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
@@ -300,7 +299,7 @@ JetFile: When.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('Foo')
|
PsiElement(IDENTIFIER)('Foo')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
@@ -310,6 +309,7 @@ JetFile: When.jet
|
|||||||
PsiElement(is)('is')
|
PsiElement(is)('is')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TUPLE_PATTERN
|
TUPLE_PATTERN
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
TUPLE_PATTERN_ENTRY
|
TUPLE_PATTERN_ENTRY
|
||||||
BINDING_PATTERN
|
BINDING_PATTERN
|
||||||
@@ -336,7 +336,7 @@ JetFile: When.jet
|
|||||||
PsiElement(IDENTIFIER)('b')
|
PsiElement(IDENTIFIER)('b')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
@@ -412,7 +412,7 @@ JetFile: When.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('Tree')
|
PsiElement(IDENTIFIER)('Tree')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('c')
|
PsiElement(IDENTIFIER)('c')
|
||||||
@@ -424,10 +424,9 @@ JetFile: When.jet
|
|||||||
DECOMPOSER_PATTERN
|
DECOMPOSER_PATTERN
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('Tree')
|
PsiElement(IDENTIFIER)('Tree')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(AT)('@')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
DECOMPOSER_ARGUMENT_LIST
|
DECOMPOSER_ARGUMENT_LIST
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
TUPLE_PATTERN_ENTRY
|
TUPLE_PATTERN_ENTRY
|
||||||
EXPRESSION_PATTERN
|
EXPRESSION_PATTERN
|
||||||
@@ -443,7 +442,7 @@ JetFile: When.jet
|
|||||||
PsiElement(IDENTIFIER)('r')
|
PsiElement(IDENTIFIER)('r')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('c')
|
PsiElement(IDENTIFIER)('c')
|
||||||
@@ -455,10 +454,9 @@ JetFile: When.jet
|
|||||||
DECOMPOSER_PATTERN
|
DECOMPOSER_PATTERN
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(AT)('@')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
DECOMPOSER_ARGUMENT_LIST
|
DECOMPOSER_ARGUMENT_LIST
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
TUPLE_PATTERN_ENTRY
|
TUPLE_PATTERN_ENTRY
|
||||||
TYPE_PATTERN
|
TYPE_PATTERN
|
||||||
@@ -476,7 +474,7 @@ JetFile: When.jet
|
|||||||
PsiElement(IDENTIFIER)('b')
|
PsiElement(IDENTIFIER)('b')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('c')
|
PsiElement(IDENTIFIER)('c')
|
||||||
@@ -488,10 +486,9 @@ JetFile: When.jet
|
|||||||
DECOMPOSER_PATTERN
|
DECOMPOSER_PATTERN
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(AT)('@')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
DECOMPOSER_ARGUMENT_LIST
|
DECOMPOSER_ARGUMENT_LIST
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
TUPLE_PATTERN_ENTRY
|
TUPLE_PATTERN_ENTRY
|
||||||
TYPE_PATTERN
|
TYPE_PATTERN
|
||||||
@@ -509,7 +506,7 @@ JetFile: When.jet
|
|||||||
PsiElement(IDENTIFIER)('b')
|
PsiElement(IDENTIFIER)('b')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('c')
|
PsiElement(IDENTIFIER)('c')
|
||||||
@@ -525,10 +522,9 @@ JetFile: When.jet
|
|||||||
PsiElement(DOT)('.')
|
PsiElement(DOT)('.')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(AT)('@')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
DECOMPOSER_ARGUMENT_LIST
|
DECOMPOSER_ARGUMENT_LIST
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
TUPLE_PATTERN_ENTRY
|
TUPLE_PATTERN_ENTRY
|
||||||
TYPE_PATTERN
|
TYPE_PATTERN
|
||||||
@@ -546,7 +542,7 @@ JetFile: When.jet
|
|||||||
PsiElement(IDENTIFIER)('b')
|
PsiElement(IDENTIFIER)('b')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('c')
|
PsiElement(IDENTIFIER)('c')
|
||||||
@@ -562,10 +558,9 @@ JetFile: When.jet
|
|||||||
PsiElement(DOT)('.')
|
PsiElement(DOT)('.')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(AT)('@')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
DECOMPOSER_ARGUMENT_LIST
|
DECOMPOSER_ARGUMENT_LIST
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
TUPLE_PATTERN_ENTRY
|
TUPLE_PATTERN_ENTRY
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
@@ -591,7 +586,7 @@ JetFile: When.jet
|
|||||||
PsiElement(IDENTIFIER)('b')
|
PsiElement(IDENTIFIER)('b')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('c')
|
PsiElement(IDENTIFIER)('c')
|
||||||
@@ -611,10 +606,9 @@ JetFile: When.jet
|
|||||||
PsiElement(DOT)('.')
|
PsiElement(DOT)('.')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(AT)('@')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
DECOMPOSER_ARGUMENT_LIST
|
DECOMPOSER_ARGUMENT_LIST
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
TUPLE_PATTERN_ENTRY
|
TUPLE_PATTERN_ENTRY
|
||||||
TYPE_PATTERN
|
TYPE_PATTERN
|
||||||
@@ -632,7 +626,7 @@ JetFile: When.jet
|
|||||||
PsiElement(IDENTIFIER)('b')
|
PsiElement(IDENTIFIER)('b')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('c')
|
PsiElement(IDENTIFIER)('c')
|
||||||
@@ -644,10 +638,9 @@ JetFile: When.jet
|
|||||||
DECOMPOSER_PATTERN
|
DECOMPOSER_PATTERN
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(AT)('@')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
DECOMPOSER_ARGUMENT_LIST
|
DECOMPOSER_ARGUMENT_LIST
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
TUPLE_PATTERN_ENTRY
|
TUPLE_PATTERN_ENTRY
|
||||||
BINDING_PATTERN
|
BINDING_PATTERN
|
||||||
@@ -674,7 +667,7 @@ JetFile: When.jet
|
|||||||
PsiElement(IDENTIFIER)('b')
|
PsiElement(IDENTIFIER)('b')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('c')
|
PsiElement(IDENTIFIER)('c')
|
||||||
@@ -686,10 +679,9 @@ JetFile: When.jet
|
|||||||
DECOMPOSER_PATTERN
|
DECOMPOSER_PATTERN
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(AT)('@')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
DECOMPOSER_ARGUMENT_LIST
|
DECOMPOSER_ARGUMENT_LIST
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
TUPLE_PATTERN_ENTRY
|
TUPLE_PATTERN_ENTRY
|
||||||
TYPE_PATTERN
|
TYPE_PATTERN
|
||||||
@@ -705,7 +697,7 @@ JetFile: When.jet
|
|||||||
PsiElement(INTEGER_LITERAL)('1')
|
PsiElement(INTEGER_LITERAL)('1')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('c')
|
PsiElement(IDENTIFIER)('c')
|
||||||
@@ -723,7 +715,7 @@ JetFile: When.jet
|
|||||||
INTEGER_CONSTANT
|
INTEGER_CONSTANT
|
||||||
PsiElement(INTEGER_LITERAL)('2')
|
PsiElement(INTEGER_LITERAL)('2')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('dsf')
|
PsiElement(IDENTIFIER)('dsf')
|
||||||
@@ -736,7 +728,7 @@ JetFile: When.jet
|
|||||||
INTEGER_CONSTANT
|
INTEGER_CONSTANT
|
||||||
PsiElement(INTEGER_LITERAL)('2')
|
PsiElement(INTEGER_LITERAL)('2')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('sd')
|
PsiElement(IDENTIFIER)('sd')
|
||||||
@@ -751,7 +743,7 @@ JetFile: When.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('t')
|
PsiElement(IDENTIFIER)('t')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('d')
|
PsiElement(IDENTIFIER)('d')
|
||||||
@@ -759,29 +751,23 @@ JetFile: When.jet
|
|||||||
WHEN_ENTRY
|
WHEN_ENTRY
|
||||||
WHEN_CONDITION_IS_PATTERN
|
WHEN_CONDITION_IS_PATTERN
|
||||||
PsiElement(is)('is')
|
PsiElement(is)('is')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_PATTERN
|
PsiErrorElement:Pattern expected
|
||||||
TYPE_REFERENCE
|
PsiElement(LPAR)('(')
|
||||||
FUNCTION_TYPE
|
PsiElement(IDENTIFIER)('foo')
|
||||||
PsiElement(fun)('fun')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
|
||||||
PsiElement(LPAR)('(')
|
|
||||||
VALUE_PARAMETER
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('foo')
|
|
||||||
PsiElement(RPAR)(')')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
PsiElement(COLON)(':')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION
|
|
||||||
PsiElement(IDENTIFIER)('Bar')
|
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
REFERENCE_EXPRESSION
|
||||||
|
PsiElement(IDENTIFIER)('Bar')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
WHEN_ENTRY
|
||||||
|
WHEN_CONDITION_IS_PATTERN
|
||||||
|
EXPRESSION_PATTERN
|
||||||
|
PsiErrorElement:Expecting an expression, is-condition or in-condition
|
||||||
|
<empty list>
|
||||||
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('fgpp')
|
PsiElement(IDENTIFIER)('fgpp')
|
||||||
@@ -791,6 +777,7 @@ JetFile: When.jet
|
|||||||
PsiElement(is)('is')
|
PsiElement(is)('is')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TUPLE_PATTERN
|
TUPLE_PATTERN
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
TUPLE_PATTERN_ENTRY
|
TUPLE_PATTERN_ENTRY
|
||||||
EXPRESSION_PATTERN
|
EXPRESSION_PATTERN
|
||||||
@@ -836,7 +823,7 @@ JetFile: When.jet
|
|||||||
PsiElement(IDENTIFIER)('bar')
|
PsiElement(IDENTIFIER)('bar')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('d')
|
PsiElement(IDENTIFIER)('d')
|
||||||
@@ -846,6 +833,7 @@ JetFile: When.jet
|
|||||||
PsiElement(is)('is')
|
PsiElement(is)('is')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TUPLE_PATTERN
|
TUPLE_PATTERN
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
TUPLE_PATTERN_ENTRY
|
TUPLE_PATTERN_ENTRY
|
||||||
TYPE_PATTERN
|
TYPE_PATTERN
|
||||||
@@ -923,10 +911,9 @@ JetFile: When.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiElement(GT)('>')
|
PsiElement(GT)('>')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(AT)('@')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
DECOMPOSER_ARGUMENT_LIST
|
DECOMPOSER_ARGUMENT_LIST
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
TUPLE_PATTERN_ENTRY
|
TUPLE_PATTERN_ENTRY
|
||||||
TYPE_PATTERN
|
TYPE_PATTERN
|
||||||
@@ -937,7 +924,7 @@ JetFile: When.jet
|
|||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('d')
|
PsiElement(IDENTIFIER)('d')
|
||||||
@@ -947,6 +934,7 @@ JetFile: When.jet
|
|||||||
PsiElement(is)('is')
|
PsiElement(is)('is')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TUPLE_PATTERN
|
TUPLE_PATTERN
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
TUPLE_PATTERN_ENTRY
|
TUPLE_PATTERN_ENTRY
|
||||||
TYPE_PATTERN
|
TYPE_PATTERN
|
||||||
@@ -964,7 +952,7 @@ JetFile: When.jet
|
|||||||
PsiElement(IDENTIFIER)('Int')
|
PsiElement(IDENTIFIER)('Int')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
INTEGER_CONSTANT
|
INTEGER_CONSTANT
|
||||||
PsiElement(INTEGER_LITERAL)('2')
|
PsiElement(INTEGER_LITERAL)('2')
|
||||||
@@ -986,7 +974,7 @@ JetFile: When.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('Foo')
|
PsiElement(IDENTIFIER)('Foo')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
INTEGER_CONSTANT
|
INTEGER_CONSTANT
|
||||||
PsiElement(INTEGER_LITERAL)('2')
|
PsiElement(INTEGER_LITERAL)('2')
|
||||||
@@ -994,7 +982,7 @@ JetFile: When.jet
|
|||||||
WHEN_ENTRY
|
WHEN_ENTRY
|
||||||
PsiElement(else)('else')
|
PsiElement(else)('else')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
@@ -1048,10 +1036,9 @@ JetFile: When.jet
|
|||||||
DECOMPOSER_PATTERN
|
DECOMPOSER_PATTERN
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('Tree')
|
PsiElement(IDENTIFIER)('Tree')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(AT)('@')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
DECOMPOSER_ARGUMENT_LIST
|
DECOMPOSER_ARGUMENT_LIST
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
TUPLE_PATTERN_ENTRY
|
TUPLE_PATTERN_ENTRY
|
||||||
EXPRESSION_PATTERN
|
EXPRESSION_PATTERN
|
||||||
@@ -1074,10 +1061,9 @@ JetFile: When.jet
|
|||||||
DECOMPOSER_PATTERN
|
DECOMPOSER_PATTERN
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(AT)('@')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
DECOMPOSER_ARGUMENT_LIST
|
DECOMPOSER_ARGUMENT_LIST
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
TUPLE_PATTERN_ENTRY
|
TUPLE_PATTERN_ENTRY
|
||||||
TYPE_PATTERN
|
TYPE_PATTERN
|
||||||
@@ -1095,7 +1081,7 @@ JetFile: When.jet
|
|||||||
PsiElement(IDENTIFIER)('b')
|
PsiElement(IDENTIFIER)('b')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('c')
|
PsiElement(IDENTIFIER)('c')
|
||||||
@@ -1142,10 +1128,9 @@ JetFile: When.jet
|
|||||||
DECOMPOSER_PATTERN
|
DECOMPOSER_PATTERN
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(AT)('@')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
DECOMPOSER_ARGUMENT_LIST
|
DECOMPOSER_ARGUMENT_LIST
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
TUPLE_PATTERN_ENTRY
|
TUPLE_PATTERN_ENTRY
|
||||||
TYPE_PATTERN
|
TYPE_PATTERN
|
||||||
@@ -1163,7 +1148,7 @@ JetFile: When.jet
|
|||||||
PsiElement(IDENTIFIER)('b')
|
PsiElement(IDENTIFIER)('b')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('c')
|
PsiElement(IDENTIFIER)('c')
|
||||||
@@ -1179,10 +1164,9 @@ JetFile: When.jet
|
|||||||
PsiElement(DOT)('.')
|
PsiElement(DOT)('.')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(AT)('@')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
DECOMPOSER_ARGUMENT_LIST
|
DECOMPOSER_ARGUMENT_LIST
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
TUPLE_PATTERN_ENTRY
|
TUPLE_PATTERN_ENTRY
|
||||||
BINDING_PATTERN
|
BINDING_PATTERN
|
||||||
@@ -1200,7 +1184,7 @@ JetFile: When.jet
|
|||||||
PsiElement(IDENTIFIER)('b')
|
PsiElement(IDENTIFIER)('b')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('c')
|
PsiElement(IDENTIFIER)('c')
|
||||||
@@ -1250,7 +1234,7 @@ JetFile: When.jet
|
|||||||
INTEGER_CONSTANT
|
INTEGER_CONSTANT
|
||||||
PsiElement(INTEGER_LITERAL)('3')
|
PsiElement(INTEGER_LITERAL)('3')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PREFIX_EXPRESSION
|
PREFIX_EXPRESSION
|
||||||
OPERATION_REFERENCE
|
OPERATION_REFERENCE
|
||||||
@@ -1271,7 +1255,7 @@ JetFile: When.jet
|
|||||||
INTEGER_CONSTANT
|
INTEGER_CONSTANT
|
||||||
PsiElement(INTEGER_LITERAL)('3')
|
PsiElement(INTEGER_LITERAL)('3')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PREFIX_EXPRESSION
|
PREFIX_EXPRESSION
|
||||||
OPERATION_REFERENCE
|
OPERATION_REFERENCE
|
||||||
@@ -1305,7 +1289,7 @@ JetFile: When.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('i')
|
PsiElement(IDENTIFIER)('i')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PREFIX_EXPRESSION
|
PREFIX_EXPRESSION
|
||||||
OPERATION_REFERENCE
|
OPERATION_REFERENCE
|
||||||
@@ -1329,7 +1313,7 @@ JetFile: When.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('Int')
|
PsiElement(IDENTIFIER)('Int')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
INTEGER_CONSTANT
|
INTEGER_CONSTANT
|
||||||
PsiElement(INTEGER_LITERAL)('1')
|
PsiElement(INTEGER_LITERAL)('1')
|
||||||
@@ -1337,7 +1321,7 @@ JetFile: When.jet
|
|||||||
WHEN_ENTRY
|
WHEN_ENTRY
|
||||||
PsiElement(else)('else')
|
PsiElement(else)('else')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
INTEGER_CONSTANT
|
INTEGER_CONSTANT
|
||||||
PsiElement(INTEGER_LITERAL)('2')
|
PsiElement(INTEGER_LITERAL)('2')
|
||||||
|
|||||||
@@ -2,25 +2,25 @@ fun foo() {
|
|||||||
when (e) {
|
when (e) {
|
||||||
}
|
}
|
||||||
when (e) {
|
when (e) {
|
||||||
is => foo
|
is -> foo
|
||||||
!is => foo
|
!is -> foo
|
||||||
in => foo
|
in -> foo
|
||||||
!in => foo
|
!in -> foo
|
||||||
=> foo
|
-> foo
|
||||||
else
|
else
|
||||||
}
|
}
|
||||||
when (e) {
|
when (e) {
|
||||||
is =>
|
is ->
|
||||||
!is =>
|
!is ->
|
||||||
in =>
|
in ->
|
||||||
!in =>
|
!in ->
|
||||||
!in => ;
|
!in -> ;
|
||||||
=>
|
->
|
||||||
else
|
else
|
||||||
else =>
|
else ->
|
||||||
}
|
}
|
||||||
when (e) {
|
when (e) {
|
||||||
is - => foo
|
is - -> foo
|
||||||
is (, , 1, , ) => foo
|
is #(, , 1, , ) -> foo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -41,7 +41,7 @@ JetFile: When_ERR.jet
|
|||||||
PsiErrorElement:Expecting a type or a decomposer pattern
|
PsiErrorElement:Expecting a type or a decomposer pattern
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
@@ -52,7 +52,7 @@ JetFile: When_ERR.jet
|
|||||||
PsiErrorElement:Expecting a type or a decomposer pattern
|
PsiErrorElement:Expecting a type or a decomposer pattern
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
@@ -64,7 +64,7 @@ JetFile: When_ERR.jet
|
|||||||
PsiErrorElement:Expecting an element
|
PsiErrorElement:Expecting an element
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
@@ -76,7 +76,7 @@ JetFile: When_ERR.jet
|
|||||||
PsiErrorElement:Expecting an element
|
PsiErrorElement:Expecting an element
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
@@ -86,7 +86,7 @@ JetFile: When_ERR.jet
|
|||||||
EXPRESSION_PATTERN
|
EXPRESSION_PATTERN
|
||||||
PsiErrorElement:Expecting an expression, is-condition or in-condition
|
PsiErrorElement:Expecting an expression, is-condition or in-condition
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
@@ -114,7 +114,7 @@ JetFile: When_ERR.jet
|
|||||||
PsiErrorElement:Expecting a type or a decomposer pattern
|
PsiErrorElement:Expecting a type or a decomposer pattern
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiErrorElement:Expecting an element
|
PsiErrorElement:Expecting an element
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiWhiteSpace('\n ')
|
PsiWhiteSpace('\n ')
|
||||||
@@ -124,7 +124,7 @@ JetFile: When_ERR.jet
|
|||||||
PsiErrorElement:Expecting a type or a decomposer pattern
|
PsiErrorElement:Expecting a type or a decomposer pattern
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiErrorElement:Expecting an element
|
PsiErrorElement:Expecting an element
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiWhiteSpace('\n ')
|
PsiWhiteSpace('\n ')
|
||||||
@@ -135,7 +135,7 @@ JetFile: When_ERR.jet
|
|||||||
PsiErrorElement:Expecting an element
|
PsiErrorElement:Expecting an element
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiErrorElement:Expecting an element
|
PsiErrorElement:Expecting an element
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiWhiteSpace('\n ')
|
PsiWhiteSpace('\n ')
|
||||||
@@ -146,7 +146,7 @@ JetFile: When_ERR.jet
|
|||||||
PsiErrorElement:Expecting an element
|
PsiErrorElement:Expecting an element
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiErrorElement:Expecting an element
|
PsiErrorElement:Expecting an element
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiWhiteSpace('\n ')
|
PsiWhiteSpace('\n ')
|
||||||
@@ -157,7 +157,7 @@ JetFile: When_ERR.jet
|
|||||||
PsiErrorElement:Expecting an element
|
PsiErrorElement:Expecting an element
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiErrorElement:Expecting an expression
|
PsiErrorElement:Expecting an expression
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
@@ -168,7 +168,7 @@ JetFile: When_ERR.jet
|
|||||||
EXPRESSION_PATTERN
|
EXPRESSION_PATTERN
|
||||||
PsiErrorElement:Expecting an expression, is-condition or in-condition
|
PsiErrorElement:Expecting an expression, is-condition or in-condition
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiErrorElement:Expecting an element
|
PsiErrorElement:Expecting an element
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiWhiteSpace('\n ')
|
PsiWhiteSpace('\n ')
|
||||||
@@ -180,7 +180,7 @@ JetFile: When_ERR.jet
|
|||||||
WHEN_ENTRY
|
WHEN_ENTRY
|
||||||
PsiElement(else)('else')
|
PsiElement(else)('else')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiErrorElement:Expecting an element
|
PsiErrorElement:Expecting an element
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiWhiteSpace('\n ')
|
PsiWhiteSpace('\n ')
|
||||||
@@ -203,7 +203,7 @@ JetFile: When_ERR.jet
|
|||||||
PsiErrorElement:Pattern expected
|
PsiErrorElement:Pattern expected
|
||||||
PsiElement(MINUS)('-')
|
PsiElement(MINUS)('-')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
@@ -213,6 +213,7 @@ JetFile: When_ERR.jet
|
|||||||
PsiElement(is)('is')
|
PsiElement(is)('is')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TUPLE_PATTERN
|
TUPLE_PATTERN
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiErrorElement:Expecting a pattern
|
PsiErrorElement:Expecting a pattern
|
||||||
PsiElement(COMMA)(',')
|
PsiElement(COMMA)(',')
|
||||||
@@ -233,7 +234,7 @@ JetFile: When_ERR.jet
|
|||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('foo')
|
PsiElement(IDENTIFIER)('foo')
|
||||||
|
|||||||
@@ -28,9 +28,9 @@ class BinaryTree<T> : IMutableSet<T> {
|
|||||||
fun contains(node : TreeNode, item : T) : Boolean {
|
fun contains(node : TreeNode, item : T) : Boolean {
|
||||||
if (node == null) return false
|
if (node == null) return false
|
||||||
when(compare(item, node.value)) {
|
when(compare(item, node.value)) {
|
||||||
EQ => true
|
EQ -> true
|
||||||
LS => contains(node.left, item)
|
LS -> contains(node.left, item)
|
||||||
GT => contains(node.right, item)
|
GT -> contains(node.right, item)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -51,9 +51,9 @@ class BinaryTree<T> : IMutableSet<T> {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
when (compare(item, node.value)) {
|
when (compare(item, node.value)) {
|
||||||
EQ => false
|
EQ -> false
|
||||||
LS => add(ref node.left, node)
|
LS -> add(ref node.left, node)
|
||||||
GT => add(ref node.right, node)
|
GT -> add(ref node.right, node)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -64,13 +64,13 @@ class BinaryTree<T> : IMutableSet<T> {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
when (compare(item, node.value)) {
|
when (compare(item, node.value)) {
|
||||||
EQ => return false
|
EQ -> return false
|
||||||
LS =>
|
LS ->
|
||||||
if (node.left == null) {
|
if (node.left == null) {
|
||||||
node.left = TreeNode(item, node)
|
node.left = TreeNode(item, node)
|
||||||
return true
|
return true
|
||||||
} else return add(node.left)
|
} else return add(node.left)
|
||||||
GT =>
|
GT ->
|
||||||
if (node.right == null) {
|
if (node.right == null) {
|
||||||
node.right = TreeNode(item, node)
|
node.right = TreeNode(item, node)
|
||||||
return true
|
return true
|
||||||
@@ -90,19 +90,19 @@ class BinaryTree<T> : IMutableSet<T> {
|
|||||||
fun find(node : TreeNode) : TreeNode {
|
fun find(node : TreeNode) : TreeNode {
|
||||||
if (node == null) return null
|
if (node == null) return null
|
||||||
when (compare(item, node.value)) {
|
when (compare(item, node.value)) {
|
||||||
EQ => node
|
EQ -> node
|
||||||
LS => find(node.left)
|
LS -> find(node.left)
|
||||||
GT => find(node.right)
|
GT -> find(node.right)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun remove(node : TreeNode) {
|
private fun remove(node : TreeNode) {
|
||||||
when (node) {
|
when (node) {
|
||||||
is TreeNode @ (null, null) => replace(node, null)
|
is TreeNode #(null, null) -> replace(node, null)
|
||||||
is TreeNode @ (null, right) => replace(node, right)
|
is TreeNode #(null, right) -> replace(node, right)
|
||||||
is TreeNode @ (left, null) => replace(node, left)
|
is TreeNode #(left, null) -> replace(node, left)
|
||||||
is TreeNode @ (left, right) => {
|
is TreeNode #(left, right) -> {
|
||||||
val min = min(node.right)
|
val min = min(node.right)
|
||||||
node.value = min.value
|
node.value = min.value
|
||||||
remove(min)
|
remove(min)
|
||||||
|
|||||||
@@ -439,7 +439,7 @@ JetFile: BinaryTree.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('EQ')
|
PsiElement(IDENTIFIER)('EQ')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BOOLEAN_CONSTANT
|
BOOLEAN_CONSTANT
|
||||||
PsiElement(true)('true')
|
PsiElement(true)('true')
|
||||||
@@ -450,7 +450,7 @@ JetFile: BinaryTree.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('LS')
|
PsiElement(IDENTIFIER)('LS')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
CALL_EXPRESSION
|
CALL_EXPRESSION
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -477,7 +477,7 @@ JetFile: BinaryTree.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('GT')
|
PsiElement(IDENTIFIER)('GT')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
CALL_EXPRESSION
|
CALL_EXPRESSION
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -714,7 +714,7 @@ JetFile: BinaryTree.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('EQ')
|
PsiElement(IDENTIFIER)('EQ')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BOOLEAN_CONSTANT
|
BOOLEAN_CONSTANT
|
||||||
PsiElement(false)('false')
|
PsiElement(false)('false')
|
||||||
@@ -725,7 +725,7 @@ JetFile: BinaryTree.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('LS')
|
PsiElement(IDENTIFIER)('LS')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
CALL_EXPRESSION
|
CALL_EXPRESSION
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -754,7 +754,7 @@ JetFile: BinaryTree.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('GT')
|
PsiElement(IDENTIFIER)('GT')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
CALL_EXPRESSION
|
CALL_EXPRESSION
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -892,7 +892,7 @@ JetFile: BinaryTree.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('EQ')
|
PsiElement(IDENTIFIER)('EQ')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
RETURN
|
RETURN
|
||||||
PsiElement(return)('return')
|
PsiElement(return)('return')
|
||||||
@@ -906,7 +906,7 @@ JetFile: BinaryTree.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('LS')
|
PsiElement(IDENTIFIER)('LS')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace('\n ')
|
PsiWhiteSpace('\n ')
|
||||||
IF
|
IF
|
||||||
PsiElement(if)('if')
|
PsiElement(if)('if')
|
||||||
@@ -992,7 +992,7 @@ JetFile: BinaryTree.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('GT')
|
PsiElement(IDENTIFIER)('GT')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace('\n ')
|
PsiWhiteSpace('\n ')
|
||||||
IF
|
IF
|
||||||
PsiElement(if)('if')
|
PsiElement(if)('if')
|
||||||
@@ -1263,7 +1263,7 @@ JetFile: BinaryTree.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('EQ')
|
PsiElement(IDENTIFIER)('EQ')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('node')
|
PsiElement(IDENTIFIER)('node')
|
||||||
@@ -1274,7 +1274,7 @@ JetFile: BinaryTree.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('LS')
|
PsiElement(IDENTIFIER)('LS')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
CALL_EXPRESSION
|
CALL_EXPRESSION
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -1296,7 +1296,7 @@ JetFile: BinaryTree.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('GT')
|
PsiElement(IDENTIFIER)('GT')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
CALL_EXPRESSION
|
CALL_EXPRESSION
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -1358,10 +1358,9 @@ JetFile: BinaryTree.jet
|
|||||||
DECOMPOSER_PATTERN
|
DECOMPOSER_PATTERN
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('TreeNode')
|
PsiElement(IDENTIFIER)('TreeNode')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(AT)('@')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
DECOMPOSER_ARGUMENT_LIST
|
DECOMPOSER_ARGUMENT_LIST
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
TUPLE_PATTERN_ENTRY
|
TUPLE_PATTERN_ENTRY
|
||||||
EXPRESSION_PATTERN
|
EXPRESSION_PATTERN
|
||||||
@@ -1375,7 +1374,7 @@ JetFile: BinaryTree.jet
|
|||||||
PsiElement(null)('null')
|
PsiElement(null)('null')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
CALL_EXPRESSION
|
CALL_EXPRESSION
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -1399,10 +1398,9 @@ JetFile: BinaryTree.jet
|
|||||||
DECOMPOSER_PATTERN
|
DECOMPOSER_PATTERN
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('TreeNode')
|
PsiElement(IDENTIFIER)('TreeNode')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(AT)('@')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
DECOMPOSER_ARGUMENT_LIST
|
DECOMPOSER_ARGUMENT_LIST
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
TUPLE_PATTERN_ENTRY
|
TUPLE_PATTERN_ENTRY
|
||||||
EXPRESSION_PATTERN
|
EXPRESSION_PATTERN
|
||||||
@@ -1418,7 +1416,7 @@ JetFile: BinaryTree.jet
|
|||||||
PsiElement(IDENTIFIER)('right')
|
PsiElement(IDENTIFIER)('right')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
CALL_EXPRESSION
|
CALL_EXPRESSION
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -1442,10 +1440,9 @@ JetFile: BinaryTree.jet
|
|||||||
DECOMPOSER_PATTERN
|
DECOMPOSER_PATTERN
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('TreeNode')
|
PsiElement(IDENTIFIER)('TreeNode')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(AT)('@')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
DECOMPOSER_ARGUMENT_LIST
|
DECOMPOSER_ARGUMENT_LIST
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
TUPLE_PATTERN_ENTRY
|
TUPLE_PATTERN_ENTRY
|
||||||
TYPE_PATTERN
|
TYPE_PATTERN
|
||||||
@@ -1461,7 +1458,7 @@ JetFile: BinaryTree.jet
|
|||||||
PsiElement(null)('null')
|
PsiElement(null)('null')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
CALL_EXPRESSION
|
CALL_EXPRESSION
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -1485,10 +1482,9 @@ JetFile: BinaryTree.jet
|
|||||||
DECOMPOSER_PATTERN
|
DECOMPOSER_PATTERN
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('TreeNode')
|
PsiElement(IDENTIFIER)('TreeNode')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(AT)('@')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
DECOMPOSER_ARGUMENT_LIST
|
DECOMPOSER_ARGUMENT_LIST
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
TUPLE_PATTERN_ENTRY
|
TUPLE_PATTERN_ENTRY
|
||||||
TYPE_PATTERN
|
TYPE_PATTERN
|
||||||
@@ -1506,7 +1502,7 @@ JetFile: BinaryTree.jet
|
|||||||
PsiElement(IDENTIFIER)('right')
|
PsiElement(IDENTIFIER)('right')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BLOCK
|
BLOCK
|
||||||
PsiElement(LBRACE)('{')
|
PsiElement(LBRACE)('{')
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ class AntBuilder {
|
|||||||
fun classpath(entries : ClassPathEntry/*...*/) { /*...*/ }
|
fun classpath(entries : ClassPathEntry/*...*/) { /*...*/ }
|
||||||
}
|
}
|
||||||
|
|
||||||
fun library(initializer : fun Library.() : Library) {
|
fun library(initializer : Library.() -> Library) {
|
||||||
val lib = Library()
|
val lib = Library()
|
||||||
lib.initializer()
|
lib.initializer()
|
||||||
return lib
|
return lib
|
||||||
|
|||||||
@@ -398,11 +398,9 @@ JetFile: Builder.jet
|
|||||||
PsiElement(IDENTIFIER)('initializer')
|
PsiElement(IDENTIFIER)('initializer')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -412,7 +410,7 @@ JetFile: Builder.jet
|
|||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
|
|||||||
@@ -1,34 +1,34 @@
|
|||||||
type f1 = fun (T) : X
|
type f1 = (T) -> X
|
||||||
// type f1 = {(T) => X}
|
// type f1 = {(T) => X}
|
||||||
type f2 = fun (T, E) : X
|
type f2 = (T, E) -> X
|
||||||
// type f2 = {(T, E) => X}
|
// type f2 = {(T, E) => X}
|
||||||
type f_tuple = fun ((T, E)) : X
|
type f_tuple = (#(T, E)) -> X
|
||||||
//type f_tuple = {((T, E)) => X}
|
//type f_tuple = {((T, E)) => X}
|
||||||
type hof = fun (X) : fun (T) : Y
|
type hof = (X) -> (T) -> Y
|
||||||
//type hof = { (X) => {(T) => Y} }
|
//type hof = { (X) => {(T) => Y} }
|
||||||
type hof2 = fun (fun (X) : Y) : fun (Y) : Z
|
type hof2 = ( (X) -> Y) -> (Y) -> Z
|
||||||
//type hof2 = { {(X) => Y} => {(Y) => Z} }
|
//type hof2 = { {(X) => Y} => {(Y) => Z} }
|
||||||
|
|
||||||
|
|
||||||
type Comparison<in T> = fun (a : T, b : T) : Int
|
type Comparison<in T> = (a : T, b : T) -> Int
|
||||||
//type Comparison<in T> = {(a : T, b : T) => Int}
|
//type Comparison<in T> = {(a : T, b : T) => Int}
|
||||||
type Equality<in T> = fun (a : T, b : T) : Boolean
|
type Equality<in T> = (a : T, b : T) -> Boolean
|
||||||
//type Equality<in T> = {(a : T, b : T) => Boolean}
|
//type Equality<in T> = {(a : T, b : T) => Boolean}
|
||||||
type HashFunction<in T> = fun (obj : T) : Int
|
type HashFunction<in T> = (obj : T) -> Int
|
||||||
//type HashFunction<in T> = {(obj : T) => Int}
|
//type HashFunction<in T> = {(obj : T) => Int}
|
||||||
type Runnable = fun () : ()
|
type Runnable = () -> #()
|
||||||
//type Runnable = {() => ()}
|
//type Runnable = {() => ()}
|
||||||
type Function1<in T, out R> = fun (input : T) : R
|
type Function1<in T, out R> = (input : T) -> R
|
||||||
//type Function1<in T, out R> = {(input : T) => R}
|
//type Function1<in T, out R> = {(input : T) => R}
|
||||||
|
|
||||||
|
|
||||||
val f1 = {(t : T) : X => something(t)}
|
val f1 = {(t : T) : X -> something(t)}
|
||||||
fun f1(t : T) : X = something(t)
|
fun f1(t : T) : X = something(t)
|
||||||
|
|
||||||
val f1 = {(t : T) => something(t)}
|
val f1 = {(t : T) -> something(t)}
|
||||||
val f1 = {(T) : X => something(it)}
|
val f1 = {(T) : X -> something(it)}
|
||||||
val f1 = {t => something(t)}
|
val f1 = {t -> something(t)}
|
||||||
val f1 = {something(it)}
|
val f1 = {something(it)}
|
||||||
|
|
||||||
val f1 : fun (T) : X = {X()}
|
val f1 : (T) -> X = {X()}
|
||||||
|
|
||||||
|
|||||||
@@ -10,11 +10,9 @@ JetFile: FunctionsAndTypes.jet
|
|||||||
TYPE_PARAMETER_LIST
|
TYPE_PARAMETER_LIST
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
@@ -24,7 +22,7 @@ JetFile: FunctionsAndTypes.jet
|
|||||||
PsiElement(IDENTIFIER)('T')
|
PsiElement(IDENTIFIER)('T')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -41,11 +39,9 @@ JetFile: FunctionsAndTypes.jet
|
|||||||
TYPE_PARAMETER_LIST
|
TYPE_PARAMETER_LIST
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
@@ -62,7 +58,7 @@ JetFile: FunctionsAndTypes.jet
|
|||||||
PsiElement(IDENTIFIER)('E')
|
PsiElement(IDENTIFIER)('E')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -79,16 +75,15 @@ JetFile: FunctionsAndTypes.jet
|
|||||||
TYPE_PARAMETER_LIST
|
TYPE_PARAMETER_LIST
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
TUPLE_TYPE
|
TUPLE_TYPE
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -103,7 +98,7 @@ JetFile: FunctionsAndTypes.jet
|
|||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -120,11 +115,9 @@ JetFile: FunctionsAndTypes.jet
|
|||||||
TYPE_PARAMETER_LIST
|
TYPE_PARAMETER_LIST
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
@@ -134,12 +127,10 @@ JetFile: FunctionsAndTypes.jet
|
|||||||
PsiElement(IDENTIFIER)('X')
|
PsiElement(IDENTIFIER)('X')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
@@ -149,7 +140,7 @@ JetFile: FunctionsAndTypes.jet
|
|||||||
PsiElement(IDENTIFIER)('T')
|
PsiElement(IDENTIFIER)('T')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -166,18 +157,15 @@ JetFile: FunctionsAndTypes.jet
|
|||||||
TYPE_PARAMETER_LIST
|
TYPE_PARAMETER_LIST
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
@@ -187,7 +175,7 @@ JetFile: FunctionsAndTypes.jet
|
|||||||
PsiElement(IDENTIFIER)('X')
|
PsiElement(IDENTIFIER)('X')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -195,12 +183,10 @@ JetFile: FunctionsAndTypes.jet
|
|||||||
PsiElement(IDENTIFIER)('Y')
|
PsiElement(IDENTIFIER)('Y')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
@@ -210,7 +196,7 @@ JetFile: FunctionsAndTypes.jet
|
|||||||
PsiElement(IDENTIFIER)('Y')
|
PsiElement(IDENTIFIER)('Y')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -233,11 +219,9 @@ JetFile: FunctionsAndTypes.jet
|
|||||||
PsiElement(GT)('>')
|
PsiElement(GT)('>')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
@@ -262,7 +246,7 @@ JetFile: FunctionsAndTypes.jet
|
|||||||
PsiElement(IDENTIFIER)('T')
|
PsiElement(IDENTIFIER)('T')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -285,11 +269,9 @@ JetFile: FunctionsAndTypes.jet
|
|||||||
PsiElement(GT)('>')
|
PsiElement(GT)('>')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
@@ -314,7 +296,7 @@ JetFile: FunctionsAndTypes.jet
|
|||||||
PsiElement(IDENTIFIER)('T')
|
PsiElement(IDENTIFIER)('T')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -337,11 +319,9 @@ JetFile: FunctionsAndTypes.jet
|
|||||||
PsiElement(GT)('>')
|
PsiElement(GT)('>')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
@@ -355,7 +335,7 @@ JetFile: FunctionsAndTypes.jet
|
|||||||
PsiElement(IDENTIFIER)('T')
|
PsiElement(IDENTIFIER)('T')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -372,19 +352,18 @@ JetFile: FunctionsAndTypes.jet
|
|||||||
TYPE_PARAMETER_LIST
|
TYPE_PARAMETER_LIST
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
TUPLE_TYPE
|
TUPLE_TYPE
|
||||||
|
PsiElement(HASH)('#')
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace('\n')
|
PsiWhiteSpace('\n')
|
||||||
@@ -411,11 +390,9 @@ JetFile: FunctionsAndTypes.jet
|
|||||||
PsiElement(GT)('>')
|
PsiElement(GT)('>')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
@@ -429,7 +406,7 @@ JetFile: FunctionsAndTypes.jet
|
|||||||
PsiElement(IDENTIFIER)('T')
|
PsiElement(IDENTIFIER)('T')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -468,7 +445,7 @@ JetFile: FunctionsAndTypes.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('X')
|
PsiElement(IDENTIFIER)('X')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BLOCK
|
BLOCK
|
||||||
CALL_EXPRESSION
|
CALL_EXPRESSION
|
||||||
@@ -541,7 +518,7 @@ JetFile: FunctionsAndTypes.jet
|
|||||||
PsiElement(IDENTIFIER)('T')
|
PsiElement(IDENTIFIER)('T')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BLOCK
|
BLOCK
|
||||||
CALL_EXPRESSION
|
CALL_EXPRESSION
|
||||||
@@ -578,7 +555,7 @@ JetFile: FunctionsAndTypes.jet
|
|||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('X')
|
PsiElement(IDENTIFIER)('X')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BLOCK
|
BLOCK
|
||||||
CALL_EXPRESSION
|
CALL_EXPRESSION
|
||||||
@@ -606,7 +583,7 @@ JetFile: FunctionsAndTypes.jet
|
|||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
PsiElement(IDENTIFIER)('t')
|
PsiElement(IDENTIFIER)('t')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BLOCK
|
BLOCK
|
||||||
CALL_EXPRESSION
|
CALL_EXPRESSION
|
||||||
@@ -648,11 +625,9 @@ JetFile: FunctionsAndTypes.jet
|
|||||||
PsiElement(IDENTIFIER)('f1')
|
PsiElement(IDENTIFIER)('f1')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
@@ -662,7 +637,7 @@ JetFile: FunctionsAndTypes.jet
|
|||||||
PsiElement(IDENTIFIER)('T')
|
PsiElement(IDENTIFIER)('T')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
|
|||||||
@@ -24,11 +24,11 @@ class Graph<V, E> {
|
|||||||
|
|
||||||
fun neighbours(v : Vertex<V>) = edges.filter{it.from == v}.map{it.to} // type is IIterable<Vertex<V>>
|
fun neighbours(v : Vertex<V>) = edges.filter{it.from == v}.map{it.to} // type is IIterable<Vertex<V>>
|
||||||
|
|
||||||
fun dfs(handler : fun (V) : Unit) {
|
fun dfs(handler : (V) -> Unit) {
|
||||||
val visited = HashSet<Vertex<V>>()
|
val visited = HashSet<Vertex<V>>()
|
||||||
vertices.foreach{dfs(it, visited, handler)}
|
vertices.foreach{dfs(it, visited, handler)}
|
||||||
|
|
||||||
fun dfs(current : Vertex<V>, visited : ISet<Vertex<V>>, handler : fun (V) : Unit) {
|
fun dfs(current : Vertex<V>, visited : ISet<Vertex<V>>, handler : (V) -> Unit) {
|
||||||
if (!visited.add(current))
|
if (!visited.add(current))
|
||||||
return
|
return
|
||||||
handler(current)
|
handler(current)
|
||||||
@@ -36,7 +36,7 @@ class Graph<V, E> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public fun traverse(pending : IPushPop<Vertex<V>>, visited : ISet<Vertex<V>>, handler : fun (V) : Unit) {
|
public fun traverse(pending : IPushPop<Vertex<V>>, visited : ISet<Vertex<V>>, handler : (V) -> Unit) {
|
||||||
vertices.foreach {
|
vertices.foreach {
|
||||||
if (!visited.add(it))
|
if (!visited.add(it))
|
||||||
continue
|
continue
|
||||||
@@ -44,7 +44,7 @@ class Graph<V, E> {
|
|||||||
while (!pending.isEmpty) {
|
while (!pending.isEmpty) {
|
||||||
val current = pending.pop()
|
val current = pending.pop()
|
||||||
handler(current);
|
handler(current);
|
||||||
neighbours(current).foreach { n =>
|
neighbours(current).foreach { n ->
|
||||||
if (visited.add(n)) {
|
if (visited.add(n)) {
|
||||||
pending.push(n)
|
pending.push(n)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -469,11 +469,9 @@ JetFile: Graph.jet
|
|||||||
PsiElement(IDENTIFIER)('handler')
|
PsiElement(IDENTIFIER)('handler')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
@@ -483,7 +481,7 @@ JetFile: Graph.jet
|
|||||||
PsiElement(IDENTIFIER)('V')
|
PsiElement(IDENTIFIER)('V')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -612,11 +610,9 @@ JetFile: Graph.jet
|
|||||||
PsiElement(IDENTIFIER)('handler')
|
PsiElement(IDENTIFIER)('handler')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
@@ -626,7 +622,7 @@ JetFile: Graph.jet
|
|||||||
PsiElement(IDENTIFIER)('V')
|
PsiElement(IDENTIFIER)('V')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -784,11 +780,9 @@ JetFile: Graph.jet
|
|||||||
PsiElement(IDENTIFIER)('handler')
|
PsiElement(IDENTIFIER)('handler')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
@@ -798,7 +792,7 @@ JetFile: Graph.jet
|
|||||||
PsiElement(IDENTIFIER)('V')
|
PsiElement(IDENTIFIER)('V')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -935,7 +929,7 @@ JetFile: Graph.jet
|
|||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
PsiElement(IDENTIFIER)('n')
|
PsiElement(IDENTIFIER)('n')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace('\n ')
|
PsiWhiteSpace('\n ')
|
||||||
BLOCK
|
BLOCK
|
||||||
IF
|
IF
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
fun foo() {
|
fun foo() {
|
||||||
l filter {it.x} map {it.foo} aggregate {(a, b) => a + b}
|
l filter {it.x} map {it.foo} aggregate {(a, b) -> a + b}
|
||||||
}
|
}
|
||||||
@@ -65,7 +65,7 @@ JetFile: LINQ.jet
|
|||||||
PsiElement(IDENTIFIER)('b')
|
PsiElement(IDENTIFIER)('b')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
BLOCK
|
BLOCK
|
||||||
BINARY_EXPRESSION
|
BINARY_EXPRESSION
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ class List<T> {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fun <E, T, R> Map<E, T>.map(f : fun (E) : R) : T<R> where
|
fun <E, T, R> Map<E, T>.map(f : (E) -> R) : T<R> where
|
||||||
T : Iterable<E>,
|
T : Iterable<E>,
|
||||||
class object T : Buildable<E, T> = {
|
class object T : Buildable<E, T> = {
|
||||||
val builder = T.newBuilder()
|
val builder = T.newBuilder()
|
||||||
|
|||||||
@@ -242,11 +242,9 @@ JetFile: PolymorphicClassObjects.jet
|
|||||||
PsiElement(IDENTIFIER)('f')
|
PsiElement(IDENTIFIER)('f')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
@@ -256,7 +254,7 @@ JetFile: PolymorphicClassObjects.jet
|
|||||||
PsiElement(IDENTIFIER)('E')
|
PsiElement(IDENTIFIER)('E')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
[inline] fun with<T>(receiver : T, body : fun T.() : Unit) = receiver.body()
|
[inline] fun with<T>(receiver : T, body : T.() -> Unit) = receiver.body()
|
||||||
|
|
||||||
fun example() {
|
fun example() {
|
||||||
|
|
||||||
|
|||||||
@@ -39,11 +39,9 @@ JetFile: With.jet
|
|||||||
PsiElement(IDENTIFIER)('body')
|
PsiElement(IDENTIFIER)('body')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(COLON)(':')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
@@ -53,7 +51,7 @@ JetFile: With.jet
|
|||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
type Comparison<in T> = fun (T, T) : Int
|
type Comparison<in T> = (T, T) -> Int
|
||||||
|
|
||||||
fun naturalOrder<in T : Comparable<T>>(a : T, b : T) : Int = a.compareTo(b)
|
fun naturalOrder<in T : Comparable<T>>(a : T, b : T) : Int = a.compareTo(b)
|
||||||
|
|
||||||
@@ -8,9 +8,9 @@ enum class ComparisonResult {
|
|||||||
LS; EQ; GR
|
LS; EQ; GR
|
||||||
}
|
}
|
||||||
|
|
||||||
type MatchableComparison<in T> = fun (T, T) : ComparisonResult
|
type MatchableComparison<in T> = (T, T) -> ComparisonResult
|
||||||
|
|
||||||
fun asMatchableComparison<T>(cmp : Comparison<T>) : MatchableComparison<T> = {(a, b) =>
|
fun asMatchableComparison<T>(cmp : Comparison<T>) : MatchableComparison<T> = {(a, b) ->
|
||||||
val res = cmp(a, b)
|
val res = cmp(a, b)
|
||||||
if (res == 0) return ComparisonResult.EQ
|
if (res == 0) return ComparisonResult.EQ
|
||||||
if (res < 0) return ComparisonResult.LS
|
if (res < 0) return ComparisonResult.LS
|
||||||
|
|||||||
@@ -16,11 +16,9 @@ JetFile: Comparison.jet
|
|||||||
PsiElement(GT)('>')
|
PsiElement(GT)('>')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
@@ -37,7 +35,7 @@ JetFile: Comparison.jet
|
|||||||
PsiElement(IDENTIFIER)('T')
|
PsiElement(IDENTIFIER)('T')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -255,11 +253,9 @@ JetFile: Comparison.jet
|
|||||||
PsiElement(GT)('>')
|
PsiElement(GT)('>')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(EQ)('=')
|
PsiElement(EQ)('=')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
PsiElement(fun)('fun')
|
|
||||||
PsiWhiteSpace(' ')
|
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
@@ -276,7 +272,7 @@ JetFile: Comparison.jet
|
|||||||
PsiElement(IDENTIFIER)('T')
|
PsiElement(IDENTIFIER)('T')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(COLON)(':')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
@@ -343,7 +339,7 @@ JetFile: Comparison.jet
|
|||||||
PsiElement(IDENTIFIER)('b')
|
PsiElement(IDENTIFIER)('b')
|
||||||
PsiElement(RPAR)(')')
|
PsiElement(RPAR)(')')
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(DOUBLE_ARROW)('=>')
|
PsiElement(ARROW)('->')
|
||||||
PsiWhiteSpace('\n ')
|
PsiWhiteSpace('\n ')
|
||||||
BLOCK
|
BLOCK
|
||||||
PROPERTY
|
PROPERTY
|
||||||
|
|||||||
Reference in New Issue
Block a user