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

Function parseDebuggerStatement

test/fixtures/snapshot/typescript.js:36076–36082  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36074 return finishNode(factory.createCatchClause(variableDeclaration, block), pos);
36075 }
36076 function parseDebuggerStatement() {
36077 var pos = getNodePos();
36078 var hasJSDoc = hasPrecedingJSDocComment();
36079 parseExpected(87 /* SyntaxKind.DebuggerKeyword */);
36080 parseSemicolon();
36081 return withJSDoc(finishNode(factory.createDebuggerStatement(), pos), hasJSDoc);
36082 }
36083 function parseExpressionOrLabeledStatement() {
36084 // Avoiding having to do the lookahead for a labeled statement by just trying to parse
36085 // out an expression, seeing if it is identifier and then seeing if it is followed by

Callers 1

parseStatementFunction · 0.85

Calls 6

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

Tested by

no test coverage detected