MCPcopy Create free account
hub / github.com/microsoft/typescript-go / emitForInitializer

Method emitForInitializer

internal/printer/printer.go:3507–3513  ·  view source on GitHub ↗
(node *ast.ForInitializer)

Source from the content-addressed store, hash-verified

3505}
3506
3507func (p *Printer) emitForInitializer(node *ast.ForInitializer) {
3508 if node.Kind == ast.KindVariableDeclarationList {
3509 p.emitVariableDeclarationList(node.AsVariableDeclarationList())
3510 } else {
3511 p.emitExpression(node, ast.OperatorPrecedenceLowest)
3512 }
3513}
3514
3515func (p *Printer) emitForStatement(node *ast.ForStatement) {
3516 state := p.enterNode(node.AsNode())

Callers 3

emitForStatementMethod · 0.95
emitForInStatementMethod · 0.95
emitForOfStatementMethod · 0.95

Calls 3

emitExpressionMethod · 0.95

Tested by

no test coverage detected