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

Function isNarrowableOperand

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

Source from the content-addressed store, hash-verified

45409 return false;
45410 }
45411 function isNarrowableOperand(expr) {
45412 switch (expr.kind) {
45413 case 212 /* SyntaxKind.ParenthesizedExpression */:
45414 return isNarrowableOperand(expr.expression);
45415 case 221 /* SyntaxKind.BinaryExpression */:
45416 switch (expr.operatorToken.kind) {
45417 case 63 /* SyntaxKind.EqualsToken */:
45418 return isNarrowableOperand(expr.left);
45419 case 27 /* SyntaxKind.CommaToken */:
45420 return isNarrowableOperand(expr.right);
45421 }
45422 }
45423 return containsNarrowableReference(expr);
45424 }
45425 function createBranchLabel() {
45426 return initFlowNode({ flags: 4 /* FlowFlags.BranchLabel */, antecedents: undefined });
45427 }

Callers 4

onExitFunction · 0.85
bindCallExpressionFlowFunction · 0.85

Calls 1

Tested by

no test coverage detected