.call() in when

This commit is contained in:
Andrey Breslav
2011-02-09 14:11:14 +03:00
parent 39b4392987
commit 09b57d6ee1
4 changed files with 221 additions and 2 deletions
+2 -1
View File
@@ -5,6 +5,7 @@ when
;
whenEntry
// TODO : consider empty after =>
: whenConditionIf{","} (when | "=>" expression SEMI)
: "else" ("continue" | "=>" expression SEMI)
;
@@ -15,7 +16,7 @@ whenConditionIf
whenCondition
: expression
// : "." atomicExpression typeArguments? valueArguments?
: "." postfixUnaryExpression typeArguments? valueArguments?
: ("in" | "!in") expression
: ("is" | "!is") isRHS
;