function constrainPosition(lineNumber, lineLength, columnNumber)
        {
            return {
                lineNumber: lineNumber,
                columnNumber: Number.constrain(columnNumber, 0, lineLength)
            };
        }
@param {number} lineNumber
@param {number} lineLength
@param {number} columnNumber
@return {{lineNumber: number, columnNumber: number}}