Calculates the component-wise sum of two ranges.
Combines overlapping or subset ranges into a minimal set of ranges.
SourceRange.merge for merging multiple ranges into a single range.
Provides a comparator for SourceRanges that sorts them in ascending order.
a positive number if r1 comes after r2, a negative number if r1 comes before r2, and 0 if they are equal
Prints a range as a human-readable string.
Creates a source range from the given line and column numbers.
start line
start column
end line
end column
Returns the end position of a source range.
Returns the start position of a source range.
Checks if the first range is a subset of the second range.
Merges multiple source ranges into a single source range that spans from the earliest start to the latest end. If you are interested in combining overlapping ranges into a minimal set of ranges, see combineRanges.
Checks if the two ranges overlap.
true iff r1 starts and ends before r2 starts (i.e., if r1 and r2 do not overlap and r1 comes before r2
Utility functions for source ranges.