System.Linq.Expressions.Expression.ValidateSpan C# (CSharp) Method

ValidateSpan() private static method

private static ValidateSpan ( int startLine, int startColumn, int endLine, int endColumn ) : void
startLine int
startColumn int
endLine int
endColumn int
return void
        private static void ValidateSpan(int startLine, int startColumn, int endLine, int endColumn)
        {
            if (startLine < 1)
            {
                throw Error.OutOfRange(nameof(startLine), 1);
            }
            if (startColumn < 1)
            {
                throw Error.OutOfRange(nameof(startColumn), 1);
            }
            if (endLine < 1)
            {
                throw Error.OutOfRange(nameof(endLine), 1);
            }
            if (endColumn < 1)
            {
                throw Error.OutOfRange(nameof(endColumn), 1);
            }
            if (startLine > endLine)
            {
                throw Error.StartEndMustBeOrdered();
            }
            if (startLine == endLine && startColumn > endColumn)
            {
                throw Error.StartEndMustBeOrdered();
            }
        }
    }
Expression