| 1819 | } |
| 1820 | |
| 1821 | func (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 | |
| 1830 | func (p *Program) GetSourceFiles() []*ast.SourceFile { |
| 1831 | return p.files |