You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Fix the autocomplete function for the 'self' keyword.
(cherry picked from commit c8fc824608)
This commit is contained in:
committed by
Yuri Sizov
parent
b20ba6bd12
commit
89fd2c30e1
@@ -1494,11 +1494,8 @@ static bool _guess_expression_type(GDScriptParser::CompletionContext &p_context,
|
|||||||
} break;
|
} break;
|
||||||
case GDScriptParser::Node::SELF: {
|
case GDScriptParser::Node::SELF: {
|
||||||
if (p_context.current_class) {
|
if (p_context.current_class) {
|
||||||
if (p_context.type != GDScriptParser::COMPLETION_SUPER_METHOD) {
|
|
||||||
r_type.type = p_context.current_class->get_datatype();
|
r_type.type = p_context.current_class->get_datatype();
|
||||||
} else {
|
r_type.type.is_meta_type = false;
|
||||||
r_type.type = p_context.current_class->base_type;
|
|
||||||
}
|
|
||||||
found = true;
|
found = true;
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
|
|||||||
Reference in New Issue
Block a user