summaryrefslogtreecommitdiffstats
path: root/yql/essentials/parser/common/error.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'yql/essentials/parser/common/error.cpp')
-rw-r--r--yql/essentials/parser/common/error.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/yql/essentials/parser/common/error.cpp b/yql/essentials/parser/common/error.cpp
index 888af7d677e..9fad2892213 100644
--- a/yql/essentials/parser/common/error.cpp
+++ b/yql/essentials/parser/common/error.cpp
@@ -3,10 +3,10 @@
namespace NAST {
IErrorCollector::IErrorCollector(size_t maxErrors)
- : MaxErrors(maxErrors)
- , NumErrors(0)
+ : MaxErrors_(maxErrors)
+ , NumErrors_(0)
{
- Y_ENSURE(0 < MaxErrors);
+ Y_ENSURE(0 < MaxErrors_);
}
IErrorCollector::~IErrorCollector()
@@ -14,17 +14,17 @@ namespace NAST {
}
void IErrorCollector::Error(ui32 line, ui32 col, const TString& message) {
- if (NumErrors + 1 == MaxErrors) {
+ if (NumErrors_ + 1 == MaxErrors_) {
AddError(0, 0, "Too many errors");
- ++NumErrors;
+ ++NumErrors_;
}
- if (NumErrors >= MaxErrors) {
+ if (NumErrors_ >= MaxErrors_) {
ythrow TTooManyErrors() << "Too many errors";
}
AddError(line, col, message);
- ++NumErrors;
+ ++NumErrors_;
}
TErrorOutput::TErrorOutput(IOutputStream& err, const TString& name, size_t maxErrors)