Grammar for property declarations fixed
This commit is contained in:
@@ -81,10 +81,14 @@ functionBody
|
||||
: "=" expression
|
||||
;
|
||||
|
||||
variableDeclarationEntry
|
||||
: SimpleName (":" type)?
|
||||
;
|
||||
|
||||
property
|
||||
: modifiers ("val" | "var")
|
||||
typeParameters? (type "." | annotations)?
|
||||
(SimpleName (":" type)?){","}
|
||||
("(" variableDeclarationEntry{","} ")" | variableDeclarationEntry)
|
||||
typeConstraints
|
||||
("=" expression SEMI?)?
|
||||
(getter? setter? | setter? getter?) SEMI?
|
||||
|
||||
Reference in New Issue
Block a user