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

Function emitForInStatement

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

Source from the content-addressed store, hash-verified

112573 emitEmbeddedStatement(node, node.statement);
112574 }
112575 function emitForInStatement(node) {
112576 var openParenPos = emitTokenWithComment(97 /* SyntaxKind.ForKeyword */, node.pos, writeKeyword, node);
112577 writeSpace();
112578 emitTokenWithComment(20 /* SyntaxKind.OpenParenToken */, openParenPos, writePunctuation, node);
112579 emitForBinding(node.initializer);
112580 writeSpace();
112581 emitTokenWithComment(101 /* SyntaxKind.InKeyword */, node.initializer.end, writeKeyword, node);
112582 writeSpace();
112583 emitExpression(node.expression);
112584 emitTokenWithComment(21 /* SyntaxKind.CloseParenToken */, node.expression.end, writePunctuation, node);
112585 emitEmbeddedStatement(node, node.statement);
112586 }
112587 function emitForOfStatement(node) {
112588 var openParenPos = emitTokenWithComment(97 /* SyntaxKind.ForKeyword */, node.pos, writeKeyword, node);
112589 writeSpace();

Callers 1

Calls 5

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