MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / get_argument_info

Method get_argument_info

core/object/method_bind.cpp:57–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57PropertyInfo MethodBind::get_argument_info(int p_argument) const {
58 ERR_FAIL_INDEX_V(p_argument, get_argument_count(), PropertyInfo());
59
60 PropertyInfo info = _gen_argument_type_info(p_argument);
61#ifdef DEBUG_ENABLED
62 if (info.name.is_empty()) {
63 info.name = p_argument < arg_names.size() ? String(arg_names[p_argument]) : String("_unnamed_arg" + itos(p_argument));
64 }
65#endif // DEBUG_ENABLED
66 return info;
67}
68
69PropertyInfo MethodBind::get_return_info() const {
70 return _gen_argument_type_info(-1);

Callers 4

class_db_api_to_jsonFunction · 0.80
get_api_hashMethod · 0.80
info_from_bindFunction · 0.80

Calls 6

get_argument_countFunction · 0.85
itosFunction · 0.85
PropertyInfoClass · 0.70
sizeMethod · 0.65
StringClass · 0.50
is_emptyMethod · 0.45

Tested by

no test coverage detected