(fileName string)
| 192 | } |
| 193 | |
| 194 | func (fs *overlayFS) getFile(fileName string) FileHandle { |
| 195 | fs.mu.RLock() |
| 196 | overlays := fs.overlays |
| 197 | fs.mu.RUnlock() |
| 198 | |
| 199 | path := fs.toPath(fileName) |
| 200 | if overlay, ok := overlays[path]; ok { |
| 201 | return overlay |
| 202 | } |
| 203 | |
| 204 | content, ok := fs.fs.ReadFile(fileName) |
| 205 | if !ok { |
| 206 | return nil |
| 207 | } |
| 208 | return newDiskFile(fileName, content) |
| 209 | } |
| 210 | |
| 211 | func (fs *overlayFS) processChanges(changes []FileChange) (FileChangeSummary, map[tspath.Path]*Overlay) { |
| 212 | fs.mu.Lock() |
nothing calls this directly
no test coverage detected