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

Method emitVariableStatement

internal/printer/printer.go:3381–3387  ·  view source on GitHub ↗
(node *ast.VariableStatement)

Source from the content-addressed store, hash-verified

3379}
3380
3381func (p *Printer) emitVariableStatement(node *ast.VariableStatement) {
3382 state := p.enterNode(node.AsNode())
3383 p.emitModifierList(node.AsNode(), node.Modifiers(), false /*allowDecorators*/)
3384 p.emitVariableDeclarationList(node.DeclarationList.AsVariableDeclarationList())
3385 p.writeTrailingSemicolon()
3386 p.exitNode(node.AsNode(), state)
3387}
3388
3389func (p *Printer) emitEmptyStatement(node *ast.EmptyStatement, isEmbeddedStatement bool) {
3390 state := p.enterNode(node.AsNode())

Callers 1

emitStatementMethod · 0.95

Calls 8

enterNodeMethod · 0.95
emitModifierListMethod · 0.95
exitNodeMethod · 0.95
AsNodeMethod · 0.65
ModifiersMethod · 0.65

Tested by

no test coverage detected