diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2023-01-12 15:55:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-12 15:55:48 +0100 |
commit | e80cf3259ee23fe75da0ea41dcf67680e607f063 (patch) | |
tree | a259f1bd346c1e92a7172dfe6147f1d0c748a12c /modules/gdscript/gdscript_analyzer.h | |
parent | 75515e43034aab3acd014bf6c663c10fcba94900 (diff) | |
parent | 5980abbcec3ffd6dcd189a4fcfd7b4b179187dbf (diff) |
Merge pull request #70644 from vonagam/fix-variant-type-arg
GDScript: Fix getting type from PropertyInfo for Variant arguments
Diffstat (limited to 'modules/gdscript/gdscript_analyzer.h')
-rw-r--r-- | modules/gdscript/gdscript_analyzer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_analyzer.h b/modules/gdscript/gdscript_analyzer.h index ecae0b4629..da7b7ddb75 100644 --- a/modules/gdscript/gdscript_analyzer.h +++ b/modules/gdscript/gdscript_analyzer.h @@ -108,7 +108,7 @@ class GDScriptAnalyzer { // Helpers. GDScriptParser::DataType type_from_variant(const Variant &p_value, const GDScriptParser::Node *p_source); static GDScriptParser::DataType type_from_metatype(const GDScriptParser::DataType &p_meta_type); - GDScriptParser::DataType type_from_property(const PropertyInfo &p_property) const; + GDScriptParser::DataType type_from_property(const PropertyInfo &p_property, bool p_is_arg = false) const; GDScriptParser::DataType make_global_class_meta_type(const StringName &p_class_name, const GDScriptParser::Node *p_source); bool get_function_signature(GDScriptParser::Node *p_source, bool p_is_constructor, GDScriptParser::DataType base_type, const StringName &p_function, GDScriptParser::DataType &r_return_type, List<GDScriptParser::DataType> &r_par_types, int &r_default_arg_count, bool &r_static, bool &r_vararg); bool function_signature_from_info(const MethodInfo &p_info, GDScriptParser::DataType &r_return_type, List<GDScriptParser::DataType> &r_par_types, int &r_default_arg_count, bool &r_static, bool &r_vararg); |