MCPcopy Create free account
hub / github.com/angular/angular / exists_raw

Method exists_raw

packages/compiler-cli/preprocessor/ng-analyze/src/fs.rs:214–224  ·  view source on GitHub ↗
(&self, path: &Path)

Source from the content-addressed store, hash-verified

212 }
213
214 fn exists_raw(&self, path: &Path) -> bool {
215 let in_virtual = {
216 let files = self.virtual_files.read().unwrap();
217 self.get_virtual_file(path, &files).is_some()
218 };
219 if in_virtual {
220 return true;
221 }
222 crate::perf::count(Counter::FsStatCalls, 1);
223 self.physical.exists(path)
224 }
225
226 /// Attempt to resolve a file across configured `rootDirs`.
227 /// If the file's path matches a prefix of one root directory, we check if a virtual or physical

Callers 2

Calls 5

get_virtual_fileMethod · 0.80
unwrapMethod · 0.65
readMethod · 0.65
existsMethod · 0.65
countFunction · 0.50

Tested by

no test coverage detected