dbalek commented on code in PR #8206: URL: https://github.com/apache/netbeans/pull/8206#discussion_r1934243093
########## ide/parsing.indexing/src/org/netbeans/modules/parsing/spi/indexing/ErrorsCache.java: ########## @@ -82,6 +94,62 @@ public static interface Convertor<T> { public String getMessage(T t); } + /**Position in a text expressed as 1-based line and character offset. + * @since 9.39 + */ + public static final class Position { + private int line; + private int column; + + public Position(int line, int column) { + this.line = line; + this.column = column; + } + + public int getLine() { + return line; + } + + public int getColumn() { + return column; + } + } + + /**Range in a text expressed as (1-based) start and end positions. + * @since 9.39 + */ + public static final class Range { + private Position start; + private Position end; + + public Range(Position start, Position end) { + this.start = start; + this.end = end; + } + + public Position getStart() { + return start; + } + + public Position getEnd() { + return end; + } + } + + /**Getter for properties of the given error description including the range. + * @since 9.39 + */ + public static interface Convertor2<T> extends Convertor<T> { + public Range getRange(T t); + } Review Comment: Fixed. Thanks for pointing this out. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org For additional commands, e-mail: notifications-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists