coords method

(int, int, int) coords()

coords returns the line x column of this highlight.

Implementation

(int, int, int) coords() {
  for (var i = lineStart; i <= lineEnd; i++) {
    final hl = lines[i];
    if (hl == null) continue;
    return (i, hl.$1, hl.$2);
  }
  return (lineStart, 0, 0);
}