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

◆ VisitGoto()

override Expression System.Linq.EnumerableRewriter.VisitGoto ( GotoExpression node)
inlineprotectedvirtual

Reimplemented from System.Linq.Expressions.ExpressionVisitor.

Definition at line 412 of file EnumerableRewriter.cs.

413 {
414 Type type = node.Value.Type;
415 if (!typeof(IQueryable).IsAssignableFrom(type))
416 {
417 return base.VisitGoto(node);
418 }
419 LabelTarget target = VisitLabelTarget(node.Target);
421 return Expression.MakeGoto(node.Kind, target, expression, GetEquivalentType(typeof(EnumerableQuery).IsAssignableFrom(type) ? expression.Type : type));
422 }
override LabelTarget VisitLabelTarget(LabelTarget node)
virtual ? Expression Visit(Expression? node)
static GotoExpression MakeGoto(GotoExpressionKind kind, LabelTarget target, Expression? value, Type type)

References System.Linq.EnumerableRewriter.GetEquivalentType(), System.Linq.Expressions.Expression< TDelegate >.MakeGoto(), System.type, System.Linq.Expressions.ExpressionVisitor.Visit(), and System.Linq.EnumerableRewriter.VisitLabelTarget().