startEnd method
SourceRange
startEnd(
- SyntacticEntity leftEntity,
- SyntacticEntity rightEntity
Return a source range that starts at the start of leftEntity
and ends at
the end of rightEntity
.
Implementation
SourceRange startEnd(
SyntacticEntity leftEntity, SyntacticEntity rightEntity) {
var offset = leftEntity.offset;
var length = rightEntity.end - offset;
return SourceRange(offset, length);
}