Home
last modified time | relevance | path

Searched refs:hasRestParameter (Results 1 - 3 of 3) sorted by relevance

/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/
H A DdefaultParameterLowering.cpp32 bool hasRestParameter = false; in HasDefaultParam() local
39 hasRestParameter = true; in HasDefaultParam()
43 if (hasRestParameter) { in HasDefaultParam()
59 if (hasDefaultParameter && hasRestParameter) { in HasDefaultParam()
/arkcompiler/ets_frontend/ets2panda/parser/
H A DETSparser.cpp677 bool hasRestParameter = false; in CheckDefaultParameters() local
684 hasRestParameter = true; in CheckDefaultParameters()
688 if (hasRestParameter) { in CheckDefaultParameters()
704 if (hasDefaultParameter && hasRestParameter) { in CheckDefaultParameters()
/arkcompiler/ets_frontend/ets2panda/checker/ets/
H A Dfunction.cpp557 auto const hasRestParameter = substitutedSig->RestVar() != nullptr; in ValidateSignature() local
562 if (argumentCount < parameterCount || (argumentCount > parameterCount && !hasRestParameter)) { in ValidateSignature()
569 if (argumentCount > parameterCount && hasRestParameter && (flags & TypeRelationFlag::IGNORE_REST_PARAM) != 0) { in ValidateSignature()
580 if (!hasRestParameter || count >= argumentCount) { in ValidateSignature()

Completed in 8 milliseconds