LibJS: Rearrange Lexer members to shrink it by 16 bytes

This is useful since the parser's state saving mechanism works by
copying the lexer object.
This commit is contained in:
Andreas Kling 2025-11-08 20:45:56 +01:00 committed by Andreas Kling
parent 81671c3f0f
commit 9ca25e55d7
Notes: github-actions[bot] 2025-11-09 11:15:27 +00:00

View file

@ -64,21 +64,19 @@ private:
Token m_current_token;
char16_t m_current_code_unit { 0 };
bool m_eof { false };
bool m_regex_is_in_character_class { false };
bool m_allow_html_comments { true };
String m_filename;
size_t m_line_number { 1 };
size_t m_line_column { 0 };
bool m_regex_is_in_character_class { false };
struct TemplateState {
bool in_expr;
u8 open_bracket_count;
};
Vector<TemplateState> m_template_states;
bool m_allow_html_comments { true };
static HashMap<Utf16FlyString, TokenType> s_keywords;
};