public override string Pretty(int level) { var sb = new StringBuilder("InfixOp"); sb.AppendLine(); sb.AppendLine(Display.Utils.Indent(level + 1) + $"Operator: {Operator.Type}"); sb.AppendLine(Display.Utils.Indent(level + 1) + $"Left: {LeftOperand.Pretty(level + 1)}"); sb.AppendLine(Display.Utils.Indent(level + 1) + $"Right: {RightOperand.Pretty(level + 1)}"); return(sb.ToString()); }
public override string Pretty() { return($"InfixOp({Operator.Type}, {LeftOperand.Pretty()}, {RightOperand.Pretty()})"); }