function _offsetPos(pos, offset) {
        return {line: pos.line, ch: pos.ch + offset};
    }
@private

Offsets the character offset of the given {line, ch} pos by the given amount and returns a new
pos. Not for general purpose use as it does not account for line boundaries.