mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Merge pull request #73196 from Vilcrow/fix-lookup-symbol
Fix jumping to function definition using `Ctrl+LMB` or the "Lookup Symbol" button
This commit is contained in:
commit
2bd904e3db
5 changed files with 39 additions and 21 deletions
|
@ -1435,11 +1435,11 @@ static bool _guess_expression_type(GDScriptParser::CompletionContext &p_context,
|
|||
} break;
|
||||
case GDScriptParser::Node::SELF: {
|
||||
if (p_context.current_class) {
|
||||
r_type.type.kind = GDScriptParser::DataType::CLASS;
|
||||
r_type.type.type_source = GDScriptParser::DataType::INFERRED;
|
||||
r_type.type.is_constant = true;
|
||||
r_type.type.class_type = p_context.current_class;
|
||||
r_type.value = p_context.base;
|
||||
if (p_context.type != GDScriptParser::COMPLETION_SUPER_METHOD) {
|
||||
r_type.type = p_context.current_class->get_datatype();
|
||||
} else {
|
||||
r_type.type = p_context.current_class->base_type;
|
||||
}
|
||||
found = true;
|
||||
}
|
||||
} break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue