toExclusiveRange() {
        return new Range(this.startLineNumber, 1, this.endLineNumberExclusive, 1);
    }
@deprecated Using this function is discouraged because it might lead to bugs: The end position is not guaranteed to be a valid position!