mirror of
https://github.com/godotengine/godot.git
synced 2025-10-30 05:01:10 +00:00
break, continue outside of a loop, match statement handled
(cherry picked from commit c076a2b7e9)
This commit is contained in:
parent
000899647a
commit
9ee77179b5
2 changed files with 36 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue