Merge pull request #35673 from Razoric480/parse-static-functions-fix

Fix static functions loop using class' functions in Language Server
This commit is contained in:
Rémi Verschelde 2020-01-28 21:37:43 +01:00 committed by GitHub
commit 9aa9aa2918
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -757,7 +757,7 @@ Dictionary ExtendGDScriptParser::dump_class_api(const GDScriptParser::ClassNode
Array static_functions;
for (int i = 0; i < p_class->static_functions.size(); ++i) {
static_functions.append(dump_function_api(p_class->functions[i]));
static_functions.append(dump_function_api(p_class->static_functions[i]));
}
class_api["static_functions"] = static_functions;