diff --git a/eo-parser/src/main/java/org/eolang/parser/errors/EoParserErrors.java b/eo-parser/src/main/java/org/eolang/parser/errors/EoParserErrors.java index d0f22ff7cf..6c4aad966d 100644 --- a/eo-parser/src/main/java/org/eolang/parser/errors/EoParserErrors.java +++ b/eo-parser/src/main/java/org/eolang/parser/errors/EoParserErrors.java @@ -73,6 +73,19 @@ private EoParserErrors(final List 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 iterator() { + return new ErrorDirectives(this.errors).iterator(); + } + // @checkstyle ParameterNumberCheck (10 lines) @Override public void syntaxError( @@ -144,17 +157,4 @@ public void syntaxError( ); } } - - @Override - public Iterator iterator() { - return new ErrorDirectives(this.errors).iterator(); - } - - /** - * The number of errors. - * @return The number of errors. - */ - public int size() { - return this.errors.size(); - } }