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

◆ VisitAndConvert< T >() [2/2]

T? System.Linq.Expressions.ExpressionVisitor.VisitAndConvert< T > ( T? node,
string? callerName )
inlineinherited
Type Constraints
T :Expression 

Definition at line 86 of file ExpressionVisitor.cs.

87 {
88 if (node == null)
89 {
90 return null;
91 }
92 node = Visit(node) as T;
93 if (node == null)
94 {
95 throw Error.MustRewriteToSameNode(callerName, typeof(T), callerName);
96 }
97 return node;
98 }
virtual ? Expression Visit(Expression? node)

References System.Linq.Expressions.Error.MustRewriteToSameNode(), System.T, and System.Linq.Expressions.ExpressionVisitor.Visit().