Small change

This commit is contained in:
Linus K 2022-10-24 03:48:09 +02:00
parent 57b61c2b2f
commit 1f0ea6f49c

View File

@ -6,7 +6,7 @@ grammar astRefactor;
syntaxtreenode: typablestatement | reftypeortphorwildcardorgeneric | methodinterface | fieldinterface | formalparameter | parameterlist | generictypevar | sourcefile | genericdecllist | argumentlist | classorinterface;
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) ';'
| ACCESSMODIFIER WHITESPACE ( syntaxtreenode ) WHITESPACE NAME ';';