diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-08-21 19:26:32 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-08-21 19:26:32 +0200 |
commit | 7d3bee73e42b00a75bf9fafead8b200db994950c (patch) | |
tree | 48c4715000967030ee2ba31f65536047682ce5a4 /modules/gdscript/gdscript_codegen.h | |
parent | 38b8751f0ddfdf5184135cf16770feafe09cd844 (diff) | |
parent | 6c59ed9485bbfadee73a08dfc57224e022626e6e (diff) | |
download | redot-engine-7d3bee73e42b00a75bf9fafead8b200db994950c.tar.gz |
Merge pull request #80247 from dalexeev/gds-for-loop-var-static-typing
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; |