MCPcopy Index your code
hub / github.com/microsoft/typescript-go / emitTypeAnnotation

Method emitTypeAnnotation

internal/printer/printer.go:1509–1517  ·  view source on GitHub ↗
(node *ast.TypeNode)

Source from the content-addressed store, hash-verified

1507}
1508
1509func (p *Printer) emitTypeAnnotation(node *ast.TypeNode) {
1510 if node == nil {
1511 return
1512 }
1513
1514 p.writePunctuation(":")
1515 p.writeSpace()
1516 p.emitTypeNodeOutsideExtends(node)
1517}
1518
1519func (p *Printer) emitInitializer(node *ast.Expression, equalTokenPos int, contextNode *ast.Node) {
1520 if node == nil {

Callers 7

emitParameterMethod · 0.95
emitSignatureMethod · 0.95
emitPropertySignatureMethod · 0.95
emitIndexSignatureMethod · 0.95
emitArrowFunctionMethod · 0.95

Calls 3

writePunctuationMethod · 0.95
writeSpaceMethod · 0.95

Tested by

no test coverage detected