token method

SourceRange token(
  1. Token token
)

Return a source range that covers the same range as the given token.

Implementation

SourceRange token(Token token) {
  return SourceRange(token.offset, token.length);
}