Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(#3742): Split ParsingErrors on Two Separate Classes #3751

Merged
merged 11 commits into from
Dec 25, 2024
Prev Previous commit
Next Next commit
feat(#3742): shake methods
  • Loading branch information
volodya-lombrozo committed Dec 24, 2024
commit 02f86f79edd064921d38e094dca56d3c38c8f2d6
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,19 @@ private EoParserErrors(final List<ParsingException> errors, final Lines lines) {
this.lines = lines;
}

/**
* The number of errors.
* @return The number of errors.
*/
public int size() {
return this.errors.size();
}

@Override
public Iterator<Directive> iterator() {
return new ErrorDirectives(this.errors).iterator();
}

// @checkstyle ParameterNumberCheck (10 lines)
@Override
public void syntaxError(
Expand Down Expand Up @@ -144,17 +157,4 @@ public void syntaxError(
);
}
}

@Override
public Iterator<Directive> iterator() {
return new ErrorDirectives(this.errors).iterator();
}

/**
* The number of errors.
* @return The number of errors.
*/
public int size() {
return this.errors.size();
}
}
Loading