1
Fork 0
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:
Stephan Unverwerth 2020-04-17 15:05:58 +02:00 committed by Andreas Kling
parent b77ceecb02
commit 07f838dc4e
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;
};
}