allTokens property
Return a list of all Token objects in input char stream. Forces load of all tokens. Does not include EOF token.
Implementation
List<Token> get allTokens {
final tokens = <Token>[];
var t = nextToken();
while (t.type != Token.EOF) {
tokens.add(t);
t = nextToken();
}
return tokens;
}