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

Method HasSameFileNames

internal/compiler/program.go:1821–1828  ·  view source on GitHub ↗
(other *Program)

Source from the content-addressed store, hash-verified

1819}
1820
1821func (p *Program) HasSameFileNames(other *Program) bool {
1822 return maps.EqualFunc(p.filesByPath, other.filesByPath, func(a, b *ast.SourceFile) bool {
1823 // checks for casing differences on case-insensitive file systems
1824 return a.FileName() == b.FileName()
1825 }) && maps.EqualFunc(p.redirectFilesByPath, other.redirectFilesByPath, func(a, b *redirectsFile) bool {
1826 return a.FileName() == b.FileName()
1827 })
1828}
1829
1830func (p *Program) GetSourceFiles() []*ast.SourceFile {
1831 return p.files

Callers 1

CreateProgramMethod · 0.80

Calls 1

FileNameMethod · 0.65

Tested by

no test coverage detected