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

◆ VisitSwitch()

override Expression System.Linq.Expressions.DebugViewWriter.VisitSwitch ( SwitchExpression node)
inlinepackagevirtual

Reimplemented from System.Linq.Expressions.ExpressionVisitor.

Definition at line 1007 of file DebugViewWriter.cs.

1008 {
1009 Out(".Switch ");
1010 Out("(");
1011 Visit(node.SwitchValue);
1012 Out(") {", Flow.NewLine);
1013 ExpressionVisitor.Visit(node.Cases, VisitSwitchCase);
1014 if (node.DefaultBody != null)
1015 {
1016 Out(".Default:", Flow.NewLine);
1017 Indent();
1018 Indent();
1019 Visit(node.DefaultBody);
1020 Dedent();
1021 Dedent();
1022 NewLine();
1023 }
1024 Out("}");
1025 return node;
1026 }
override SwitchCase VisitSwitchCase(SwitchCase node)
virtual ? Expression Visit(Expression? node)

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