summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_compiler.h
diff options
context:
space:
mode:
authorDmitrii Maganov <vonagam@gmail.com>2022-12-05 20:24:11 +0200
committerDmitrii Maganov <vonagam@gmail.com>2022-12-06 00:22:56 +0200
commit97280279ee45b628f9786548f6d7979836fd6ac5 (patch)
treebde548fa5d1ed4687e32a1d7e0dc5bbecaa60840 /modules/gdscript/gdscript_compiler.h
parentf3e6750a7e4702918e05f42b1376e30e652f2f90 (diff)
downloadredot-engine-97280279ee45b628f9786548f6d7979836fd6ac5.tar.gz
Fix incomplete shadowing of member properties by parameters
Diffstat (limited to 'modules/gdscript/gdscript_compiler.h')
-rw-r--r--modules/gdscript/gdscript_compiler.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_compiler.h b/modules/gdscript/gdscript_compiler.h
index 45ca4fe342..cba585e5a5 100644
--- a/modules/gdscript/gdscript_compiler.h
+++ b/modules/gdscript/gdscript_compiler.h
@@ -115,6 +115,7 @@ class GDScriptCompiler {
bool _is_class_member_property(CodeGen &codegen, const StringName &p_name);
bool _is_class_member_property(GDScript *owner, const StringName &p_name);
+ bool _is_local_or_parameter(CodeGen &codegen, const StringName &p_name);
void _set_error(const String &p_error, const GDScriptParser::Node *p_node);