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

Function bindLabeledStatement

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

Source from the content-addressed store, hash-verified

45809 }
45810 }
45811 function bindLabeledStatement(node) {
45812 var postStatementLabel = createBranchLabel();
45813 activeLabelList = {
45814 next: activeLabelList,
45815 name: node.label.escapedText,
45816 breakTarget: postStatementLabel,
45817 continueTarget: undefined,
45818 referenced: false
45819 };
45820 bind(node.label);
45821 bind(node.statement);
45822 if (!activeLabelList.referenced && !options.allowUnusedLabels) {
45823 errorOrSuggestionOnNode(ts.unusedLabelIsError(options), node.label, ts.Diagnostics.Unused_label);
45824 }
45825 activeLabelList = activeLabelList.next;
45826 addAntecedent(postStatementLabel, currentFlow);
45827 currentFlow = finishFlowLabel(postStatementLabel);
45828 }
45829 function bindDestructuringTargetFlow(node) {
45830 if (node.kind === 221 /* SyntaxKind.BinaryExpression */ && node.operatorToken.kind === 63 /* SyntaxKind.EqualsToken */) {
45831 bindAssignmentTargetFlow(node.left);

Callers 1

bindChildrenFunction · 0.85

Calls 5

createBranchLabelFunction · 0.85
errorOrSuggestionOnNodeFunction · 0.85
addAntecedentFunction · 0.85
finishFlowLabelFunction · 0.85
bindFunction · 0.70

Tested by

no test coverage detected