CodeQL library for JavaScript

Member predicate API::Node::getAUse

Gets a data-flow node corresponding to a use of the API component represented by this node.

For example, require('fs').readFileSync is a use of the function readFileSync from the fs module, and require('fs').readFileSync(file) is a use of the return of that function.

This includes indirect uses found via data flow, meaning that in f(; function f(x) {}; both and x are uses of the foo member from obj.

As another example, in the assignment exports.plusOne = (x) => x+1 the two references to x are uses of the first parameter of plusOne.

Node getAUse()