GDScript: Add support for variadic functions
This commit is contained in:
@@ -287,8 +287,16 @@ void PropertySelector::_update_search() {
|
||||
}
|
||||
}
|
||||
|
||||
if (mi.flags & METHOD_FLAG_VARARG) {
|
||||
desc += mi.arguments.is_empty() ? "..." : ", ...";
|
||||
}
|
||||
|
||||
desc += ")";
|
||||
|
||||
if (mi.flags & METHOD_FLAG_VARARG) {
|
||||
desc += " vararg";
|
||||
}
|
||||
|
||||
if (mi.flags & METHOD_FLAG_CONST) {
|
||||
desc += " const";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user