qtil
advanced-security/qtil-ruby 0.0.2
Search

Predicate Cached::resolveConstant

Resolve constant access (class, module or otherwise) to a qualified module name. resolveConstantReadAccess/1 picks the best (lowest priority number) result of resolveConstantReadAccess/2 that resolves to a constant definition. If the constant definition is a Namespace then it is returned, if it’s a constant assignment then the right-hand side of the assignment is resolved.

Import path

import codeql.ruby.ast.internal.Module
string resolveConstant(ConstantReadAccess r)