import { type Interval } from "https://deno.land/x/ohm_js@v17.0.3/index.d.ts";
An Interval represents a subset of a string.
Methods
Returns a new Interval that covers this Interval and all the argument Intervals. The new Interval will start at the lowest start index and end at the largest end index.
Returns a structure containing information about the location of the interval in the source string, including the line and column number.
Returns an array of 0, 1, or 2 intervals that represents the result of the interval difference operation.
Returns a new Interval that has the same extent as this one, but which is relative
to that
, an Interval that fully covers this one.
Returns a new Interval which contains the same contents as this one, but with whitespace trimmed from both ends.
Returns a new Interval on the same source string, with the given length
and beginning at startIdx + offset
.