use of org.btrplace.safeplace.spec.term.SetBuilder in project scheduler by btrplace.
the class MyCstrSpecVisitor method visitSetInComprehension.
@Override
public SetBuilder<?> visitSetInComprehension(@NotNull CstrSpecParser.SetInComprehensionContext ctx) {
// Get the binder
List<UserVar<?>> v = visitTypedef(ctx.typedef());
Proposition p = Proposition.True;
if (ctx.COMMA() != null) {
p = (Proposition) visit(ctx.formula());
}
Term<?> t = (Term<?>) visit(ctx.term());
return new SetBuilder<>(t, v.get(0), p);
}
Aggregations