Lines Matching refs:peek

131     DCHECK_EQ(Token::RBRACE, scanner()->peek());  in PreParseLazyFunction()
191 switch (peek()) { in ParseStatementListItem()
224 while (peek() != end_token) { in ParseStatementList()
225 if (directive_prologue && peek() != Token::STRING) { in ParseStatementList()
228 bool starts_with_identifier = peek() == Token::IDENTIFIER; in ParseStatementList()
320 if (peek() == Token::SEMICOLON) { in ParseStatement()
354 switch (peek()) { in ParseSubStatement()
485 while (peek() != Token::RBRACE) { in ParseBlock()
531 if (peek() == Token::VAR) { in ParseVariableDeclarations()
539 } else if (peek() == Token::CONST && allow_const()) { in ParseVariableDeclarations()
557 } else if (peek() == Token::LET && allow_let()) { in ParseVariableDeclarations()
579 Token::Value next = peek(); in ParseVariableDeclarations()
599 (peek() == Token::IN || PeekContextualKeyword(CStrVector("of"))); in ParseVariableDeclarations()
622 } while (peek() == Token::COMMA); in ParseVariableDeclarations()
641 switch (peek()) { in ParseExpressionOrLabelledStatement()
656 bool is_this = peek() == Token::THIS; in ParseExpressionOrLabelledStatement()
665 switch (peek()) { in ParseExpressionOrLabelledStatement()
701 if (starts_with_identifier && expr.IsIdentifier() && peek() == Token::COLON) { in ParseExpressionOrLabelledStatement()
716 if (!allow_harmony_sloppy_let() && peek() == Token::IDENTIFIER && in ParseExpressionOrLabelledStatement()
737 if (peek() == Token::ELSE) { in ParseIfStatement()
754 Token::Value tok = peek(); in ParseContinueStatement()
772 Token::Value tok = peek(); in ParseBreakStatement()
800 Token::Value tok = peek(); in ParseReturnStatement()
850 Token::Value token = peek(); in ParseSwitchStatement()
859 token = peek(); in ParseSwitchStatement()
865 token = peek(); in ParseSwitchStatement()
890 if (peek() == Token::SEMICOLON) Consume(Token::SEMICOLON); in ParseDoWhileStatement()
915 if (peek() != Token::SEMICOLON) { in ParseForStatement()
917 if (peek() == Token::VAR || (peek() == Token::CONST && allow_const()) || in ParseForStatement()
918 (peek() == Token::LET && IsNextLetKeyword())) { in ParseForStatement()
993 if (!allow_harmony_sloppy_let() && peek() == Token::IDENTIFIER && in ParseForStatement()
1001 if (peek() != Token::SEMICOLON) { in ParseForStatement()
1006 if (peek() != Token::RPAREN) { in ParseForStatement()
1048 Token::Value tok = peek(); in ParseTryStatement()
1067 tok = peek(); in ParseTryStatement()
1182 DCHECK_EQ(Token::RBRACE, scanner()->peek()); in ParseLazyFunctionLiteralBody()
1231 while (peek() != Token::RBRACE) { in ParseClassLiteral()
1280 while (peek() != Token::RBRACE) { in ParseDoExpression()