You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
GDScript: Fix lambda resolution with cyclic references
This commit is contained in:
@@ -908,6 +908,7 @@ public:
|
||||
struct LambdaNode : public ExpressionNode {
|
||||
FunctionNode *function = nullptr;
|
||||
FunctionNode *parent_function = nullptr;
|
||||
LambdaNode *parent_lambda = nullptr;
|
||||
Vector<IdentifierNode *> captures;
|
||||
HashMap<StringName, int> captures_indices;
|
||||
bool use_self = false;
|
||||
@@ -1321,6 +1322,7 @@ private:
|
||||
|
||||
ClassNode *current_class = nullptr;
|
||||
FunctionNode *current_function = nullptr;
|
||||
LambdaNode *current_lambda = nullptr;
|
||||
SuiteNode *current_suite = nullptr;
|
||||
|
||||
CompletionContext completion_context;
|
||||
|
||||
Reference in New Issue
Block a user