startStart method

SourceRange startStart(
  1. SyntacticEntity leftEntity,
  2. SyntacticEntity rightEntity
)

Return a source range that starts at the start of leftEntity and ends at the start of rightEntity.

Implementation

SourceRange startStart(
    SyntacticEntity leftEntity, SyntacticEntity rightEntity) {
  var offset = leftEntity.offset;
  var length = rightEntity.offset - offset;
  return SourceRange(offset, length);
}