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

Function emitForStatement

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

Source from the content-addressed store, hash-verified

112561 emitEmbeddedStatement(node, node.statement);
112562 }
112563 function emitForStatement(node) {
112564 var openParenPos = emitTokenWithComment(97 /* SyntaxKind.ForKeyword */, node.pos, writeKeyword, node);
112565 writeSpace();
112566 var pos = emitTokenWithComment(20 /* SyntaxKind.OpenParenToken */, openParenPos, writePunctuation, /*contextNode*/ node);
112567 emitForBinding(node.initializer);
112568 pos = emitTokenWithComment(26 /* SyntaxKind.SemicolonToken */, node.initializer ? node.initializer.end : pos, writePunctuation, node);
112569 emitExpressionWithLeadingSpace(node.condition);
112570 pos = emitTokenWithComment(26 /* SyntaxKind.SemicolonToken */, node.condition ? node.condition.end : pos, writePunctuation, node);
112571 emitExpressionWithLeadingSpace(node.incrementor);
112572 emitTokenWithComment(21 /* SyntaxKind.CloseParenToken */, node.incrementor ? node.incrementor.end : pos, writePunctuation, node);
112573 emitEmbeddedStatement(node, node.statement);
112574 }
112575 function emitForInStatement(node) {
112576 var openParenPos = emitTokenWithComment(97 /* SyntaxKind.ForKeyword */, node.pos, writeKeyword, node);
112577 writeSpace();

Callers 1

Calls 5

emitTokenWithCommentFunction · 0.85
writeSpaceFunction · 0.85
emitForBindingFunction · 0.85
emitEmbeddedStatementFunction · 0.85

Tested by

no test coverage detected