summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_analyzer.h
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2023-01-09 23:22:59 +0100
committerGitHub <noreply@github.com>2023-01-09 23:22:59 +0100
commitd3fc9d9e416560d228a7914a82902118ce911a4d (patch)
tree463b4577584fda03204b9ea66b4349fb581cd5db /modules/gdscript/gdscript_analyzer.h
parent509da8620537f150eb6f2266ddf330ee2ffbfea4 (diff)
parent5e2ac1a31ee34842438a3a76c54f6a15df77bb95 (diff)
downloadredot-engine-d3fc9d9e416560d228a7914a82902118ce911a4d.tar.gz
Merge pull request #71051 from vonagam/consts-are-deep-start
GDScript: Begin making constants deep, not shallow or flat
Diffstat (limited to 'modules/gdscript/gdscript_analyzer.h')
-rw-r--r--modules/gdscript/gdscript_analyzer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gdscript/gdscript_analyzer.h b/modules/gdscript/gdscript_analyzer.h
index 211ae3e7c2..a90a70dd9b 100644
--- a/modules/gdscript/gdscript_analyzer.h
+++ b/modules/gdscript/gdscript_analyzer.h
@@ -102,8 +102,8 @@ 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);
+ void const_fold_array(GDScriptParser::ArrayNode *p_array, bool p_is_const);
+ void const_fold_dictionary(GDScriptParser::DictionaryNode *p_dictionary, bool p_is_const);
// Helpers.
GDScriptParser::DataType type_from_variant(const Variant &p_value, const GDScriptParser::Node *p_source);