diff options
author | Thakee Nathees <thakeenathees@gmail.com> | 2020-09-11 19:46:20 +0530 |
---|---|---|
committer | Thakee Nathees <thakeenathees@gmail.com> | 2020-09-11 19:46:20 +0530 |
commit | 3886a2f9f6eabfe4dc32cd8eb9abe827cae9963d (patch) | |
tree | 6924781c82a697f771d6239649c8d58d88a1ae19 /modules/gdscript/gdscript_analyzer.h | |
parent | 3b25548e4cef5f5a9292d1fb210d0bd66cbb407a (diff) | |
download | redot-engine-3886a2f9f6eabfe4dc32cd8eb9abe827cae9963d.tar.gz |
Array/Dictinoary no more reduced to array/dictionary variant
Fix: #41377
Fix: #20436
Fix: #41953
Diffstat (limited to 'modules/gdscript/gdscript_analyzer.h')
-rw-r--r-- | modules/gdscript/gdscript_analyzer.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_analyzer.h b/modules/gdscript/gdscript_analyzer.h index c3911cce76..f3cbb320b7 100644 --- a/modules/gdscript/gdscript_analyzer.h +++ b/modules/gdscript/gdscript_analyzer.h @@ -89,6 +89,9 @@ class GDScriptAnalyzer { void reduce_ternary_op(GDScriptParser::TernaryOpNode *p_ternary_op); void reduce_unary_op(GDScriptParser::UnaryOpNode *p_unary_op); + void const_fold_array(GDScriptParser::ArrayNode *p_array); + void const_fold_dictionary(GDScriptParser::DictionaryNode *p_dictionary); + // Helpers. GDScriptParser::DataType type_from_variant(const Variant &p_value, const GDScriptParser::Node *p_source); GDScriptParser::DataType type_from_metatype(const GDScriptParser::DataType &p_meta_type) const; |