CodeQL library for Ruby
codeql/ruby-all 0.8.15-dev (changelog, source)
Search

Member predicate DataFlow::ModuleNode::trackInstance

Starts tracking instances of this module forward using API graphs.

Concretely, this tracks forward from the following starting points:

  • self in instance methods of this module and ancestor modules
  • Calls to new on the module object

Note that this includes references to self in ancestor modules, but not in descendent modules. This is usually the desired behavior, particularly if this module was itself found using a call to getADescendentModule().

Node trackInstance()