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

◆ VisitTry()

override Expression System.Linq.Expressions.DebugViewWriter.VisitTry ( TryExpression node)
inlinepackagevirtual

Reimplemented from System.Linq.Expressions.ExpressionVisitor.

Definition at line 1048 of file DebugViewWriter.cs.

1049 {
1050 Out(".Try {", Flow.NewLine);
1051 Indent();
1052 Visit(node.Body);
1053 Dedent();
1054 ExpressionVisitor.Visit(node.Handlers, VisitCatchBlock);
1055 if (node.Finally != null)
1056 {
1057 Out(Flow.NewLine, "} .Finally {", Flow.NewLine);
1058 Indent();
1059 Visit(node.Finally);
1060 Dedent();
1061 }
1062 else if (node.Fault != null)
1063 {
1064 Out(Flow.NewLine, "} .Fault {", Flow.NewLine);
1065 Indent();
1066 Visit(node.Fault);
1067 Dedent();
1068 }
1069 Out(Flow.NewLine, "}");
1070 return node;
1071 }
override CatchBlock VisitCatchBlock(CatchBlock node)
virtual ? Expression Visit(Expression? node)

References System.Linq.Expressions.DebugViewWriter.Dedent(), System.Linq.Expressions.DebugViewWriter.Indent(), System.Reflection.Out, System.Linq.Expressions.ExpressionVisitor.Visit(), and System.Linq.Expressions.DebugViewWriter.VisitCatchBlock().