qtil
advanced-security/qtil-ruby 0.0.2
Search

Predicate API::getTopLevelMember

Gets a node corresponding to a top-level member m (typically a module).

This is equivalent to root().getAMember("m").

Note: You should only use this predicate for top level modules or classes. If you want nodes corresponding to a nested module or class, you should use .getMember on the parent module/class. For example, for nodes corresponding to the class Gem::Version, use getTopLevelMember("Gem").getMember("Version").

Import path

import codeql.ruby.ApiGraphs
Node getTopLevelMember(string m)