MCPcopy Create free account
hub / github.com/nodejs/node / emitThrowStatement

Function emitThrowStatement

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

Source from the content-addressed store, hash-verified

112710 emit(node.statement);
112711 }
112712 function emitThrowStatement(node) {
112713 emitTokenWithComment(109 /* SyntaxKind.ThrowKeyword */, node.pos, writeKeyword, node);
112714 emitExpressionWithLeadingSpace(parenthesizeExpressionForNoAsi(node.expression), parenthesizeExpressionForNoAsi);
112715 writeTrailingSemicolon();
112716 }
112717 function emitTryStatement(node) {
112718 emitTokenWithComment(111 /* SyntaxKind.TryKeyword */, node.pos, writeKeyword, node);
112719 writeSpace();

Callers 1

Calls 4

emitTokenWithCommentFunction · 0.85
writeTrailingSemicolonFunction · 0.85

Tested by

no test coverage detected