Lines Matching defs:token

30 #include "src/parsing/token.h"
649 bool ParsePropertyKindFromToken(Token::Value token) {
650 // This returns true, setting the property kind, iff the given token is
652 // previous token was in fact a name and not a modifier (like the "get" in
654 switch (token) {
870 // Any further calls to Next or peek will return the illegal token.
877 // position past the end of the current token otherwise.
886 V8_INLINE void Consume(Token::Value token) {
889 USE(token);
890 DCHECK_IMPLIES(!has_error(), next == token);
893 V8_INLINE bool Check(Token::Value token) {
895 if (next == token) {
902 void Expect(Token::Value token) {
904 if (V8_UNLIKELY(next != token)) {
1002 // appears in the current template literal token. In the presence of such,
1102 V8_NOINLINE void ReportUnexpectedToken(Token::Value token);
1131 V8_INLINE IdentifierT ParseAndClassifyIdentifier(Token::Value token);
1136 V8_INLINE bool ClassifyPropertyIdentifier(Token::Value token,
1652 void ParserBase<Impl>::ReportUnexpectedToken(Token::Value token) {
1653 return impl()->ReportUnexpectedTokenAt(scanner_->location(), token);
1854 Token::Value token = peek();
1857 if (Token::IsAnyIdentifier(token)) {
1870 if (token == Token::LBRACK) {
1872 } else if (token == Token::LBRACE) {
1905 Token::Value token = peek();
1907 if (Token::IsAnyIdentifier(token)) {
1908 Consume(token);
1912 if (V8_UNLIKELY(token == Token::ASYNC &&
1920 token = Next();
1928 IdentifierT name = ParseAndClassifyIdentifier(token);
1937 IdentifierT name = ParseAndClassifyIdentifier(token);
1941 if (Token::IsLiteral(token)) {
1945 switch (token) {
2200 Token::Value token = peek();
2201 if ((token != Token::MUL && prop_info->ParsePropertyKindFromToken(token)) ||
2221 Token::Value token = Next();
2230 if (token == Token::GET) {
2232 } else if (token == Token::SET) {
3048 // a regular yield, given only one look-ahead token.
4478 // token must be first interpreted as a keyword in order
4517 // If next token is not `=>`, it's a syntax error anyways.
4878 // Consuming token we did not peek yet, which could lead to a ILLEGAL token
4921 // In this case we may simply consume the token and build a template with a
4940 // and repeat if the following token is a TEMPLATE_SPAN as well (in this
4957 // If we didn't die parsing that expression, our next token should be a
5632 // Consume the return token. It is necessary to do that before
6086 // check if the token is ASYNC after parsing the expression.