5 #include "src/torque/file-visitor.h" 7 #include "src/torque/declarable.h" 13 Signature FileVisitor::MakeSignature(
const CallableNodeSignature* signature) {
14 LabelDeclarationVector definition_vector;
15 for (
const auto& label : signature->labels) {
16 LabelDeclaration def = {label.name, GetTypeVector(label.types)};
17 definition_vector.push_back(def);
19 base::Optional<std::string> arguments_variable;
20 if (signature->parameters.has_varargs)
21 arguments_variable = signature->parameters.arguments_variable;
22 Signature result{signature->parameters.names,
24 {GetTypeVector(signature->parameters.types),
25 signature->parameters.has_varargs},
26 signature->parameters.implicit_count,
27 Declarations::GetType(signature->return_type),