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

Function parseBreakOrContinueStatement

test/fixtures/snapshot/typescript.js:35958–35968  ·  view source on GitHub ↗
(kind)

Source from the content-addressed store, hash-verified

35956 return withJSDoc(finishNode(node, pos), hasJSDoc);
35957 }
35958 function parseBreakOrContinueStatement(kind) {
35959 var pos = getNodePos();
35960 var hasJSDoc = hasPrecedingJSDocComment();
35961 parseExpected(kind === 246 /* SyntaxKind.BreakStatement */ ? 81 /* SyntaxKind.BreakKeyword */ : 86 /* SyntaxKind.ContinueKeyword */);
35962 var label = canParseSemicolon() ? undefined : parseIdentifier();
35963 parseSemicolon();
35964 var node = kind === 246 /* SyntaxKind.BreakStatement */
35965 ? factory.createBreakStatement(label)
35966 : factory.createContinueStatement(label);
35967 return withJSDoc(finishNode(node, pos), hasJSDoc);
35968 }
35969 function parseReturnStatement() {
35970 var pos = getNodePos();
35971 var hasJSDoc = hasPrecedingJSDocComment();

Callers 1

parseStatementFunction · 0.85

Calls 8

getNodePosFunction · 0.85
hasPrecedingJSDocCommentFunction · 0.85
parseExpectedFunction · 0.85
canParseSemicolonFunction · 0.85
parseIdentifierFunction · 0.85
parseSemicolonFunction · 0.85
withJSDocFunction · 0.85
finishNodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…