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

Method GetSourceFile

internal/compiler/program.go:1797–1800  ·  view source on GitHub ↗
(filename string)

Source from the content-addressed store, hash-verified

1795}
1796
1797func (p *Program) GetSourceFile(filename string) *ast.SourceFile {
1798 path := p.toPath(filename)
1799 return p.GetSourceFileByPath(path)
1800}
1801
1802func (p *Program) GetSourceFileForResolvedModule(fileName string) *ast.SourceFile {
1803 file := p.GetSourceFile(fileName)

Callers 1

Calls 2

toPathMethod · 0.95
GetSourceFileByPathMethod · 0.95

Tested by

no test coverage detected