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

Function bindInitializedVariableFlow

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

Source from the content-addressed store, hash-verified

46043 currentFlow = finishFlowLabel(postExpressionLabel);
46044 }
46045 function bindInitializedVariableFlow(node) {
46046 var name = !ts.isOmittedExpression(node) ? node.name : undefined;
46047 if (ts.isBindingPattern(name)) {
46048 for (var _i = 0, _a = name.elements; _i < _a.length; _i++) {
46049 var child = _a[_i];
46050 bindInitializedVariableFlow(child);
46051 }
46052 }
46053 else {
46054 currentFlow = createFlowMutation(16 /* FlowFlags.Assignment */, currentFlow, node);
46055 }
46056 }
46057 function bindVariableDeclarationFlow(node) {
46058 bindEachChild(node);
46059 if (node.initializer || ts.isForInOrOfStatement(node.parent.parent)) {

Callers 1

Calls 1

createFlowMutationFunction · 0.85

Tested by

no test coverage detected