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

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()