Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ValidateSpan()

static void System.Linq.Expressions.Expression< TDelegate >.ValidateSpan ( int startLine,
int startColumn,
int endLine,
int endColumn )
inlinestaticprivateinherited

Definition at line 2420 of file Expression.cs.

2421 {
2422 if (startLine < 1)
2423 {
2424 throw Error.OutOfRange("startLine", 1);
2425 }
2426 if (startColumn < 1)
2427 {
2428 throw Error.OutOfRange("startColumn", 1);
2429 }
2430 if (endLine < 1)
2431 {
2432 throw Error.OutOfRange("endLine", 1);
2433 }
2434 if (endColumn < 1)
2435 {
2436 throw Error.OutOfRange("endColumn", 1);
2437 }
2438 if (startLine > endLine)
2439 {
2440 throw Error.StartEndMustBeOrdered();
2441 }
2443 {
2444 throw Error.StartEndMustBeOrdered();
2445 }
2446 }

References System.Linq.Expressions.Error.OutOfRange(), and System.Linq.Expressions.Error.StartEndMustBeOrdered().

Referenced by System.Linq.Expressions.Expression< TDelegate >.DebugInfo().