break, continue outside of a loop, match statement handled

(cherry picked from commit c076a2b7e9)
This commit is contained in:
Thakee Nathees 2020-03-02 17:02:23 +05:30 committed by Rémi Verschelde
parent 000899647a
commit 9ee77179b5
2 changed files with 36 additions and 2 deletions

View file

@ -240,7 +240,9 @@ public:
BlockNode *parent_block;
List<Node *> statements;
Map<StringName, LocalVarNode *> variables;
bool has_return;
bool has_return = false;
bool can_break = false;
bool can_continue = false;
Node *if_condition; //tiny hack to improve code completion on if () blocks
@ -253,7 +255,6 @@ public:
end_line = -1;
parent_block = NULL;
parent_class = NULL;
has_return = false;
}
};