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

Method All

factstore/interval_tree.go:200–202  ·  view source on GitHub ↗

All calls fn for every interval in the tree (in-order traversal).

(fn func(ast.Interval) error)

Source from the content-addressed store, hash-verified

198
199// All calls fn for every interval in the tree (in-order traversal).
200func (t *IntervalTree) All(fn func(ast.Interval) error) error {
201 return t.inOrder(t.root, fn)
202}
203
204// inOrder performs an in-order traversal.
205func (t *IntervalTree) inOrder(node *treeNode, fn func(ast.Interval) error) error {

Callers 3

TestIntervalTree_AllFunction · 0.95
GetAllFactsMethod · 0.80
CoalesceMethod · 0.80

Calls 1

inOrderMethod · 0.95

Tested by 1

TestIntervalTree_AllFunction · 0.76