Merge pull request #35229 from lakshay-angrish/35090-methods-in-xml-not-in-editor

show parametric setters and getters in editor help
This commit is contained in:
Rémi Verschelde 2020-01-17 11:38:38 +01:00 committed by GitHub
commit 0aefec2454
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -603,8 +603,11 @@ void EditorHelp::_update_doc() {
Vector<DocData::MethodDoc> methods;
for (int i = 0; i < cd.methods.size(); i++) {
if (skip_methods.has(cd.methods[i].name))
continue;
if (skip_methods.has(cd.methods[i].name)) {
if (cd.methods[i].arguments.size() == 0 /* getter */ || (cd.methods[i].arguments.size() == 1 && cd.methods[i].return_type == "void" /* setter */)) {
continue;
}
}
methods.push_back(cd.methods[i]);
}