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

Member predicate API::Node::getAnImmediateSubclass

Gets a node representing a direct subclass of the class represented by this node.

class A; end
class B < A; end
class C < B; end

In the example above, getMember("A").getAnImmediateSubclass() will return uses of B only.

Node getAnImmediateSubclass()