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

Function bindAssignmentTargetFlow

test/fixtures/snapshot/typescript.js:45837–45866  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

45835 }
45836 }
45837 function bindAssignmentTargetFlow(node) {
45838 if (isNarrowableReference(node)) {
45839 currentFlow = createFlowMutation(16 /* FlowFlags.Assignment */, currentFlow, node);
45840 }
45841 else if (node.kind === 204 /* SyntaxKind.ArrayLiteralExpression */) {
45842 for (var _i = 0, _a = node.elements; _i < _a.length; _i++) {
45843 var e = _a[_i];
45844 if (e.kind === 225 /* SyntaxKind.SpreadElement */) {
45845 bindAssignmentTargetFlow(e.expression);
45846 }
45847 else {
45848 bindDestructuringTargetFlow(e);
45849 }
45850 }
45851 }
45852 else if (node.kind === 205 /* SyntaxKind.ObjectLiteralExpression */) {
45853 for (var _b = 0, _c = node.properties; _b < _c.length; _b++) {
45854 var p = _c[_b];
45855 if (p.kind === 296 /* SyntaxKind.PropertyAssignment */) {
45856 bindDestructuringTargetFlow(p.initializer);
45857 }
45858 else if (p.kind === 297 /* SyntaxKind.ShorthandPropertyAssignment */) {
45859 bindAssignmentTargetFlow(p.name);
45860 }
45861 else if (p.kind === 298 /* SyntaxKind.SpreadAssignment */) {
45862 bindAssignmentTargetFlow(p.expression);
45863 }
45864 }
45865 }
45866 }
45867 function bindLogicalLikeExpression(node, trueTarget, falseTarget) {
45868 var preRightLabel = createBranchLabel();
45869 if (node.operatorToken.kind === 55 /* SyntaxKind.AmpersandAmpersandToken */ || node.operatorToken.kind === 76 /* SyntaxKind.AmpersandAmpersandEqualsToken */) {

Callers 8

onExitFunction · 0.85
bindDeleteExpressionFlowFunction · 0.85

Calls 3

isNarrowableReferenceFunction · 0.85
createFlowMutationFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…