Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
CodeQL library for Ruby
codeql/ruby-all 4.1.6 (changelog, source)

Member predicate DataFlow::ConstRef::getADescendentModule

Gets a module that transitively subclasses, includes, or prepends the module referred to by this constant.

For example, DataFlow::getConstant("A").getADescendentModule() finds B, C, and E:

class B < A
end

class C < B
end

module E
  include C
end
ModuleNode getADescendentModule()