Unused productions removed
This commit is contained in:
@@ -73,7 +73,7 @@ prefixUnaryExpression
|
|||||||
;
|
;
|
||||||
|
|
||||||
postfixUnaryExpression
|
postfixUnaryExpression
|
||||||
: memberAccess postfixUnaryOperation*
|
: atomicExpression postfixUnaryOperation*
|
||||||
;
|
;
|
||||||
|
|
||||||
// !!! When you add here, remember to update the FIRST set in the parser
|
// !!! When you add here, remember to update the FIRST set in the parser
|
||||||
@@ -177,15 +177,6 @@ memberAccessOperation
|
|||||||
: "." : "?." : "#"
|
: "." : "?." : "#"
|
||||||
;
|
;
|
||||||
|
|
||||||
functionCall
|
|
||||||
: functionExpression typeArguments valueArguments? functionLiteral?
|
|
||||||
: functionExpression valueArguments functionLiteral?
|
|
||||||
;
|
|
||||||
|
|
||||||
functionExpression
|
|
||||||
: expression
|
|
||||||
;
|
|
||||||
|
|
||||||
typeArguments
|
typeArguments
|
||||||
: "<" type{","} ">"
|
: "<" type{","} ">"
|
||||||
;
|
;
|
||||||
@@ -194,11 +185,6 @@ valueArguments
|
|||||||
: "(" (SimpleName "=")? ("out" | "ref")? expression{","} ")"
|
: "(" (SimpleName "=")? ("out" | "ref")? expression{","} ")"
|
||||||
;
|
;
|
||||||
|
|
||||||
infixFunctionCall
|
|
||||||
: expression SimpleName typeArguments
|
|
||||||
: expression SimpleName expression
|
|
||||||
;
|
|
||||||
|
|
||||||
jump
|
jump
|
||||||
: "throw" expression
|
: "throw" expression
|
||||||
: "return" expression?
|
: "return" expression?
|
||||||
@@ -231,16 +217,6 @@ constructorInvocation
|
|||||||
: userType valueArguments?
|
: userType valueArguments?
|
||||||
;
|
;
|
||||||
|
|
||||||
memberAccess
|
|
||||||
: functionCall
|
|
||||||
: fieldOrPropertyAccess
|
|
||||||
: functionLiteral // no parameters allowed
|
|
||||||
;
|
|
||||||
|
|
||||||
fieldOrPropertyAccess
|
|
||||||
: (FieldName | SimpleName) arrayAccess?
|
|
||||||
;
|
|
||||||
|
|
||||||
arrayAccess
|
arrayAccess
|
||||||
: "[" expression{","} "]"
|
: "[" expression{","} "]"
|
||||||
;
|
;
|
||||||
|
|||||||
Reference in New Issue
Block a user