summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_parser.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-08-18 23:18:40 +0200
committerGitHub <noreply@github.com>2020-08-18 23:18:40 +0200
commite2fb55471c0bdd4f25ed6448e5e8eff99882afa8 (patch)
tree74976c55f9165fddb01ae52b587e3578f52a54d7 /modules/gdscript/gdscript_parser.h
parent65730ab9f6fbae34bb161113161b43f8b3fcd4d2 (diff)
parent35176247af80626684ff6bb1a1eb3bc031857b1c (diff)
downloadredot-engine-e2fb55471c0bdd4f25ed6448e5e8eff99882afa8.tar.gz
Merge pull request #41359 from vnen/gdscript-2-fixes
Assorted fixes for GDScript bugs
Diffstat (limited to 'modules/gdscript/gdscript_parser.h')
-rw-r--r--modules/gdscript/gdscript_parser.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_parser.h b/modules/gdscript/gdscript_parser.h
index edfe330c0c..7d8ae7fc55 100644
--- a/modules/gdscript/gdscript_parser.h
+++ b/modules/gdscript/gdscript_parser.h
@@ -405,7 +405,10 @@ public:
struct EnumNode : public Node {
struct Value {
IdentifierNode *identifier = nullptr;
- LiteralNode *custom_value = nullptr;
+ ExpressionNode *custom_value = nullptr;
+ EnumNode *parent_enum = nullptr;
+ int index = -1;
+ bool resolved = false;
int value = 0;
int line = 0;
int leftmost_column = 0;