public static Ex Flatten(Ex ex, bool reduceMethod = true, bool reduceField = true) { var fv = new FlattenVisitor(reduceMethod, reduceField); ex = fv.Visit(ex); return(ex); }
public static Ex Flatten(this TEx ex) => FlattenVisitor.Flatten(ex);
public static Ex Flatten(this Ex ex, bool reduceMethod = true) => FlattenVisitor.Flatten(ex, reduceMethod);