mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 13:50:00 +00:00
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:
parent
81671c3f0f
commit
9ca25e55d7
Notes:
github-actions[bot]
2025-11-09 11:15:27 +00:00
Author: https://github.com/awesomekling
Commit: 9ca25e55d7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6764
1 changed files with 2 additions and 4 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue