Microsoft\Scripting\Ast\DebugViewWriter.cs (89)
51private Flow _flow;
98_flow = Flow.NewLine;
165Out(Flow.None, s, Flow.None);
168private void Out(Flow before, string s) {
169Out(before, s, Flow.None);
172private void Out(string s, Flow after) {
173Out(Flow.None, s, after);
176private void Out(Flow before, string s, Flow after) {
178case Flow.None:
180case Flow.Space:
183case Flow.NewLine:
201private Flow GetFlow(Flow flow) {
202Flow last;
208return (Flow)System.Math.Max((int)last, (int)flow);
211private Flow CheckBreak(Flow flow) {
212if ((flow & Flow.Break) != 0) {
214flow = Flow.NewLine;
216flow &= ~Flow.Break;
298Out(separator.ToString(), Flow.NewLine);
317Out(close.ToString(), Flow.Break);
321Out(".Dynamic", Flow.Space);
340Flow beforeOp = Flow.Space;
345case ExpressionType.AndAlso: op = "&&"; beforeOp = Flow.Break | Flow.Space; break;
346case ExpressionType.OrElse: op = "||"; beforeOp = Flow.Break | Flow.Space; break;
386Out("(", Flow.None);
391Out(Flow.None, ")", Flow.Break);
402Out(beforeOp, op, Flow.Space | Flow.Break);
405Out("(", Flow.None);
409Out(Flow.None, ")", Flow.Break);
465Out(") {", Flow.NewLine);
467Out(".If (", Flow.NewLine);
471Out(Flow.NewLine, ") {", Flow.NewLine);
476Out(Flow.NewLine, "} .Else {", Flow.NewLine);
480Out(Flow.NewLine, "}");
794Out(".NewArray " + node.Type.ToString(), Flow.Space);
823Out(Flow.Space, "=", Flow.Space);
830Out(Flow.Space, "=", Flow.Space);
837Out(Flow.Space, "=", Flow.Space);
852Out(Flow.Space, ".Is", Flow.Space);
855Out(Flow.Space, ".TypeEqual", Flow.Space);
897Out(".Throw", Flow.Space);
927Out(Flow.Space, ".As", Flow.Space | Flow.Break);
969Out(".Label", Flow.NewLine);
979Out("." + node.Kind.ToString(), Flow.Space);
980Out(GetLabelTargetName(node.Target), Flow.Space);
981Out("{", Flow.Space);
983Out(Flow.Space, "}");
988Out(".Loop", Flow.Space);
992Out(" {", Flow.NewLine);
996Out(Flow.NewLine, "}");
998Out("", Flow.NewLine);
1008Out("):", Flow.NewLine);
1021Out(") {", Flow.NewLine);
1024Out(".Default:", Flow.NewLine);
1035Out(Flow.NewLine, "} .Catch (" + node.Test.ToString());
1037Out(Flow.Space, "");
1041Out(") .If (", Flow.Break);
1044Out(") {", Flow.NewLine);
1052Out(".Try {", Flow.NewLine);
1058Out(Flow.NewLine, "} .Finally {", Flow.NewLine);
1063Out(Flow.NewLine, "} .Fault {", Flow.NewLine);
1069Out(Flow.NewLine, "}");
1088Out(Flow.Space, "{", Flow.NewLine);
1092Out(Flow.NewLine, "}");
1136Out(Flow.Space, "{", Flow.NewLine);
1140Out(Flow.NewLine, "}");