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

Function createBackreferenceMapper

test/fixtures/snapshot/typescript.js:63322–63324  ·  view source on GitHub ↗

* Maps forward-references to later types parameters to the empty object type. * This is used during inference when instantiating type parameter defaults.

(context, index)

Source from the content-addressed store, hash-verified

63320 * This is used during inference when instantiating type parameter defaults.
63321 */
63322 function createBackreferenceMapper(context, index) {
63323 return makeFunctionTypeMapper(function (t) { return ts.findIndex(context.inferences, function (info) { return info.typeParameter === t; }) >= index ? unknownType : t; });
63324 }
63325 function combineTypeMappers(mapper1, mapper2) {
63326 return mapper1 ? makeCompositeTypeMapper(3 /* TypeMapKind.Composite */, mapper1, mapper2) : mapper2;
63327 }

Callers 1

getInferredTypeFunction · 0.85

Calls 1

makeFunctionTypeMapperFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…