Class FromBuilder

java.lang.Object
net.hydromatic.morel.ast.FromBuilder

public class FromBuilder extends Object
Builds a Core.From.

Simplifies the following patterns:

  • Converts "from v in list" to "list" (only works in buildSimplify(), not build());
  • Removes "where true" steps;
  • Removes empty "order" steps;
  • Removes trivial yield, e.g. "from v in list where condition yield v" becomes "from v in list where condition";
  • Inlines from expressions, e.g. "from v in (from w in list)" becomes "from w in list yield {v = w}".