ArrayList<CoffeeScriptLexerTestToken> tokens = new ArrayList<CoffeeScriptLexerTestToken>();
while (lexer.getCurrentPosition().getOffset() < lexer.getBufferEnd()) {
CoffeeScriptLexerTestToken token = new CoffeeScriptLexerTestToken(lexer.getTokenType(), lexer.getTokenSequence());
tokens.add(token);
lexer.advance();
}
return tokens;
}