GDScript: Add support for variadic functions

This commit is contained in:
Danil Alexeev
2025-03-30 12:59:05 +03:00
parent 3b963ab8b6
commit ee121ef80e
33 changed files with 416 additions and 65 deletions

View File

@@ -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";
}