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

Method compact

atomic-audit/src/substantive/mod.rs:36–42  ·  view source on GitHub ↗
(&mut self, node: Node<'_>)

Source from the content-addressed store, hash-verified

34 }
35
36 fn compact(&mut self, node: Node<'_>) -> Result<String, &'static str> {
37 Ok(self
38 .normalized(node)?
39 .into_iter()
40 .map(|token| token.text)
41 .collect())
42 }
43
44 fn issue(&self, rule: Rule, node: Node<'_>, detail: impl Into<String>) -> StructuralIssue {
45 StructuralIssue {

Callers 9

inspectFunction · 0.80
guard_across_awaitFunction · 0.80
inspectFunction · 0.80
error_patternFunction · 0.80
optional_not_foundFunction · 0.80
compacted_bytesFunction · 0.80
mainFunction · 0.80
compact_fileFunction · 0.80

Calls 3

collectMethod · 0.45
into_iterMethod · 0.45
normalizedMethod · 0.45

Tested by 1

compacted_bytesFunction · 0.64