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

Member predicate API::Node::getField

Gets a representative for the instance field of the given name, which must include the @ character.

This can be used to find cases where a class accesses the fields used by a base class.

class A < B
  def m
    @foo # API::getTopLevelMember("B").getInstance().getField("@foo")
  end
end
Node getField(string name)