diff options
author | Danil Alexeev <danil@alexeev.xyz> | 2023-08-04 12:19:11 +0300 |
---|---|---|
committer | Danil Alexeev <danil@alexeev.xyz> | 2023-08-17 20:54:34 +0300 |
commit | 6c59ed9485bbfadee73a08dfc57224e022626e6e (patch) | |
tree | a1a08f3636453e10a09fed1e8a057f63f0e35303 /modules/gdscript/gdscript_codegen.h | |
parent | 0511f9d9a7d56c742d87fafdcea8785d40ad14b3 (diff) | |
download | redot-engine-6c59ed9485bbfadee73a08dfc57224e022626e6e.tar.gz |
GDScript: Add static typing for `for` loop variable
Diffstat (limited to 'modules/gdscript/gdscript_codegen.h')
-rw-r--r-- | modules/gdscript/gdscript_codegen.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gdscript/gdscript_codegen.h b/modules/gdscript/gdscript_codegen.h index 9810f5395a..cf17353dec 100644 --- a/modules/gdscript/gdscript_codegen.h +++ b/modules/gdscript/gdscript_codegen.h @@ -145,8 +145,8 @@ public: virtual void write_jump_if_shared(const Address &p_value) = 0; virtual void write_end_jump_if_shared() = 0; virtual void start_for(const GDScriptDataType &p_iterator_type, const GDScriptDataType &p_list_type) = 0; - virtual void write_for_assignment(const Address &p_variable, const Address &p_list) = 0; - virtual void write_for() = 0; + virtual void write_for_assignment(const Address &p_list) = 0; + virtual void write_for(const Address &p_variable, bool p_use_conversion) = 0; virtual void write_endfor() = 0; virtual void start_while_condition() = 0; // Used to allow a jump to the expression evaluation. virtual void write_while(const Address &p_condition) = 0; |