You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Merge pull request #80085 from vnen/gdscript-pattern-guards
GDScript: Implement pattern guards for match statement
This commit is contained in:
@@ -2214,6 +2214,10 @@ void GDScriptAnalyzer::resolve_match_branch(GDScriptParser::MatchBranchNode *p_m
|
||||
resolve_match_pattern(p_match_branch->patterns[i], p_match_test);
|
||||
}
|
||||
|
||||
if (p_match_branch->guard_body) {
|
||||
resolve_suite(p_match_branch->guard_body);
|
||||
}
|
||||
|
||||
resolve_suite(p_match_branch->block);
|
||||
|
||||
decide_suite_type(p_match_branch, p_match_branch->block);
|
||||
|
||||
Reference in New Issue
Block a user