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

Method emitWhileStatement

internal/printer/printer.go:3500–3505  ·  view source on GitHub ↗
(node *ast.WhileStatement)

Source from the content-addressed store, hash-verified

3498}
3499
3500func (p *Printer) emitWhileStatement(node *ast.WhileStatement) {
3501 state := p.enterNode(node.AsNode())
3502 p.emitWhileClause(node.AsNode(), node.Expression, node.Pos())
3503 p.emitEmbeddedStatement(node.AsNode(), node.Statement)
3504 p.exitNode(node.AsNode(), state)
3505}
3506
3507func (p *Printer) emitForInitializer(node *ast.ForInitializer) {
3508 if node.Kind == ast.KindVariableDeclarationList {

Callers 1

emitStatementMethod · 0.95

Calls 6

enterNodeMethod · 0.95
emitWhileClauseMethod · 0.95
emitEmbeddedStatementMethod · 0.95
exitNodeMethod · 0.95
AsNodeMethod · 0.65
PosMethod · 0.65

Tested by

no test coverage detected