diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-05-02 17:31:39 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-05-02 17:31:39 +0200 |
commit | 76f642b962f38f6b1b378e8a66887b53139a22db (patch) | |
tree | 6c665f25cc3ceea9055dc9dcb256c909b85076a3 /modules/gdscript/gdscript_parser.h | |
parent | a531452eec239ca67268a2b08b650f2f53eac220 (diff) | |
parent | 8122a27eac21a5c60a8427a9181de0192d675cfd (diff) | |
download | redot-engine-76f642b962f38f6b1b378e8a66887b53139a22db.tar.gz |
Merge pull request #91412 from dalexeev/gds-fix-non-static-access-in-static-context
GDScript: Fix access non-static members in static context
Diffstat (limited to 'modules/gdscript/gdscript_parser.h')
-rw-r--r-- | modules/gdscript/gdscript_parser.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_parser.h b/modules/gdscript/gdscript_parser.h index 7fb9ffe9a5..1e67e2d496 100644 --- a/modules/gdscript/gdscript_parser.h +++ b/modules/gdscript/gdscript_parser.h @@ -902,8 +902,11 @@ public: VariableNode *variable_source; ConstantNode *constant_source; SignalNode *signal_source; + FunctionNode *function_source; }; - FunctionNode *source_function = nullptr; + bool function_source_is_static = false; // For non-GDScript scripts. + + FunctionNode *source_function = nullptr; // TODO: Rename to disambiguate `function_source`. int usages = 0; // Useful for binds/iterator variable. |