Fixed the jumping to function definition using 'Ctrl+LMB'.

This commit is contained in:
S.V.I. Vilcrow 2023-02-06 14:19:20 +03:00
parent e08aa36516
commit 7eb6367d5c

View File

@ -3480,6 +3480,14 @@ static Error _lookup_symbol_from_base(const GDScriptParser::DataType &p_base, co
break;
}
if (context.current_class) {
if (context.type != GDScriptParser::COMPLETION_SUPER_METHOD) {
base.type = context.current_class->get_datatype();
} else {
base.type = context.current_class->base_type;
}
}
if (_lookup_symbol_from_base(base.type, p_symbol, is_function, r_result) == OK) {
return OK;
}