Search in sources :

Example 1 with DeclareLocalFunExpr

use of suite.jdk.gen.FunExprL.DeclareLocalFunExpr in project suite by stupidsing.

the class FunFactory method declare.

public FunExpr declare(FunExpr value, Iterate<FunExpr> doFun) {
    PlaceholderFunExpr var = new PlaceholderFunExpr();
    DeclareLocalFunExpr expr = new DeclareLocalFunExpr();
    expr.var = var;
    expr.value = value;
    expr.do_ = doFun.apply(var);
    return expr;
}
Also used : DeclareLocalFunExpr(suite.jdk.gen.FunExprL.DeclareLocalFunExpr) PlaceholderFunExpr(suite.jdk.gen.FunExprK.PlaceholderFunExpr)

Aggregations

PlaceholderFunExpr (suite.jdk.gen.FunExprK.PlaceholderFunExpr)1 DeclareLocalFunExpr (suite.jdk.gen.FunExprL.DeclareLocalFunExpr)1