Find all variables accessed by this delegate that are in functions enclosing it.
function
array to append found variables to
Find all variables accessed by this delegate that are in functions enclosing it.