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

Member predicate DataFlow::LocalSourceNode::getAnElementRead

Gets an access to the element key on this node, such as obj[:key].

Concretely this gets a call to [] where this node flows to the receiver and the first and only argument has the constant value key.

CallNode getAnElementRead(ConstantValue key)