MCPcopy
hub / github.com/google/mangle / Add

Method Add

factstore/factstore.go:317–322  ·  view source on GitHub ↗

Add implementation that adds to the output store.

(atom ast.Atom)

Source from the content-addressed store, hash-verified

315
316// Add implementation that adds to the output store.
317func (s TeeingStore) Add(atom ast.Atom) bool {
318 if s.base.Contains(atom) {
319 return true
320 }
321 return s.Out.Add(atom)
322}
323
324// Remove implementation that removes from output store.
325func (s TeeingStore) Remove(atom ast.Atom) bool {

Callers 1

Calls 2

ContainsMethod · 0.65
AddMethod · 0.65

Tested by 1