Home
last modified time | relevance | path

Searched refs:parameterCount (Results 1 – 3 of 3) sorted by relevance

/arkcompiler/ets_frontend/ets2panda/compiler/core/
DETSCompiler.cpp297 std::size_t const parameterCount = expr->GetSignature()->MinArgCount(); in ConvertRestArguments() local
298 ASSERT(argumentCount >= parameterCount); in ConvertRestArguments()
301 std::size_t i = parameterCount; in ConvertRestArguments()
313 … arguments.erase(expr->GetArguments().begin() + parameterCount, expr->GetArguments().end()); in ConvertRestArguments()
666 std::size_t const parameterCount = expr->Signature()->MinArgCount(); in ConvertRestArguments() local
667 ASSERT(argumentCount >= parameterCount); in ConvertRestArguments()
670 std::size_t i = parameterCount; in ConvertRestArguments()
682 arguments.erase(expr->Arguments().begin() + parameterCount, expr->Arguments().end()); in ConvertRestArguments()
/arkcompiler/ets_frontend/ets2panda/checker/ets/
Dfunction.cpp173 std::size_t const parameterCount = signature->MinArgCount(); in ValidateParameterlessConstructor() local
176 if (parameterCount != 0) { in ValidateParameterlessConstructor()
178 … ThrowTypeError({"No Matching Parameterless Constructor, parameter count ", parameterCount}, pos); in ValidateParameterlessConstructor()
201 std::size_t const parameterCount = substitutedSig->MinArgCount(); in ValidateSignature() local
205 … if (argumentCount < parameterCount || (argumentCount > parameterCount && !hasRestParameter)) { in ValidateSignature()
207 … ThrowTypeError({"Expected ", parameterCount, " arguments, got ", argumentCount, "."}, pos); in ValidateSignature()
214 auto const count = std::min(parameterCount, argumentCount); in ValidateSignature()
Dhelpers.cpp2513 auto const parameterCount = signature->Params().size(); in TypeInference() local
2514 auto const count = std::min(parameterCount, argumentCount); in TypeInference()