diff options
| author | Juan Linietsky | 2017-08-25 00:34:32 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-08-25 00:34:32 -0300 |
| commit | b1c0e45b03aa14453846c9a888763077eef2476b (patch) | |
| tree | dd0436d887330c110b3b768bab2398a826a4d4b7 /modules/gdscript/gd_parser.h | |
| parent | a7e8aa405394c383c7d84e667c9a4165b2cfaf3b (diff) | |
| download | godot-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.h | 3 |
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; |
