Returns an XPath predicate that restricts matches to nodes whose innermost
enclosing function body does not also contain a call to any of funs. This
is how a check enforces a guard, for instance that an options() call is
paired with an on.exit() in the same function.
Details
The predicate anchors on ancestor::expr[FUNCTION][1], the nearest function
definition, and searches its whole subtree. Anchoring on the innermost
function keeps it correct where the guard belongs to an inner function rather
than an outer one, and covers a call sitting in a default argument as well as
one in the body.