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

Function getUnionOrIntersectionType

test/fixtures/snapshot/typescript.js:59852–59854  ·  view source on GitHub ↗
(types, kind, unionReduction)

Source from the content-addressed store, hash-verified

59850 createTypePredicate(node.assertsModifier ? 3 /* TypePredicateKind.AssertsIdentifier */ : 1 /* TypePredicateKind.Identifier */, parameterName.escapedText, ts.findIndex(signature.parameters, function (p) { return p.escapedName === parameterName.escapedText; }), type);
59851 }
59852 function getUnionOrIntersectionType(types, kind, unionReduction) {
59853 return kind !== 2097152 /* TypeFlags.Intersection */ ? getUnionType(types, unionReduction) : getIntersectionType(types);
59854 }
59855 function getReturnTypeOfSignature(signature) {
59856 if (!signature.resolvedReturnType) {
59857 if (!pushTypeResolution(signature, 3 /* TypeSystemPropertyName.ResolvedReturnType */)) {

Callers 2

getReturnTypeOfSignatureFunction · 0.85

Calls 2

getUnionTypeFunction · 0.85
getIntersectionTypeFunction · 0.85

Tested by

no test coverage detected