/arkcompiler/ets_frontend/ets2panda/lexer/ |
H A D | keywords.cpp | 22 KeywordString JSKeywords::Handle_as([[maybe_unused]] const KeywordsUtil &util, std::string_view src, in Handle_as() 28 KeywordString JSKeywords::Handle_await(const KeywordsUtil &util, std::string_view src, TokenType tokenType) in Handle_await() 41 KeywordString JSKeywords::Handle_yield(const KeywordsUtil &util, std::string_view src, TokenType tokenType) in Handle_yield() 54 KeywordString TSKeywords::Handle_as(const KeywordsUtil &util, std::string_view src, TokenType tokenType) in Handle_as() 59 KeywordString TSKeywords::Handle_await(const KeywordsUtil &util, std::string_view src, TokenType tokenType) in Handle_await() 64 KeywordString TSKeywords::Handle_yield(const KeywordsUtil &util, std::string_view src, TokenType tokenType) in Handle_yield() 69 KeywordString ASKeywords::Handle_as(const KeywordsUtil &util, std::string_view src, TokenType tokenType) in Handle_as()
|
H A D | keywordsUtil.h | 31 class KeywordsUtil { class 33 explicit KeywordsUtil(Lexer *lexer, lexer::NextTokenFlags flags) : lexer_(lexer), flags_(flags) {} in KeywordsUtil() function in ark::es2panda::lexer::KeywordsUtil 34 explicit KeywordsUtil(Lexer *lexer, lexer::NextTokenFlags flags, char32_t cp) in KeywordsUtil() function in ark::es2panda::lexer::KeywordsUtil 38 NO_COPY_SEMANTIC(KeywordsUtil); 39 DEFAULT_MOVE_SEMANTIC(KeywordsUtil); 40 ~KeywordsUtil() = default;
|
H A D | keywordsBase.h | 26 explicit Keywords(Lexer *lexer, lexer::NextTokenFlags flags) : util_(KeywordsUtil(lexer, flags)) {} in Keywords() 31 KeywordsUtil &Util() in Util() 36 const KeywordsUtil &Util() const in Util() 56 template <KeywordString HANDLER(const KeywordsUtil &, std::string_view, TokenType)> 67 KeywordsUtil util_;
|
H A D | keywordsUtil.cpp | 174 bool KeywordsUtil::IsIdentifierStart(char32_t cp) in IsIdentifierStart() 184 bool KeywordsUtil::IsIdentifierPart(char32_t cp) in IsIdentifierPart() 195 void KeywordsUtil::ScanIdentifierStart(const Keywords *kws, char32_t cp) in ScanIdentifierStart() 197 if (!KeywordsUtil::IsIdentifierStart(cp)) { in ScanIdentifierStart() 206 void KeywordsUtil::ScanIdContinue() in ScanIdContinue() 252 void KeywordsUtil::ScanIdContinueMaybeKeyword(const Keywords *kws, Span<const KeywordString> map) in ScanIdContinueMaybeKeyword() 289 char32_t KeywordsUtil::ScanUnicodeEscapeSequence() in ScanUnicodeEscapeSequence()
|
H A D | ETSLexer.cpp | 82 if (KeywordsUtil::IsIdentifierStart(nextCp) || IsDecimalDigit(nextCp)) { in CheckNumberLiteralEnd()
|
H A D | lexer.cpp | 233 if (KeywordsUtil::IsIdentifierStart(nextCp) || IsDecimalDigit(nextCp)) { in CheckNumberLiteralEnd() 1067 if (!KeywordsUtil::IsIdentifierPart(cp)) { in ScanRegExpFlags() 1293 KeywordsUtil &kwu = kws->Util(); in NextToken()
|
H A D | lexer.h | 303 friend class KeywordsUtil;
|
/arkcompiler/ets_frontend/es2panda/lexer/ |
H A D | keywordsUtil.h | 31 class KeywordsUtil { class 33 explicit KeywordsUtil(Lexer *lexer, lexer::LexerNextTokenFlags flags) : lexer_(lexer), flags_(flags) {} in KeywordsUtil() function in panda::es2panda::lexer::KeywordsUtil 34 explicit KeywordsUtil(Lexer *lexer, lexer::LexerNextTokenFlags flags, char32_t cp) in KeywordsUtil() function in panda::es2panda::lexer::KeywordsUtil 38 NO_COPY_SEMANTIC(KeywordsUtil); 39 DEFAULT_MOVE_SEMANTIC(KeywordsUtil); 40 ~KeywordsUtil() = default; 71 inline void KeywordsUtil::SetKeyword(std::string_view str, TokenType type) in SetKeyword()
|
H A D | keywordsUtil.cpp | 175 bool KeywordsUtil::IsIdentifierStart(char32_t cp) in IsIdentifierStart() 185 bool KeywordsUtil::IsIdentifierPart(char32_t cp) in IsIdentifierPart() 199 void KeywordsUtil::ScanIdentifierStart(char32_t cp) in ScanIdentifierStart() 201 if (!KeywordsUtil::IsIdentifierStart(cp)) { in ScanIdentifierStart() 210 void KeywordsUtil::ScanIdContinue() in ScanIdContinue() 256 void KeywordsUtil::ScanIdContinueMaybeKeyword(Span<const KeywordString> map) in ScanIdContinueMaybeKeyword() 292 char32_t KeywordsUtil::ScanUnicodeEscapeSequence() in ScanUnicodeEscapeSequence()
|
H A D | lexer.h | 175 friend class KeywordsUtil;
|
H A D | lexer.cpp | 229 if (KeywordsUtil::IsIdentifierStart(nextCp) || IsDecimalDigit(nextCp)) { in CheckNumberLiteralEnd() 1131 if (!KeywordsUtil::IsIdentifierPart(cp)) { in ScanRegExpFlags() 1389 KeywordsUtil &kwu = kws.Util(); in NextToken()
|
/arkcompiler/ets_frontend/ets2panda/lexer/token/ |
H A D | token.h | 146 friend class KeywordsUtil;
|
/arkcompiler/ets_frontend/es2panda/lexer/token/ |
H A D | token.h | 141 friend class KeywordsUtil;
|