Lines Matching refs:token
15 #include "src/token.h"
303 // Any further calls to Next or peek will return the illegal token.
304 // The current call must return the next token, which might already
312 void Consume(Token::Value token) {
315 USE(token);
316 DCHECK(next == token);
319 bool Check(Token::Value token) {
321 if (next == token) {
328 void Expect(Token::Value token, bool* ok) {
330 if (next != token) {
429 // Determine precedence of given token.
430 static int Precedence(Token::Value token, bool accept_IN) {
431 if (token == Token::IN && !accept_IN)
433 return Token::Precedence(token);
457 void ReportUnexpectedToken(Token::Value token);
1327 Token::Value token, int pos, Scanner* scanner,
1608 void ParserBase<Traits>::ReportUnexpectedToken(Token::Value token) {
1612 switch (token) {
1629 const char* name = Token::String(token);
1767 Token::Value token = peek();
1768 switch (token) {
1780 result = this->ExpressionFromLiteral(token, pos, scanner(), factory());
1860 ReportUnexpectedToken(token);
2229 // a Yield::kSuspend operation, given only one look-ahead token.