Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilenameRangeSet ¶
type FilenameRangeSet struct {
// contains filtered or unexported fields
}
func NewFilenameRangeSet ¶
func NewFilenameRangeSet() *FilenameRangeSet
func (*FilenameRangeSet) Add ¶
func (frs *FilenameRangeSet) Add(filename string, start, end int)
func (*FilenameRangeSet) Contains ¶
func (frs *FilenameRangeSet) Contains(filename string, offset int) bool
func (*FilenameRangeSet) String ¶
func (frs *FilenameRangeSet) String() string
type Range ¶
Range represents a single continuous interval [Start, End). The interval includes Start but excludes End.
type RangeSet ¶
type RangeSet struct {
// contains filtered or unexported fields
}
RangeSet holds a collection of sorted, non-overlapping ranges.
func NewRangeSet ¶
func NewRangeSet() *RangeSet
NewRangeSet creates and returns a new, empty RangeSet.
func (*RangeSet) Add ¶
Add incorporates a new range into the set. It finds all existing ranges that overlap or are adjacent to the new range and merges them into a single, larger range.
Click to show internal directories.
Click to hide internal directories.