mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:57:44 +00:00
LibJS: Implement automatic semicolon insertion
This commit is contained in:
parent
b77ceecb02
commit
07f838dc4e
2 changed files with 67 additions and 24 deletions
|
@ -89,6 +89,7 @@ private:
|
|||
void expected(const char* what);
|
||||
Token consume();
|
||||
Token consume(TokenType type);
|
||||
void consume_or_insert_semicolon();
|
||||
void save_state();
|
||||
void load_state();
|
||||
|
||||
|
@ -104,6 +105,5 @@ private:
|
|||
|
||||
ParserState m_parser_state;
|
||||
Optional<ParserState> m_saved_state;
|
||||
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue