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

Method Clear

factstore/interval_tree.go:225–228  ·  view source on GitHub ↗

Clear removes all intervals from the tree.

()

Source from the content-addressed store, hash-verified

223
224// Clear removes all intervals from the tree.
225func (t *IntervalTree) Clear() {
226 t.root = nil
227 t.size = 0
228}
229
230// Rebuild reconstructs the tree from a list of intervals (for coalescing).
231func (t *IntervalTree) Rebuild(intervals []ast.Interval) {

Callers 2

TestIntervalTree_ClearFunction · 0.95
RebuildMethod · 0.95

Calls

no outgoing calls

Tested by 1

TestIntervalTree_ClearFunction · 0.76