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

Function getTypeAtPosition

test/fixtures/snapshot/typescript.js:77544–77546  ·  view source on GitHub ↗
(signature, pos)

Source from the content-addressed store, hash-verified

77542 return restParameter.valueDeclaration && isValidDeclarationForTupleLabel(restParameter.valueDeclaration) ? restParameter.valueDeclaration : undefined;
77543 }
77544 function getTypeAtPosition(signature, pos) {
77545 return tryGetTypeAtPosition(signature, pos) || anyType;
77546 }
77547 function tryGetTypeAtPosition(signature, pos) {
77548 var paramCount = signature.parameters.length - (signatureHasRestParameter(signature) ? 1 : 0);
77549 if (pos < paramCount) {

Callers 15

combineUnionParametersFunction · 0.85
applyToParameterTypesFunction · 0.85
hasPropFunction · 0.85
hasCorrectArityFunction · 0.85
inferTypeArgumentsFunction · 0.85
getRestTypeAtPositionFunction · 0.85

Calls 1

tryGetTypeAtPositionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…