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

Method path

packages/compiler-cli/preprocessor/ng-analyze/src/query/file_id.rs:25–30  ·  view source on GitHub ↗

The entry's filesystem path (for [`IdKind::Virtual`] entries, the verbatim `id`).

(&self)

Source from the content-addressed store, hash-verified

23impl InternedModule {
24 /// The entry's filesystem path (for [`IdKind::Virtual`] entries, the verbatim `id`).
25 fn path(&self) -> PathBuf {
26 match &self.path_override {
27 Some(path) => path.clone(),
28 None => PathBuf::from(self.id.as_str()),
29 }
30 }
31}
32
33/// Thread-safe canonical module ID and path interner.

Calls 2

cloneMethod · 0.65
as_strMethod · 0.45