You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
GDScript: Implement lambdas compilation and runtime
This commit is contained in:
@@ -796,7 +796,8 @@ public:
|
||||
struct LambdaNode : public ExpressionNode {
|
||||
FunctionNode *function = nullptr;
|
||||
FunctionNode *parent_function = nullptr;
|
||||
Map<StringName, IdentifierNode *> captures;
|
||||
Vector<IdentifierNode *> captures;
|
||||
Map<StringName, int> captures_indices;
|
||||
|
||||
bool has_name() const {
|
||||
return function && function->identifier;
|
||||
|
||||
Reference in New Issue
Block a user