Merge pull request #30567 from NilsIrl/static_func_inside_class

Show static functions inside classes in method list
This commit is contained in:
Rémi Verschelde 2019-07-16 08:53:02 +02:00 committed by GitHub
commit 7b1ee28a03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -161,6 +161,10 @@ bool GDScriptLanguage::validate(const String &p_script, int &r_line_error, int &
funcs[cl->subclasses[i]->functions[j]->line] = String(cl->subclasses[i]->name) + "." + String(cl->subclasses[i]->functions[j]->name);
}
for (int j = 0; j < cl->subclasses[i]->static_functions.size(); j++) {
funcs[cl->subclasses[i]->static_functions[j]->line] = String(cl->subclasses[i]->name) + "." + String(cl->subclasses[i]->static_functions[j]->name);
}
}
for (Map<int, String>::Element *E = funcs.front(); E; E = E->next()) {