From 3efc7dc7a27e88934e69db948a6cf03f07991b71 Mon Sep 17 00:00:00 2001 From: Linus K Date: Mon, 24 Oct 2022 05:20:34 +0200 Subject: [PATCH] Small change --- src/main/antlr4/astRefactor/astRefactor.g4 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/antlr4/astRefactor/astRefactor.g4 b/src/main/antlr4/astRefactor/astRefactor.g4 index 43e9d7e9..e793ba0d 100644 --- a/src/main/antlr4/astRefactor/astRefactor.g4 +++ b/src/main/antlr4/astRefactor/astRefactor.g4 @@ -8,8 +8,8 @@ syntaxtreenode: typablestatement | reftypeortphorwildcardorgeneric | methodinter class : ACCESSMODIFIER WHITESPACE CLASS WHITESPACE CLASSNAME '{'(NEWLINE)* classbody'}'; classbody : ( method | variable | NEWLINE | syntaxtreenode)*; -variable : ACCESSMODIFIER WHITESPACE ( syntaxtreenode ) WHITESPACE NAME WHITESPACE '=' WHITESPACE ( WORD | NUMBER) ';' - | ACCESSMODIFIER WHITESPACE ( syntaxtreenode ) WHITESPACE NAME ';'; +variable : ACCESSMODIFIER WHITESPACE ( syntaxtreenode ) WHITESPACE NAME WHITESPACE '=' WHITESPACE ( WORD | NUMBER) (';')? + | ACCESSMODIFIER WHITESPACE ( syntaxtreenode ) WHITESPACE NAME (';')?; method : ACCESSMODIFIER WHITESPACE ( syntaxtreenode ) WHITESPACE NAME '(' ( formalparameter | typeplaceholder ) WHITESPACE WORD ')''{''}'; @@ -92,7 +92,7 @@ whileinterface: whilestmt | dostmt; dostmt: DOSTMT ( syntaxtreenode )*'}' WHILESTMT ( syntaxtreenode )+')'; -whilestmt: WHILESTMT')''{'( syntaxtreenode)*'}'; +whilestmt: WHILESTMT( syntaxtreenode )*')''{'( syntaxtreenode)*'}'; assignleft: assigntofield | ASSIGNLEFTSIDE;