Inner classes' functions now appear in the editor's functions panel
Fixes #19386
This commit is contained in:
parent
d5bb6faac7
commit
afcac41d31
1 changed files with 7 additions and 0 deletions
|
@ -118,6 +118,13 @@ bool GDScriptLanguage::validate(const String &p_script, int &r_line_error, int &
|
||||||
funcs[cl->static_functions[i]->line] = cl->static_functions[i]->name;
|
funcs[cl->static_functions[i]->line] = cl->static_functions[i]->name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (int i = 0; i < cl->subclasses.size(); i++) {
|
||||||
|
for (int j = 0; j < cl->subclasses[i]->functions.size(); j++) {
|
||||||
|
|
||||||
|
funcs[cl->subclasses[i]->functions[j]->line] = String(cl->subclasses[i]->name) + "." + String(cl->subclasses[i]->functions[j]->name);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for (Map<int, String>::Element *E = funcs.front(); E; E = E->next()) {
|
for (Map<int, String>::Element *E = funcs.front(); E; E = E->next()) {
|
||||||
|
|
||||||
r_functions->push_back(E->get() + ":" + itos(E->key()));
|
r_functions->push_back(E->get() + ":" + itos(E->key()));
|
||||||
|
|
Loading…
Reference in a new issue