mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 08:23:29 +00:00
Skip copying values constructed immediately before returning
This commit is contained in:
parent
9283328fe7
commit
754d49ac81
14 changed files with 35 additions and 60 deletions
|
@ -885,8 +885,8 @@ const Array &ExtendGDScriptParser::get_member_completions() {
|
|||
}
|
||||
|
||||
Dictionary ExtendGDScriptParser::dump_function_api(const GDScriptParser::FunctionNode *p_func) const {
|
||||
ERR_FAIL_NULL_V(p_func, Dictionary());
|
||||
Dictionary func;
|
||||
ERR_FAIL_NULL_V(p_func, func);
|
||||
func["name"] = p_func->identifier->name;
|
||||
func["return_type"] = p_func->get_datatype().to_string();
|
||||
func["rpc_config"] = p_func->rpc_config;
|
||||
|
@ -909,10 +909,9 @@ Dictionary ExtendGDScriptParser::dump_function_api(const GDScriptParser::Functio
|
|||
}
|
||||
|
||||
Dictionary ExtendGDScriptParser::dump_class_api(const GDScriptParser::ClassNode *p_class) const {
|
||||
ERR_FAIL_NULL_V(p_class, Dictionary());
|
||||
Dictionary class_api;
|
||||
|
||||
ERR_FAIL_NULL_V(p_class, class_api);
|
||||
|
||||
class_api["name"] = p_class->identifier != nullptr ? String(p_class->identifier->name) : String();
|
||||
class_api["path"] = path;
|
||||
Array extends_class;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue