Search in sources :

Example 1 with Next

use of com.cloudbees.groovy.cps.Next in project groovy-cps by cloudbees.

the class CpsClosureDef method invoke.

@Override
Next invoke(Env caller, SourceLocation loc, Object receiver, List<?> args, Continuation k) {
    Env e = new ClosureCallEnv(caller, k, loc, capture, self);
    assignArguments(args, e);
    return new Next(body, e, k);
}
Also used : Next(com.cloudbees.groovy.cps.Next) Env(com.cloudbees.groovy.cps.Env)

Example 2 with Next

use of com.cloudbees.groovy.cps.Next in project groovy-cps by cloudbees.

the class CpsFunction method invoke.

public Next invoke(Env caller, SourceLocation loc, Object receiver, List<?> args, Continuation k) {
    Env e = new FunctionCallEnv(caller, k, loc, receiver);
    assignArguments(args, e);
    return new Next(body, e, k);
}
Also used : Next(com.cloudbees.groovy.cps.Next) Env(com.cloudbees.groovy.cps.Env)

Aggregations

Env (com.cloudbees.groovy.cps.Env)2 Next (com.cloudbees.groovy.cps.Next)2