Small change
This commit is contained in:
parent
57b61c2b2f
commit
1f0ea6f49c
@ -6,7 +6,7 @@ grammar astRefactor;
|
|||||||
syntaxtreenode: typablestatement | reftypeortphorwildcardorgeneric | methodinterface | fieldinterface | formalparameter | parameterlist | generictypevar | sourcefile | genericdecllist | argumentlist | classorinterface;
|
syntaxtreenode: typablestatement | reftypeortphorwildcardorgeneric | methodinterface | fieldinterface | formalparameter | parameterlist | generictypevar | sourcefile | genericdecllist | argumentlist | classorinterface;
|
||||||
|
|
||||||
class : ACCESSMODIFIER WHITESPACE CLASS WHITESPACE CLASSNAME '{'(NEWLINE)* classbody'}';
|
class : ACCESSMODIFIER WHITESPACE CLASS WHITESPACE CLASSNAME '{'(NEWLINE)* classbody'}';
|
||||||
classbody : ( method NEWLINE | variable NEWLINE | NEWLINE | syntaxtreenode)*;
|
classbody : ( method | variable | NEWLINE | syntaxtreenode)*;
|
||||||
|
|
||||||
variable : ACCESSMODIFIER WHITESPACE ( formalparameter | typeplaceholder ) WHITESPACE NAME WHITESPACE '=' WHITESPACE ( WORD | NUMBER) ';'
|
variable : ACCESSMODIFIER WHITESPACE ( formalparameter | typeplaceholder ) WHITESPACE NAME WHITESPACE '=' WHITESPACE ( WORD | NUMBER) ';'
|
||||||
| ACCESSMODIFIER WHITESPACE ( syntaxtreenode ) WHITESPACE NAME ';';
|
| ACCESSMODIFIER WHITESPACE ( syntaxtreenode ) WHITESPACE NAME ';';
|
||||||
|
Loading…
Reference in New Issue
Block a user