contains checks if an exact interval exists in the tree.
(interval ast.Interval)
| 84 | |
| 85 | // contains checks if an exact interval exists in the tree. |
| 86 | func (t *IntervalTree) contains(interval ast.Interval) bool { |
| 87 | return t.findExact(t.root, interval) |
| 88 | } |
| 89 | |
| 90 | // findExact searches for an exact interval match. |
| 91 | func (t *IntervalTree) findExact(node *treeNode, interval ast.Interval) bool { |