Skip to content

Range โ€‹

Overview โ€‹

Range { start_byte, end_byte, start_point, end_point } spans source text in both coordinate systems. Source: src/core/range.zig.

Methods โ€‹

zig
pub fn isEmpty(self: Range) bool
pub fn containsByte(self: Range, byte: u32) bool
pub fn containsRange(self: Range, other: Range) bool
pub fn overlaps(self: Range, other: Range) bool
pub fn rangeContainsPoint(range: Range, point: Point) bool

Point, Node โ€” range(), Changed Ranges

Released under the MIT License.