MCPcopy Index your code
hub / github.com/emwalker/digraph / prefixed_synonyms

Method prefixed_synonyms

backend/src/git/types.rs:382–398  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

380 }
381
382 pub fn prefixed_synonyms(&self) -> Vec<Synonym> {
383 let mut synonyms = vec![];
384 let prefix = self.prefix();
385 for Synonym {
386 added,
387 locale,
388 name,
389 } in self.metadata.synonyms()
390 {
391 synonyms.push(Synonym {
392 added: *added,
393 locale: *locale,
394 name: prefix.format(name),
395 })
396 }
397 synonyms
398 }
399
400 pub fn root(&self) -> bool {
401 match &self.metadata.details {

Callers 1

update_synonymsMethod · 0.80

Calls 3

formatMethod · 0.80
prefixMethod · 0.45
synonymsMethod · 0.45

Tested by

no test coverage detected