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

Function emitExpressionStatement

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

Source from the content-addressed store, hash-verified

112511 }
112512 }
112513 function emitExpressionStatement(node) {
112514 emitExpression(node.expression, parenthesizer.parenthesizeExpressionOfExpressionStatement);
112515 // Emit semicolon in non json files
112516 // or if json file that created synthesized expression(eg.define expression statement when --out and amd code generation)
112517 if (!currentSourceFile || !ts.isJsonSourceFile(currentSourceFile) || ts.nodeIsSynthesized(node.expression)) {
112518 writeTrailingSemicolon();
112519 }
112520 }
112521 function emitIfStatement(node) {
112522 var openParenPos = emitTokenWithComment(99 /* SyntaxKind.IfKeyword */, node.pos, writeKeyword, node);
112523 writeSpace();

Callers 1

Calls 2

emitExpressionFunction · 0.85
writeTrailingSemicolonFunction · 0.85

Tested by

no test coverage detected