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

Function visitLabeledStatement

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

Source from the content-addressed store, hash-verified

96697 return ts.visitEachChild(node, visitor, context);
96698 }
96699 function visitLabeledStatement(node) {
96700 if (enclosingFunctionFlags & 2 /* FunctionFlags.Async */) {
96701 var statement = ts.unwrapInnermostStatementOfLabel(node);
96702 if (statement.kind === 244 /* SyntaxKind.ForOfStatement */ && statement.awaitModifier) {
96703 return visitForOfStatement(statement, node);
96704 }
96705 return factory.restoreEnclosingLabel(ts.visitNode(statement, visitor, ts.isStatement, factory.liftToBlock), node);
96706 }
96707 return ts.visitEachChild(node, visitor, context);
96708 }
96709 function chunkObjectLiteralElements(elements) {
96710 var chunkObject;
96711 var objects = [];

Callers 3

visitorWorkerFunction · 0.85
topLevelNestedVisitorFunction · 0.85

Calls 4

visitForOfStatementFunction · 0.85
visitIterationStatementFunction · 0.85
beginScriptLabeledBlockFunction · 0.85
endLabeledBlockFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…