Add implementation that adds to the output store.
(atom ast.Atom)
| 315 | |
| 316 | // Add implementation that adds to the output store. |
| 317 | func (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. |
| 325 | func (s TeeingStore) Remove(atom ast.Atom) bool { |