Small change
This commit is contained in:
parent
1d0bb99b7e
commit
57b61c2b2f
@ -5,7 +5,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 ('(' (( syntaxtreenode ) WHITESPACE NAME)* ')''{'(NEWLINE)* classbody'}'| '{'(NEWLINE)* classbody'}');
|
class : ACCESSMODIFIER WHITESPACE CLASS WHITESPACE CLASSNAME '{'(NEWLINE)* classbody'}';
|
||||||
classbody : ( method NEWLINE | variable NEWLINE | NEWLINE | syntaxtreenode)*;
|
classbody : ( method NEWLINE | variable NEWLINE | NEWLINE | syntaxtreenode)*;
|
||||||
|
|
||||||
variable : ACCESSMODIFIER WHITESPACE ( formalparameter | typeplaceholder ) WHITESPACE NAME WHITESPACE '=' WHITESPACE ( WORD | NUMBER) ';'
|
variable : ACCESSMODIFIER WHITESPACE ( formalparameter | typeplaceholder ) WHITESPACE NAME WHITESPACE '=' WHITESPACE ( WORD | NUMBER) ';'
|
||||||
@ -16,7 +16,7 @@ method : ACCESSMODIFIER WHITESPACE ( syntaxtreenode ) WHITESPACE NA
|
|||||||
|
|
||||||
classorinterface: class;
|
classorinterface: class;
|
||||||
|
|
||||||
argumentlist: (variable)+;
|
argumentlist: variable (',' WHITESPACE variable)+;
|
||||||
|
|
||||||
genericdecllist: GENERICDECLLIST;
|
genericdecllist: GENERICDECLLIST;
|
||||||
|
|
||||||
@ -24,7 +24,7 @@ sourcefile: SOURCEFILE;
|
|||||||
|
|
||||||
generictypevar: GENERICTYPEVAR;
|
generictypevar: GENERICTYPEVAR;
|
||||||
|
|
||||||
parameterlist: (variable)+;
|
parameterlist: variable (',' WHITESPACE variable)+;
|
||||||
|
|
||||||
formalparameter: FORMALPARAMETER;
|
formalparameter: FORMALPARAMETER;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user