Lines Matching refs:peek

356   INLINE(Token::Value peek()) {  in INLINE()  argument
358 return scanner()->peek(); in INLINE()
387 Token::Value next = peek(); in Check()
406 Token::Value tok = peek(); in ExpectSemicolon()
420 Token::Value next = peek(); in peek_any_identifier()
435 return peek() == Token::IDENTIFIER && in PeekContextualKeyword()
663 GetUnexpectedTokenMessage(peek(), &message, &arg); in ExpressionUnexpectedToken()
670 GetUnexpectedTokenMessage(peek(), &message, &arg); in BindingPatternUnexpectedToken()
678 GetUnexpectedTokenMessage(peek(), &message, &arg); in ArrowFormalParametersUnexpectedToken()
687 GetUnexpectedTokenMessage(peek(), &message, &arg); in FormalParameterInitializerUnexpectedToken()
1249 switch (peek()) { in ParsePrimaryExpression()
1348 if (peek() == Token::COMMA) { in ParsePrimaryExpression()
1359 parenthesized_function_ = (peek() == Token::FUNCTION); in ParsePrimaryExpression()
1363 if (peek() != Token::ARROW) { in ParsePrimaryExpression()
1454 while (peek() == Token::COMMA) { in ParseExpression()
1463 if (peek() == Token::ELLIPSIS) { in ParseExpression()
1501 while (peek() != Token::RBRACK) { in ParseArrayLiteral()
1503 if (peek() == Token::COMMA) { in ParseArrayLiteral()
1511 } else if (peek() == Token::ELLIPSIS) { in ParseArrayLiteral()
1531 if (peek() == Token::COMMA) { in ParseArrayLiteral()
1541 if (peek() != Token::RBRACK) { in ParseArrayLiteral()
1560 Token::Value token = peek(); in ParsePropertyName()
1637 Token::Value name_token = peek(); in ParsePropertyDefinition()
1658 if (peek() == Token::COLON) { in ParsePropertyDefinition()
1675 (peek() == Token::COMMA || peek() == Token::RBRACE || in ParsePropertyDefinition()
1676 peek() == Token::ASSIGN)) { in ParsePropertyDefinition()
1704 if (peek() == Token::ASSIGN) { in ParsePropertyDefinition()
1739 if (is_generator || peek() == Token::LPAREN) { in ParsePropertyDefinition()
1789 name_token = peek(); in ParsePropertyDefinition()
1846 while (peek() != Token::RBRACE) { in ParseObjectLiteral()
1874 if (peek() != Token::RBRACE) { in ParseObjectLiteral()
1910 bool done = (peek() == Token::RPAREN); in ParseArguments()
1944 done = (peek() != Token::COMMA); in ParseArguments()
1983 if (peek() == Token::YIELD && is_generator()) { in ParseAssignmentExpression()
1990 bool parenthesized_formals = peek() == Token::LPAREN; in ParseAssignmentExpression()
1996 if (peek() == Token::ARROW) { in ParseAssignmentExpression()
2052 if (!Token::IsAssignmentOp(peek())) { in ParseAssignmentExpression()
2067 peek() == Token::ASSIGN) { in ParseAssignmentExpression()
2164 switch (peek()) { in ParseYieldExpression()
2215 if (peek() != Token::CONDITIONAL) return expression; in ParseConditionalExpression()
2241 for (int prec1 = Precedence(peek(), accept_IN); prec1 >= prec; prec1--) { in ParseBinaryExpression()
2243 while (Precedence(peek(), accept_IN) == prec1) { in ParseBinaryExpression()
2307 Token::Value op = peek(); in ParseUnaryExpression()
2366 Token::IsCountOp(peek())) { in ParsePostfixExpression()
2398 switch (peek()) { in ParseLeftHandSideExpression()
2526 if (peek() == Token::NEW) { in ParseMemberWithNewPrefixesExpression()
2532 if (peek() == Token::SUPER) { in ParseMemberWithNewPrefixesExpression()
2535 } else if (peek() == Token::PERIOD) { in ParseMemberWithNewPrefixesExpression()
2541 if (peek() == Token::LPAREN) { in ParseMemberWithNewPrefixesExpression()
2581 if (peek() == Token::FUNCTION) { in ParseMemberExpression()
2607 } else if (peek() == Token::SUPER) { in ParseMemberExpression()
2635 switch (peek()) { in ParseStrongInitializationExpression()
2665 if (peek() != Token::ASSIGN) { in ParseStrongInitializationExpression()
2714 if (peek() != Token::LPAREN) { in ParseStrongSuperCallExpression()
2773 if (peek() == Token::PERIOD || peek() == Token::LBRACK) { in ParseSuperExpression()
2779 if (!is_new && peek() == Token::LPAREN && IsSubclassConstructor(kind)) { in ParseSuperExpression()
2825 switch (peek()) { in ParseMemberExpressionContinuation()
2890 Token::Value next = peek(); in ParseFormalParameter()
2945 if (peek() != Token::RPAREN) { in ParseFormalParameterList()
2960 if (peek() == Token::COMMA) { in ParseFormalParameterList()
3008 DCHECK(peek() == Token::LET); in IsNextLetKeyword()
3032 if (peek() == Token::ARROW && scanner_->HasAnyLineTerminatorBeforeNext()) { in ParseArrowFunctionLiteral()
3060 if (peek() == Token::LBRACE) { in ParseArrowFunctionLiteral()
3152 CHECK(peek() == Token::TEMPLATE_SPAN || peek() == Token::TEMPLATE_TAIL); in ParseTemplateLiteral()
3157 if (peek() == Token::TEMPLATE_TAIL) { in ParseTemplateLiteral()
3178 next = peek(); in ParseTemplateLiteral()
3197 if (peek() != Token::RBRACE) { in ParseTemplateLiteral()