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

Function containsNarrowableReference

test/fixtures/snapshot/typescript.js:45368–45370  ·  view source on GitHub ↗
(expr)

Source from the content-addressed store, hash-verified

45366 || ts.isAssignmentExpression(expr) && isNarrowableReference(expr.left);
45367 }
45368 function containsNarrowableReference(expr) {
45369 return isNarrowableReference(expr) || ts.isOptionalChain(expr) && containsNarrowableReference(expr.expression);
45370 }
45371 function hasNarrowableArgument(expr) {
45372 if (expr.arguments) {
45373 for (var _i = 0, _a = expr.arguments; _i < _a.length; _i++) {

Callers 4

isNarrowingExpressionFunction · 0.85
hasNarrowableArgumentFunction · 0.85
isNarrowableOperandFunction · 0.85

Calls 1

isNarrowableReferenceFunction · 0.85

Tested by

no test coverage detected