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

Method GetSourceFile

internal/execute/incremental/program.go:115–118  ·  view source on GitHub ↗

GetSourceFile implements compiler.AnyProgram interface.

(path string)

Source from the content-addressed store, hash-verified

113
114// GetSourceFile implements compiler.AnyProgram interface.
115func (p *Program) GetSourceFile(path string) *ast.SourceFile {
116 p.panicIfNoProgram("GetSourceFile")
117 return p.program.GetSourceFile(path)
118}
119
120// GetConfigFileParsingDiagnostics implements compiler.AnyProgram interface.
121func (p *Program) GetConfigFileParsingDiagnostics() []*ast.Diagnostic {

Callers

nothing calls this directly

Calls 2

panicIfNoProgramMethod · 0.95
GetSourceFileMethod · 0.65

Tested by

no test coverage detected