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);
}
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);
}