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

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)