token method
SourceRange
token(
- 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);
}