File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1240,8 +1240,7 @@ Lexer_Transaction Lexer::begin_transaction() {
1240
1240
/* old_last_token=*/ this ->last_token_ ,
1241
1241
/* old_last_last_token_end=*/ this ->last_last_token_end_ ,
1242
1242
/* old_input=*/ this ->input_ ,
1243
- /* diag_list=*/
1244
- &this ->diag_reporter_ ->diags ());
1243
+ /* diag_list=*/ &this ->diags_ );
1245
1244
}
1246
1245
1247
1246
void Lexer::commit_transaction (Lexer_Transaction&&) {
@@ -1257,7 +1256,7 @@ void Lexer::roll_back_transaction(Lexer_Transaction&& transaction) {
1257
1256
}
1258
1257
1259
1258
bool Lexer::transaction_has_lex_diagnostics (const Lexer_Transaction& transaction) const {
1260
- return this ->diag_reporter_ -> diags () .reported_any_diagnostic_except_since ({}, transaction.diag_list_rewind );
1259
+ return this ->diags_ .reported_any_diagnostic_except_since ({}, transaction.diag_list_rewind );
1261
1260
}
1262
1261
1263
1262
void Lexer::insert_semicolon () {
Original file line number Diff line number Diff line change @@ -351,7 +351,6 @@ class Lexer {
351
351
Diag_List_Diag_Reporter diag_list_ =
352
352
Diag_List_Diag_Reporter (&this ->allocator_);
353
353
Diag_List& diags_ = diag_list_.diags();
354
- Diag_List_Diag_Reporter* diag_reporter_ = &this ->diag_list_;
355
354
356
355
friend struct Lex_Tables ;
357
356
};
You can’t perform that action at this time.
0 commit comments