You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
GDScript: Allow using self in lambdas
This commit is contained in:
@@ -767,6 +767,7 @@ public:
|
||||
LOCAL_BIND, // Pattern bind.
|
||||
MEMBER_VARIABLE,
|
||||
MEMBER_CONSTANT,
|
||||
INHERITED_VARIABLE,
|
||||
};
|
||||
Source source = UNDEFINED_SOURCE;
|
||||
|
||||
@@ -800,6 +801,7 @@ public:
|
||||
FunctionNode *parent_function = nullptr;
|
||||
Vector<IdentifierNode *> captures;
|
||||
Map<StringName, int> captures_indices;
|
||||
bool use_self = false;
|
||||
|
||||
bool has_name() const {
|
||||
return function && function->identifier;
|
||||
|
||||
Reference in New Issue
Block a user