LibJS: Implement automatic semicolon insertion

This commit is contained in:
Stephan Unverwerth 2020-04-17 15:05:58 +02:00 committed by Andreas Kling
commit 07f838dc4e
Notes: sideshowbarker 2024-07-19 07:32:07 +09:00
2 changed files with 67 additions and 24 deletions

View file

@ -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;
};
}