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

Method is_virtual

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

Source from the content-addressed store, hash-verified

394 /// Check if a path is in the virtual filesystem
395 #[cfg(test)]
396 fn is_virtual(&self, path: &Path) -> bool {
397 let normalized = normalize_path(path);
398 self.virtual_files
399 .read()
400 .unwrap()
401 .contains_key(&*normalized)
402 }
403
404 /// Get a virtual file by path, checking raw path first then normalized path if needed.
405 fn get_virtual_file<'a>(

Callers

nothing calls this directly

Calls 4

normalize_pathFunction · 0.85
contains_keyMethod · 0.80
unwrapMethod · 0.65
readMethod · 0.65

Tested by

no test coverage detected