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

Function emitEmbeddedStatement

test/fixtures/snapshot/typescript.js:113744–113760  ·  view source on GitHub ↗
(parent, node)

Source from the content-addressed store, hash-verified

113742 }
113743 }
113744 function emitEmbeddedStatement(parent, node) {
113745 if (ts.isBlock(node) || ts.getEmitFlags(parent) & 1 /* EmitFlags.SingleLine */) {
113746 writeSpace();
113747 emit(node);
113748 }
113749 else {
113750 writeLine();
113751 increaseIndent();
113752 if (ts.isEmptyStatement(node)) {
113753 pipelineEmit(5 /* EmitHint.EmbeddedStatement */, node);
113754 }
113755 else {
113756 emit(node);
113757 }
113758 decreaseIndent();
113759 }
113760 }
113761 function emitDecorators(parentNode, decorators) {
113762 emitList(parentNode, decorators, 2146305 /* ListFormat.Decorators */);
113763 }

Callers 7

emitIfStatementFunction · 0.85
emitDoStatementFunction · 0.85
emitWhileStatementFunction · 0.85
emitForStatementFunction · 0.85
emitForInStatementFunction · 0.85
emitForOfStatementFunction · 0.85
emitWithStatementFunction · 0.85

Calls 6

writeSpaceFunction · 0.85
increaseIndentFunction · 0.85
pipelineEmitFunction · 0.85
decreaseIndentFunction · 0.85
emitFunction · 0.70
writeLineFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…