getExpanded method

SourceRange getExpanded(
  1. int delta
)

Return a source range covering delta characters before the start of this source range and delta characters after the end of this source range.

Implementation

SourceRange getExpanded(int delta) =>
    SourceRange(offset - delta, delta + length + delta);