System\Linq\Expressions\DebugViewWriter.cs (88)
33private Flow _flow;
73_flow = Flow.NewLine;
153Out(Flow.None, s, Flow.None);
156private void Out(Flow before, string s)
158Out(before, s, Flow.None);
161private void Out(string s, Flow after)
163Out(Flow.None, s, after);
167private void Out(Flow before, string s, Flow after)
171case Flow.None:
173case Flow.Space:
176case Flow.NewLine:
197private Flow GetFlow(Flow flow)
199Flow last = CheckBreak(_flow);
203return (Flow)System.Math.Max((int)last, (int)flow);
206private Flow CheckBreak(Flow flow)
208if ((flow & Flow.Break) != 0)
212flow = Flow.NewLine;
216flow &= ~Flow.Break;
270Out(separator.ToString(), Flow.NewLine);
289Out(close.ToString(), Flow.Break);
307Flow beforeOp = Flow.Space;
313case ExpressionType.AndAlso: op = "&&"; beforeOp = Flow.Break | Flow.Space; break;
314case ExpressionType.OrElse: op = "||"; beforeOp = Flow.Break | Flow.Space; break;
355Out("(", Flow.None);
361Out(Flow.None, ")", Flow.Break);
364Out(beforeOp, op, Flow.Space | Flow.Break);
368Out("(", Flow.None);
373Out(Flow.None, ")", Flow.Break);
430Out(") {", Flow.NewLine);
434Out(".If (", Flow.NewLine);
438Out(Flow.NewLine, ") {", Flow.NewLine);
443Out(Flow.NewLine, "} .Else {", Flow.NewLine);
447Out(Flow.NewLine, "}");
797Out(".NewArray " + node.Type.ToString(), Flow.Space);
833Out(Flow.Space, "=", Flow.Space);
841Out(Flow.Space, "=", Flow.Space);
849Out(Flow.Space, "=", Flow.Space);
867Out(Flow.Space, ".Is", Flow.Space);
870Out(Flow.Space, ".TypeEqual", Flow.Space);
916Out(".Throw", Flow.Space);
947Out(Flow.Space, ".As", Flow.Space | Flow.Break);
993Out(".Label", Flow.NewLine);
1004Out("." + node.Kind.ToString(), Flow.Space);
1005Out(GetLabelTargetName(node.Target), Flow.Space);
1006Out("{", Flow.Space);
1008Out(Flow.Space, "}");
1014Out(".Loop", Flow.Space);
1019Out(" {", Flow.NewLine);
1023Out(Flow.NewLine, "}");
1026Out("", Flow.NewLine);
1038Out("):", Flow.NewLine);
1052Out(") {", Flow.NewLine);
1056Out(".Default:", Flow.NewLine);
1068Out(Flow.NewLine, "} .Catch (" + node.Test.ToString());
1071Out(Flow.Space, "");
1076Out(") .If (", Flow.Break);
1079Out(") {", Flow.NewLine);
1088Out(".Try {", Flow.NewLine);
1095Out(Flow.NewLine, "} .Finally {", Flow.NewLine);
1102Out(Flow.NewLine, "} .Fault {", Flow.NewLine);
1108Out(Flow.NewLine, "}");
1133Out(Flow.Space, "{", Flow.NewLine);
1137Out(Flow.NewLine, "}");
1174Out(Flow.Space, "{", Flow.NewLine);
1178Out(Flow.NewLine, "}");