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

Method EmitSourceFile

internal/printer/printer.go:5026–5028  ·  view source on GitHub ↗
(sourceFile *ast.SourceFile)

Source from the content-addressed store, hash-verified

5024}
5025
5026func (p *Printer) EmitSourceFile(sourceFile *ast.SourceFile) string {
5027 return p.Emit(sourceFile.AsNode(), sourceFile)
5028}
5029
5030func (p *Printer) setSourceFile(sourceFile *ast.SourceFile) {
5031 p.currentSourceFile = sourceFile

Callers 2

CheckEmitFunction · 0.95
BenchmarkFormatFunction · 0.95

Calls 2

EmitMethod · 0.95
AsNodeMethod · 0.65

Tested by 1

BenchmarkFormatFunction · 0.76