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

Member predicate DataFlow::LocalSourceNode::getAnElementWriteValue

Gets the x in obj[key] = x, where this node flows to obj.

Concretely, this gets the second argument from any call to []= where this node flows to the receiver and the first argument has constant value key.

Node getAnElementWriteValue(ConstantValue key)