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

Member predicate API::Node::getBlockParameter

Gets the block parameter of a callable that can reach this sink.

For example, this would get the &blk in the following snippet:

# API::getTopLevelMember("Foo").getMethod("bar").getArgument(0).getBlockParameter()
Foo.bar(->(&blk) {})
end
Node getBlockParameter()