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

Method GetSourceFileByPath

internal/compiler/program.go:1817–1819  ·  view source on GitHub ↗
(path tspath.Path)

Source from the content-addressed store, hash-verified

1815}
1816
1817func (p *Program) GetSourceFileByPath(path tspath.Path) *ast.SourceFile {
1818 return p.filesByPath[path]
1819}
1820
1821func (p *Program) HasSameFileNames(other *Program) bool {
1822 return maps.EqualFunc(p.filesByPath, other.filesByPath, func(a, b *ast.SourceFile) bool {

Callers 15

GetSourceFileMethod · 0.95
GetSymlinkCacheMethod · 0.95
printProjectsDiffMethod · 0.95
getReferencedLocationMethod · 0.80
containsFileMethod · 0.80
emitFilesIncrementalMethod · 0.80
toDiagnosticMethod · 0.80
getFilesAffectedByMethod · 0.80

Calls

no outgoing calls

Tested by 1