Lines Matching defs:token
44 #include "lexer/token/letters.h"
45 #include "lexer/token/sourceLocation.h"
129 bool ParserImpl::IsModifierKind(const lexer::Token &token)
131 switch (token.KeywordType()) {
337 ThrowSyntaxError("Unexpected token, expected ']'");
393 ThrowSyntaxError("Unexpected token in class property");
525 ThrowSyntaxError("Unexpected token in private field");
700 ThrowSyntaxError("Unexpected token, expected an identifier.");
749 ThrowSyntaxError("Unexpected token, expected an identifier.");
871 ThrowSyntaxError("Invalid token: comma or right parenthesis expected.");
883 ThrowSyntaxError({"Unexpected token: ", className.Utf8()});
891 ThrowSyntaxError("Unexpected token, expected '{'");
904 ThrowSyntaxError("Unexpected token, expected '('");
1174 auto const &token = lexer_->GetToken();
1175 auto const tokenType = token.Type();
1180 if (token.IsDefinableTypeName() && isUserDefinedType) {
1184 auto const &tokenStart = token.Start();
1188 tokenName = token.Ident();
1201 // NOTE: here actual token can be changed!
1222 ThrowSyntaxError("Unexpected token: '"s + TokenToString(tokenType) + "'."s);
1227 ThrowSyntaxError("Unexpected token, expected: '"s + TokenToString(tokenType) + "'."s);
1263 LogSyntaxError("Unexpected token, expected: '"s + TokenToString(tokenType) + "'."s);