We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8b388d commit 0549e1cCopy full SHA for 0549e1c
src/quick-lint-js/fe/lex.cpp
@@ -1271,10 +1271,8 @@ void Lexer::roll_back_transaction(Lexer_Transaction&& transaction) {
1271
this->transaction_allocator_.rewind(std::move(transaction.allocator_rewind));
1272
}
1273
1274
-bool Lexer::transaction_has_lex_diagnostics(const Lexer_Transaction&) const {
1275
- Buffering_Diag_Reporter* buffered_diagnostics =
1276
- derived_cast<Buffering_Diag_Reporter*>(this->diag_reporter_);
1277
- return !buffered_diagnostics->empty();
+bool Lexer::transaction_has_lex_diagnostics(const Lexer_Transaction& transaction) const {
+ return !transaction.reporter->diags().empty();
1278
1279
1280
void Lexer::insert_semicolon() {
0 commit comments