Lines Matching refs:closure

92      * A closure represents a function call to a kernel or invocable function,
93 * combined with arguments and values for global variables. A closure is
265 // If the field is not bound to this closure, this will return a future
330 * A future represents an output of a closure, either the return value of
341 Future(Closure closure, Script.FieldID fieldID, Object value) {
342 mClosure = closure;
365 // arguments for the referencing closure.
374 void addReference(Closure closure, int index) {
375 mArgIndex.add(Pair.create(closure, Integer.valueOf(index)));
378 void addReference(Closure closure, Script.FieldID fieldID) {
379 mFieldID.add(Pair.create(closure, fieldID));
385 Closure closure = p.first;
387 closure.setArg(index, value);
390 Closure closure = p.first;
392 closure.setGlobal(fieldID, value);
856 * kernel or invocable function. Used in closure creation.
892 * A closure is a function call to a kernel or
897 * A future is the output of a closure, either the return value of the
902 * When a closure is created, futures from previously created closures
911 * 1) a closure must be evaluated before any other closures that take its
913 * 2) all closures added before an invoke closure must be evaluated
915 * and 3) all closures added after an invoke closure must be evaluated after
940 * Adds a closure for a kernel
946 * @return a closure
957 * Adds a closure for an invocable function
962 * @return a closure
985 * Adds a closure for a kernel
989 * @return a closure
1002 * Adds a closure for an invocable function
1006 * @return a closure