startOffsetEndOffset method

SourceRange startOffsetEndOffset(
  1. int startOffset,
  2. int endOffset
)

Return a source range that starts at the given startOffset and ends at the given endOffset.

Implementation

SourceRange startOffsetEndOffset(int startOffset, int endOffset) {
  var length = endOffset - startOffset;
  return SourceRange(startOffset, length);
}