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

Function parseClassStaticBlockBody

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

Source from the content-addressed store, hash-verified

36708 return withJSDoc(finishNode(factory.createClassStaticBlockDeclaration(decorators, modifiers, body), pos), hasJSDoc);
36709 }
36710 function parseClassStaticBlockBody() {
36711 var savedYieldContext = inYieldContext();
36712 var savedAwaitContext = inAwaitContext();
36713 setYieldContext(false);
36714 setAwaitContext(true);
36715 var body = parseBlock(/*ignoreMissingOpenBrace*/ false);
36716 setYieldContext(savedYieldContext);
36717 setAwaitContext(savedAwaitContext);
36718 return body;
36719 }
36720 function parseDecoratorExpression() {
36721 if (inAwaitContext() && token() === 132 /* SyntaxKind.AwaitKeyword */) {
36722 // `@await` is is disallowed in an [Await] context, but can cause parsing to go off the rails

Callers 1

Calls 5

inYieldContextFunction · 0.85
inAwaitContextFunction · 0.85
setYieldContextFunction · 0.85
setAwaitContextFunction · 0.85
parseBlockFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…