MCPcopy Index your code
hub / github.com/nodejs/node / hasEffectiveRestParameter

Function hasEffectiveRestParameter

test/fixtures/snapshot/typescript.js:77639–77645  ·  view source on GitHub ↗
(signature)

Source from the content-addressed store, hash-verified

77637 return signature.resolvedMinArgumentCount;
77638 }
77639 function hasEffectiveRestParameter(signature) {
77640 if (signatureHasRestParameter(signature)) {
77641 var restType = getTypeOfSymbol(signature.parameters[signature.parameters.length - 1]);
77642 return !isTupleType(restType) || restType.target.hasRestElement;
77643 }
77644 return false;
77645 }
77646 function getEffectiveRestType(signature) {
77647 if (signatureHasRestParameter(signature)) {
77648 var restType = getTypeOfSymbol(signature.parameters[signature.parameters.length - 1]);

Callers 8

combineUnionParametersFunction · 0.85
compareSignaturesRelatedFunction · 0.85
isMatchingSignatureFunction · 0.85
isAritySmallerFunction · 0.85
hasCorrectArityFunction · 0.85
getLongestCandidateIndexFunction · 0.85

Calls 3

getTypeOfSymbolFunction · 0.85
isTupleTypeFunction · 0.85

Tested by

no test coverage detected