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

Function emitWithStatement

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

Source from the content-addressed store, hash-verified

112687 writeTrailingSemicolon();
112688 }
112689 function emitWithStatement(node) {
112690 var openParenPos = emitTokenWithComment(116 /* SyntaxKind.WithKeyword */, node.pos, writeKeyword, node);
112691 writeSpace();
112692 emitTokenWithComment(20 /* SyntaxKind.OpenParenToken */, openParenPos, writePunctuation, node);
112693 emitExpression(node.expression);
112694 emitTokenWithComment(21 /* SyntaxKind.CloseParenToken */, node.expression.end, writePunctuation, node);
112695 emitEmbeddedStatement(node, node.statement);
112696 }
112697 function emitSwitchStatement(node) {
112698 var openParenPos = emitTokenWithComment(107 /* SyntaxKind.SwitchKeyword */, node.pos, writeKeyword, node);
112699 writeSpace();

Callers 1

Calls 4

emitTokenWithCommentFunction · 0.85
writeSpaceFunction · 0.85
emitExpressionFunction · 0.85
emitEmbeddedStatementFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…