endLength method

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

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

Implementation

SourceRange endLength(SyntacticEntity entity, int length) {
  return SourceRange(entity.end, length);
}