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

Function emitForOfStatement

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

Source from the content-addressed store, hash-verified

112585 emitEmbeddedStatement(node, node.statement);
112586 }
112587 function emitForOfStatement(node) {
112588 var openParenPos = emitTokenWithComment(97 /* SyntaxKind.ForKeyword */, node.pos, writeKeyword, node);
112589 writeSpace();
112590 emitWithTrailingSpace(node.awaitModifier);
112591 emitTokenWithComment(20 /* SyntaxKind.OpenParenToken */, openParenPos, writePunctuation, node);
112592 emitForBinding(node.initializer);
112593 writeSpace();
112594 emitTokenWithComment(160 /* SyntaxKind.OfKeyword */, node.initializer.end, writeKeyword, node);
112595 writeSpace();
112596 emitExpression(node.expression);
112597 emitTokenWithComment(21 /* SyntaxKind.CloseParenToken */, node.expression.end, writePunctuation, node);
112598 emitEmbeddedStatement(node, node.statement);
112599 }
112600 function emitForBinding(node) {
112601 if (node !== undefined) {
112602 if (node.kind === 255 /* SyntaxKind.VariableDeclarationList */) {

Callers 1

Calls 6

emitTokenWithCommentFunction · 0.85
writeSpaceFunction · 0.85
emitWithTrailingSpaceFunction · 0.85
emitForBindingFunction · 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…