public class ELambda extends SimplifiableExpression {
public Case[] cases;
- Type effect = Types.NO_EFFECTS;
+ public Type effect = Types.NO_EFFECTS;
public ELambda(Case[] cases) {
this.cases = cases;
this.cases = cases;
}
+ public ELambda(long loc, Type effect, Case ... cases) {
+ super(loc);
+ this.cases = cases;
+ this.effect = effect;
+ }
+
public ELambda(long loc, Expression pat, Expression exp) {
this(loc, new Case(new Expression[] {pat}, exp));
}