summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_parser.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-09-19 20:31:12 +0200
committerGitHub <noreply@github.com>2019-09-19 20:31:12 +0200
commitc3d5c964941cc8ed4c1b4ba796e2cb990feb0442 (patch)
treeb3208a6300ca60e5289742055f56373969baf9a4 /modules/gdscript/gdscript_parser.h
parentf9db6ad8c5a37dcfdc1ba8d3f1ddd0ddb05845b0 (diff)
parent3ca7b4ee451cd67db1148b07e45f717506be7730 (diff)
downloadredot-engine-c3d5c964941cc8ed4c1b4ba796e2cb990feb0442.tar.gz
Merge pull request #31921 from bojidar-bg/28978-uninitialized-array-value
Fix uninitialized arrays and dictionaries retaining value
Diffstat (limited to 'modules/gdscript/gdscript_parser.h')
-rw-r--r--modules/gdscript/gdscript_parser.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_parser.h b/modules/gdscript/gdscript_parser.h
index 1e8193a63e..04ce9cf4c6 100644
--- a/modules/gdscript/gdscript_parser.h
+++ b/modules/gdscript/gdscript_parser.h
@@ -615,6 +615,7 @@ private:
bool _get_function_signature(DataType &p_base_type, const StringName &p_function, DataType &r_return_type, List<DataType> &r_arg_types, int &r_default_arg_count, bool &r_static, bool &r_vararg) const;
bool _get_member_type(const DataType &p_base_type, const StringName &p_member, DataType &r_member_type) const;
bool _is_type_compatible(const DataType &p_container, const DataType &p_expression, bool p_allow_implicit_conversion = false) const;
+ Node *_get_default_value_for_type(const DataType &p_type, int p_line = -1);
DataType _reduce_node_type(Node *p_node);
DataType _reduce_function_call_type(const OperatorNode *p_call);