You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
GDScript: Add support for variadic functions
This commit is contained in:
@@ -851,6 +851,7 @@ public:
|
||||
IdentifierNode *identifier = nullptr;
|
||||
Vector<ParameterNode *> parameters;
|
||||
HashMap<StringName, int> parameters_indices;
|
||||
ParameterNode *rest_parameter = nullptr;
|
||||
TypeNode *return_type = nullptr;
|
||||
SuiteNode *body = nullptr;
|
||||
bool is_abstract = false;
|
||||
@@ -869,6 +870,8 @@ public:
|
||||
bool resolved_signature = false;
|
||||
bool resolved_body = false;
|
||||
|
||||
_FORCE_INLINE_ bool is_vararg() const { return rest_parameter != nullptr; }
|
||||
|
||||
FunctionNode() {
|
||||
type = FUNCTION;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user