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

Function getVarianceModifiers

test/fixtures/snapshot/typescript.js:67049–67053  ·  view source on GitHub ↗
(tp)

Source from the content-addressed store, hash-verified

67047 return markerTypes.has(getTypeId(type));
67048 }
67049 function getVarianceModifiers(tp) {
67050 var _a, _b;
67051 return (ts.some((_a = tp.symbol) === null || _a === void 0 ? void 0 : _a.declarations, function (d) { return ts.hasSyntacticModifier(d, 32768 /* ModifierFlags.In */); }) ? 32768 /* ModifierFlags.In */ : 0) |
67052 (ts.some((_b = tp.symbol) === null || _b === void 0 ? void 0 : _b.declarations, function (d) { return ts.hasSyntacticModifier(d, 65536 /* ModifierFlags.Out */); }) ? 65536 /* ModifierFlags.Out */ : 0);
67053 }
67054 // Return true if the given type reference has a 'void' type argument for a covariant type parameter.
67055 // See comment at call in recursiveTypeRelatedTo for when this case matters.
67056 function hasCovariantVoidArgument(typeArguments, variances) {

Callers 3

_loop_22Function · 0.85

Calls 1

someMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…