MCPcopy Create free account
hub / github.com/nodejs/node / getAliasVariances

Function getAliasVariances

test/fixtures/snapshot/typescript.js:66974–66976  ·  view source on GitHub ↗
(symbol)

Source from the content-addressed store, hash-verified

66972 getVariancesWorker(type.symbol, type.typeParameters);
66973 }
66974 function getAliasVariances(symbol) {
66975 return getVariancesWorker(symbol, getSymbolLinks(symbol).typeParameters);
66976 }
66977 // Return an array containing the variance of each type parameter. The variance is effectively
66978 // a digest of the type comparisons that occur for each type argument when instantiations of the
66979 // generic type are structurally compared. We infer the variance information by comparing

Callers 2

structuredTypeRelatedToFunction · 0.85
inferFromTypesFunction · 0.85

Calls 2

getVariancesWorkerFunction · 0.85
getSymbolLinksFunction · 0.85

Tested by

no test coverage detected