Fix slight issues with autocompletion and member lists in GDScript
Fixes #27152 Fixes #28591
This commit is contained in:
parent
46b6fb83ef
commit
f9d9530902
|
@ -226,7 +226,7 @@ void GDScript::get_script_method_list(List<MethodInfo> *p_list) const {
|
||||||
|
|
||||||
const GDScript *current = this;
|
const GDScript *current = this;
|
||||||
while (current) {
|
while (current) {
|
||||||
for (const Map<StringName, GDScriptFunction *>::Element *E = member_functions.front(); E; E = E->next()) {
|
for (const Map<StringName, GDScriptFunction *>::Element *E = current->member_functions.front(); E; E = E->next()) {
|
||||||
GDScriptFunction *func = E->get();
|
GDScriptFunction *func = E->get();
|
||||||
MethodInfo mi;
|
MethodInfo mi;
|
||||||
mi.name = E->key();
|
mi.name = E->key();
|
||||||
|
|
|
@ -1951,7 +1951,7 @@ static void _find_identifiers_in_base(const GDScriptCompletionContext &p_context
|
||||||
} else {
|
} else {
|
||||||
base_type.has_type = script->get_instance_base_type() != StringName();
|
base_type.has_type = script->get_instance_base_type() != StringName();
|
||||||
base_type.kind = GDScriptParser::DataType::NATIVE;
|
base_type.kind = GDScriptParser::DataType::NATIVE;
|
||||||
base_type.script_type = script->get_instance_base_type();
|
base_type.native_type = script->get_instance_base_type();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue