Skip to content

Commit 4c1fc9a

Browse files
committed
refactor: rename error_reporter_* -> diag_reporter_*
1 parent 408ac95 commit 4c1fc9a

File tree

10 files changed

+320
-327
lines changed

10 files changed

+320
-327
lines changed

src/c-api.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,29 +24,29 @@ template <class Locator, class ErrorReporter>
2424
class qljs_document_base {
2525
public:
2626
const auto* lint() {
27-
this->error_reporter_.reset();
28-
this->error_reporter_.set_input(this->document_.string(),
29-
&this->document_.locator());
27+
this->diag_reporter_.reset();
28+
this->diag_reporter_.set_input(this->document_.string(),
29+
&this->document_.locator());
3030
parser_options p_options;
3131
p_options.jsx = true;
32-
parser p(this->document_.string(), &this->error_reporter_, p_options);
33-
linter l(&this->error_reporter_, &this->config_.globals());
32+
parser p(this->document_.string(), &this->diag_reporter_, p_options);
33+
linter l(&this->diag_reporter_, &this->config_.globals());
3434
p.parse_and_visit_module_catching_fatal_parse_errors(l);
3535

36-
return this->error_reporter_.get_diagnostics();
36+
return this->diag_reporter_.get_diagnostics();
3737
}
3838

3939
const auto* lint_as_config_file() {
40-
this->error_reporter_.reset();
41-
this->error_reporter_.set_input(this->document_.string(),
42-
&this->document_.locator());
40+
this->diag_reporter_.reset();
41+
this->diag_reporter_.set_input(this->document_.string(),
42+
&this->document_.locator());
4343
configuration().load_from_json(this->document_.string(),
44-
&this->error_reporter_);
45-
return this->error_reporter_.get_diagnostics();
44+
&this->diag_reporter_);
45+
return this->diag_reporter_.get_diagnostics();
4646
}
4747

4848
quick_lint_js::document<Locator> document_;
49-
ErrorReporter error_reporter_;
49+
ErrorReporter diag_reporter_;
5050
configuration config_;
5151
};
5252
}

0 commit comments

Comments
 (0)