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

Function getInferTypeParameters

test/fixtures/snapshot/typescript.js:62699–62709  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

62697 return type.resolvedInferredTrueType || (type.resolvedInferredTrueType = type.combinedMapper ? instantiateType(getTypeFromTypeNode(type.root.node.trueType), type.combinedMapper) : getTrueTypeFromConditionalType(type));
62698 }
62699 function getInferTypeParameters(node) {
62700 var result;
62701 if (node.locals) {
62702 node.locals.forEach(function (symbol) {
62703 if (symbol.flags & 262144 /* SymbolFlags.TypeParameter */) {
62704 result = ts.append(result, getDeclaredTypeOfSymbol(symbol));
62705 }
62706 });
62707 }
62708 return result;
62709 }
62710 function isDistributionDependent(root) {
62711 return root.isDistributive && (isTypeParameterPossiblyReferenced(root.checkType, root.node.trueType) ||
62712 isTypeParameterPossiblyReferenced(root.checkType, root.node.falseType));

Callers 2

getOuterTypeParametersFunction · 0.85

Calls 3

getDeclaredTypeOfSymbolFunction · 0.85
forEachMethod · 0.65
appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…