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

Predicate API::getTopLevelMember

Gets an access to the top-level constant name.

To access nested constants, use getMember() on the resulting node. For example, for nodes corresponding to the class Gem::Version, use getTopLevelMember("Gem").getMember("Version").

Import path

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