MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / has_visible_content

Method has_visible_content

atomic-core/src/pristine/span_patch_storage.rs:1416–1421  ·  view source on GitHub ↗

Whether this closure contains a typed root or range edits over a legacy graph. Unrelated legacy files keep their existing graph interpretation.

(&self, inode: Inode)

Source from the content-addressed store, hash-verified

1414 /// Whether this closure contains a typed root or range edits over a legacy
1415 /// graph. Unrelated legacy files keep their existing graph interpretation.
1416 pub fn has_visible_content(&self, inode: Inode) -> Result<bool> {
1417 if let Some(root) = self.txn.span_root(inode)? {
1418 return Ok(self.visible.contains(NodeId::new(root[0])));
1419 }
1420 Ok(self.txn.legacy_span_enabled()? && self.expected.contains_key(&inode.get()))
1421 }
1422
1423 /// Obtain byte-to-span mappings under this exact view closure.
1424 pub fn record_state(&self, inode: Inode) -> Result<Option<SpanRecordState>> {

Callers 1

Calls 5

contains_keyMethod · 0.80
getMethod · 0.65
span_rootMethod · 0.45
containsMethod · 0.45
legacy_span_enabledMethod · 0.45

Tested by

no test coverage detected