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

Function getVariances

test/fixtures/snapshot/typescript.js:66968–66973  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

66966 return false;
66967 }
66968 function getVariances(type) {
66969 // Arrays and tuples are known to be covariant, no need to spend time computing this.
66970 return type === globalArrayType || type === globalReadonlyArrayType || type.objectFlags & 8 /* ObjectFlags.Tuple */ ?
66971 arrayVariances :
66972 getVariancesWorker(type.symbol, type.typeParameters);
66973 }
66974 function getAliasVariances(symbol) {
66975 return getVariancesWorker(symbol, getSymbolLinks(symbol).typeParameters);
66976 }

Callers 3

structuredTypeRelatedToFunction · 0.85
inferFromTypesFunction · 0.85
inferFromObjectTypesFunction · 0.85

Calls 1

getVariancesWorkerFunction · 0.85

Tested by

no test coverage detected