covers method

bool covers(
  1. SourceRange otherRange
)

Return true if this source range covers the otherRange.

Implementation

bool covers(SourceRange otherRange) =>
    offset <= otherRange.offset && otherRange.end <= end;