startLength method

SourceRange startLength(
  1. SyntacticEntity entity,
  2. int length
)

Return a source range that starts at the start of entity and has a length of length.

Implementation

SourceRange startLength(SyntacticEntity entity, int length) {
  return SourceRange(entity.offset, length);
}