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

Function createCombinedSymbolForOverloadFailure

test/fixtures/snapshot/typescript.js:76374–76377  ·  view source on GitHub ↗
(sources, type)

Source from the content-addressed store, hash-verified

76372 return createCombinedSymbolForOverloadFailure(sources, getUnionType(types, 2 /* UnionReduction.Subtype */));
76373 }
76374 function createCombinedSymbolForOverloadFailure(sources, type) {
76375 // This function is currently only used for erroneous overloads, so it's good enough to just use the first source.
76376 return createSymbolWithType(ts.first(sources), type);
76377 }
76378 function pickLongestCandidateSignature(node, candidates, args, checkMode) {
76379 // Pick the longest signature. This way we can get a contextual type for cases like:
76380 // declare function f(a: { xa: number; xb: number; }, b: number);

Calls 2

createSymbolWithTypeFunction · 0.85
firstMethod · 0.45

Tested by

no test coverage detected