use of ast.Ast.VarDecE in project L42 by ElvisResearchGroup.
the class Desugar method getBlock.
static RoundBlock getBlock(Position p, Expression xe, Expression inner) {
List<Expression.BlockContent> bc = new ArrayList<>();
List<VarDec> decs = new ArrayList<VarDec>();
decs.add(new VarDecE(xe));
bc.add(new Expression.BlockContent(decs, Collections.emptyList()));
return new RoundBlock(p, Doc.empty(), inner, bc);
}
use of ast.Ast.VarDecE in project L42 by ElvisResearchGroup.
the class Desugar method getBlockContent.
public static Expression.BlockContent getBlockContent(Expression e) {
List<VarDec> single = new ArrayList<VarDec>();
single.add(new VarDecE(e));
return new Expression.BlockContent(single, Collections.emptyList());
}
Aggregations