@Override
  public int compareTo(TextPosition other) {
    if (line != other.line) return line - other.line;
    return column - other.column;
  }
Creates a new TextPosition instance.

@param line the position's line number
@param column the position's column number
@throws IllegalArgumentException if line or column is less than 1
spock-core/src/main/java/org/spockframework/runtime/model/TextPosition.java