private string Decompile(IExpression expression) { StringWriter writer = new StringWriter(); IVisitor decompiler = new DecompileVisitor(writer); expression.Accept(decompiler); writer.Close(); return(writer.ToString()); }
private string Decompile(ICommand command) { StringWriter writer = new StringWriter(); IVisitor decompiler = new DecompileVisitor(writer); command.Accept(decompiler); writer.Close(); return(writer.ToString()); }