Member predicate CallGraph::ReflectiveCallSite::getArgumentNode

Gets the data flow node corresponding to the ith argument passed to the callee invoked at this call site.

For direct calls, this is the ith argument to the call itself: for instance, for a call f(x, y), the 0th argument node is x and the first argument node is y.

For reflective calls using call, the 0th argument to the call denotes the receiver, so argument positions are shifted by one: for instance, for a call f.call(x, y, z), the 0th argument node is y and the first argument node is z, while x is not an argument node at all.

Note that this predicate is not defined for arguments following a spread argument: for instance, for a call f(x, ...y, z), the 0th argument node is x, but the position of z cannot be determined, hence there are no first and second argument nodes.

AnalyzedNode getArgumentNode(int i)