aboutsummaryrefslogtreecommitdiff
path: root/modules/gdscript/gd_parser.h
diff options
context:
space:
mode:
authorJuan Linietsky2017-08-25 00:34:32 -0300
committerJuan Linietsky2017-08-25 00:34:32 -0300
commitb1c0e45b03aa14453846c9a888763077eef2476b (patch)
treedd0436d887330c110b3b768bab2398a826a4d4b7 /modules/gdscript/gd_parser.h
parenta7e8aa405394c383c7d84e667c9a4165b2cfaf3b (diff)
downloadgodot-b1c0e45b03aa14453846c9a888763077eef2476b.tar.gz
godot-b1c0e45b03aa14453846c9a888763077eef2476b.tar.zst
godot-b1c0e45b03aa14453846c9a888763077eef2476b.zip
Diffstat (limited to 'modules/gdscript/gd_parser.h')
-rw-r--r--modules/gdscript/gd_parser.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gdscript/gd_parser.h b/modules/gdscript/gd_parser.h
index 8ad494cd3..177552d27 100644
--- a/modules/gdscript/gd_parser.h
+++ b/modules/gdscript/gd_parser.h
@@ -146,10 +146,13 @@ public:
Vector<StringName> variables;
Vector<int> variable_lines;
+ Node *if_condition; //tiny hack to improve code completion on if () blocks
+
//the following is useful for code completion
List<BlockNode *> sub_blocks;
int end_line;
BlockNode() {
+ if_condition = NULL;
type = TYPE_BLOCK;
end_line = -1;
parent_block = NULL;