diff options
author | George Marques <george@gmarqu.es> | 2020-10-20 15:43:07 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-20 15:43:07 -0300 |
commit | 96884ef41ecbadd8e76f5e42af5f5cd53a902de0 (patch) | |
tree | df56ab735cf96d1baf83f02508df8cf5f73e23ee /modules/gdscript/gdscript_analyzer.h | |
parent | c77466b2761f28655fa98040e9e92b63e59faa7d (diff) | |
parent | 3886a2f9f6eabfe4dc32cd8eb9abe827cae9963d (diff) |
Merge pull request #41983 from ThakeeNathees/array-const-folding-bug-fix
Array/Dictionary Nodes no more reduced to array/dictionary variant
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; |