Clear removes all intervals from the tree.
()
| 223 | |
| 224 | // Clear removes all intervals from the tree. |
| 225 | func (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). |
| 231 | func (t *IntervalTree) Rebuild(intervals []ast.Interval) { |
no outgoing calls