Home | History | Annotate | Download | only in src

Lines Matching full:peek

70     ASSERT_EQ(i::Token::RBRACE, scanner_->peek());
158 switch (peek()) {
176 while (peek() != end_token) {
225 switch (peek()) {
327 while (peek() != i::Token::RBRACE) {
378 if (peek() == i::Token::VAR) {
380 } else if (peek() == i::Token::CONST) {
413 } else if (peek() == i::Token::LET) {
458 if (peek() == i::Token::ASSIGN || require_initializer) {
463 } while (peek() == i::Token::COMMA);
479 if (peek() == i::Token::COLON) {
502 if (peek() == i::Token::ELSE) {
515 i::Token::Value tok = peek();
532 i::Token::Value tok = peek();
558 i::Token::Value tok = peek();
601 i::Token::Value token = peek();
613 token = peek();
630 if (peek() == i::Token::SEMICOLON) Consume(i::Token::SEMICOLON);
654 if (peek() != i::Token::SEMICOLON) {
655 if (peek() == i::Token::VAR || peek() == i::Token::CONST ||
656 peek() == i::Token::LET) {
657 bool is_let = peek() == i::Token::LET;
664 if (peek() == i::Token::IN && accept_IN) {
674 if (peek() == i::Token::IN) {
688 if (peek() != i::Token::SEMICOLON) {
693 if (peek() != i::Token::RPAREN) {
740 if (peek() == i::Token::CATCH) {
758 if (peek() == i::Token::FINALLY) {
798 while (peek() == i::Token::COMMA) {
817 if (!i::Token::IsAssignmentOp(peek())) {
852 if (peek() != i::Token::CONDITIONAL) return expression;
877 for (int prec1 = Precedence(peek(), accept_IN); prec1 >= prec; prec1--) {
879 while (Precedence(peek(), accept_IN) == prec1) {
902 i::Token::Value op = peek();
933 i::Token::IsCountOp(peek())) {
955 if (peek() == i::Token::NEW) {
962 switch (peek()) {
1015 } while (peek() == i::Token::NEW);
1034 if (peek() == i::Token::FUNCTION) {
1053 switch (peek()) {
1105 switch (peek()) {
1167 parenthesized_function_ = (peek() == i::Token::FUNCTION);
1192 while (peek() != i::Token::RBRACK) {
1193 if (peek() != i::Token::COMMA) {
1196 if (peek() != i::Token::RBRACK) {
1249 while (peek() != i::Token::RBRACE) {
1250 i::Token::Value next = peek();
1258 if ((is_getter || is_setter) && peek() != i::Token::COLON) {
1276 if (peek() != i::Token::RBRACE) {
1308 if (peek() != i::Token::RBRACE) Expect(i::Token::COMMA, CHECK_OK);
1345 bool done = (peek() == i::Token::RPAREN);
1351 done = (peek() == i::Token::RPAREN);
1374 bool done = (peek() == i::Token::RPAREN);
1398 done = (peek() == i::Token::RPAREN);
1440 ASSERT_EQ(i::Token::RBRACE, scanner_->peek());
1469 i::Token::Value tok = peek();
1649 i::Token::Value next = peek();