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

Function getConstructorsForTypeArguments

test/fixtures/snapshot/typescript.js:57082–57086  ·  view source on GitHub ↗
(type, typeArgumentNodes, location)

Source from the content-addressed store, hash-verified

57080 return decl && ts.getEffectiveBaseTypeNode(decl);
57081 }
57082 function getConstructorsForTypeArguments(type, typeArgumentNodes, location) {
57083 var typeArgCount = ts.length(typeArgumentNodes);
57084 var isJavascript = ts.isInJSFile(location);
57085 return ts.filter(getSignaturesOfType(type, 1 /* SignatureKind.Construct */), function (sig) { return (isJavascript || typeArgCount >= getMinTypeArgumentCount(sig.typeParameters)) && typeArgCount <= ts.length(sig.typeParameters); });
57086 }
57087 function getInstantiatedConstructorsForTypeArguments(type, typeArgumentNodes, location) {
57088 var signatures = getConstructorsForTypeArguments(type, typeArgumentNodes, location);
57089 var typeArguments = ts.map(typeArgumentNodes, getTypeFromTypeNode);

Calls 4

getSignaturesOfTypeFunction · 0.85
getMinTypeArgumentCountFunction · 0.85
filterMethod · 0.65
lengthMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…