getParameterAtSourceIndex

Finds the parameter corresponding to the argument at the given source index in this function call. The argument can be either named or positional, and the lookup happens against the provided function documentation.

Return

the parameter corresponding to the argument, if any

Parameters

function

the documented function whose parameters are to be searched

index

the source index where the argument appears