You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
GDScript: Remove function of continue for match statement
The keyword is confusing and rarely is used in the intended way. It is removed now in favor of a future feature (pattern guards) to avoid breaking compatibility later.
This commit is contained in:
@@ -758,7 +758,6 @@ public:
|
||||
};
|
||||
|
||||
struct ContinueNode : public Node {
|
||||
bool is_for_match = false;
|
||||
ContinueNode() {
|
||||
type = CONTINUE;
|
||||
}
|
||||
@@ -1254,7 +1253,6 @@ private:
|
||||
bool panic_mode = false;
|
||||
bool can_break = false;
|
||||
bool can_continue = false;
|
||||
bool is_continue_match = false; // Whether a `continue` will act on a `match`.
|
||||
List<bool> multiline_stack;
|
||||
|
||||
ClassNode *head = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user