GDScript: Use analyzer data to decide assignment conversion
Since there might be tricky cases in the analyzer (in the case of unsafe lines) which would need to be properly checked again. Instead, this splits the code generator in two functions and use information set by the analyzer to tell which function to use, without a need to re-check.
This commit is contained in:
parent
313e1f62bb
commit
c7459e3855
6 changed files with 74 additions and 51 deletions
|
|
@ -450,6 +450,7 @@ public:
|
|||
virtual void write_set_member(const Address &p_value, const StringName &p_name) override;
|
||||
virtual void write_get_member(const Address &p_target, const StringName &p_name) override;
|
||||
virtual void write_assign(const Address &p_target, const Address &p_source) override;
|
||||
virtual void write_assign_with_conversion(const Address &p_target, const Address &p_source) override;
|
||||
virtual void write_assign_true(const Address &p_target) override;
|
||||
virtual void write_assign_false(const Address &p_target) override;
|
||||
virtual void write_assign_default_parameter(const Address &p_dst, const Address &p_src) override;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue