Lines Matching refs:peek
74 ASSERT_EQ(Token::RBRACE, scanner()->peek());
151 switch (peek()) {
169 while (peek() != end_token) {
218 switch (peek()) {
324 while (peek() != Token::RBRACE) {
375 if (peek() == Token::VAR) {
377 } else if (peek() == Token::CONST) {
410 } else if (peek() == Token::LET) {
455 if (peek() == Token::ASSIGN || require_initializer) {
460 } while (peek() == Token::COMMA);
478 if (peek() == Token::COLON) {
501 if (peek() == Token::ELSE) {
514 Token::Value tok = peek();
531 Token::Value tok = peek();
557 Token::Value tok = peek();
599 Token::Value token = peek();
608 token = peek();
613 token = peek();
631 if (peek() == Token::SEMICOLON) Consume(Token::SEMICOLON);
665 if (peek() != Token::SEMICOLON) {
666 if (peek() == Token::VAR || peek() == Token::CONST ||
667 peek() == Token::LET) {
668 bool is_let = peek() == Token::LET;
698 if (peek() != Token::SEMICOLON) {
703 if (peek() != Token::RPAREN) {
750 if (peek() == Token::CATCH) {
767 if (peek() == Token::FINALLY) {
807 while (peek() == Token::COMMA) {
824 if (scope_->is_generator() && peek() == Token::YIELD) {
831 if (!Token::IsAssignmentOp(peek())) {
879 if (peek() != Token::CONDITIONAL) return expression;
896 for (int prec1 = Precedence(peek(), accept_IN); prec1 >= prec; prec1--) {
898 while (Precedence(peek(), accept_IN) == prec1) {
921 Token::Value op = peek();
952 Token::IsCountOp(peek())) {
974 if (peek() == Token::NEW) {
981 switch (peek()) {
1034 } while (peek() == Token::NEW);
1053 if (peek() == Token::FUNCTION) {
1074 switch (peek()) {
1126 switch (peek()) {
1173 parenthesized_function_ = (peek() == Token::FUNCTION);
1198 while (peek() != Token::RBRACK) {
1199 if (peek() != Token::COMMA) {
1202 if (peek() != Token::RBRACK) {
1223 while (peek() != Token::RBRACE) {
1224 Token::Value next = peek();
1232 if ((is_getter || is_setter) && peek() != Token::COLON) {
1250 if (peek() != Token::RBRACE) {
1282 if (peek() != Token::RBRACE) Expect(Token::COMMA, CHECK_OK);
1319 bool done = (peek() == Token::RPAREN);
1325 done = (peek() == Token::RPAREN);
1350 bool done = (peek() == Token::RPAREN);
1374 done = (peek() == Token::RPAREN);
1416 ASSERT_EQ(Token::RBRACE, scanner()->peek());