MCPcopy Create free account
hub / github.com/nodejs/node / isPossiblyTypeArgumentPosition

Function isPossiblyTypeArgumentPosition

test/fixtures/snapshot/typescript.js:127782–127787  ·  view source on GitHub ↗
(token, sourceFile, checker)

Source from the content-addressed store, hash-verified

127780 }
127781 ts.removeOptionality = removeOptionality;
127782 function isPossiblyTypeArgumentPosition(token, sourceFile, checker) {
127783 var info = getPossibleTypeArgumentsInfo(token, sourceFile);
127784 return info !== undefined && (ts.isPartOfTypeNode(info.called) ||
127785 getPossibleGenericSignatures(info.called, info.nTypeArguments, checker).length !== 0 ||
127786 isPossiblyTypeArgumentPosition(info.called, sourceFile, checker));
127787 }
127788 ts.isPossiblyTypeArgumentPosition = isPossiblyTypeArgumentPosition;
127789 function getPossibleGenericSignatures(called, typeArgumentCount, checker) {
127790 var type = checker.getTypeAtLocation(called);

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected