endsIn method

bool endsIn(
  1. SourceRange otherRange
)

Return true if this source range ends inside the otherRange.

Implementation

bool endsIn(SourceRange otherRange) {
  int thisEnd = end;
  return otherRange.contains(thisEnd);
}