mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Merge pull request #93429 from dalexeev/fix-method-signature-appearance
GDScript: Fix call hint appearance for complex callees
This commit is contained in:
commit
6277e9d02b
2 changed files with 7 additions and 3 deletions
|
@ -841,7 +841,7 @@ static String _make_arguments_hint(const GDScriptParser::FunctionNode *p_functio
|
|||
const GDScriptParser::CallNode *call = static_cast<const GDScriptParser::CallNode *>(par->initializer);
|
||||
if (call->is_constant && call->reduced) {
|
||||
def_val = call->reduced_value.get_construct_string();
|
||||
} else {
|
||||
} else if (call->get_callee_type() == GDScriptParser::Node::IDENTIFIER) {
|
||||
def_val = call->function_name.operator String() + (call->arguments.is_empty() ? "()" : "(...)");
|
||||
}
|
||||
} break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue