Determines the (transitive) origin of a function call (i.e., all anonymous function definitions within the program that can be called).
f <- function(x) { function(y) { y + x }}g <- f(2)g(3) Copy
f <- function(x) { function(y) { y + x }}g <- f(2)g(3)
g(3)
f
f(2)
Either also return the SimpleOrigin for the read of the respective variable definition.
Readonly
Determines the (transitive) origin of a function call (i.e., all anonymous function definitions within the program that can be called).
Example
g(3)
returns a FunctionCallOrigin for the anonymous function defined and returned within the body off
.f(2)
returns a FunctionCallOrigin for the anonymous function bound to f.Either also return the SimpleOrigin for the read of the respective variable definition.