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

Member predicate API::Node::getBlock

Gets the block argument to this call, or the block parameter of this callable.

Note: this predicate may refer to either an argument or a parameter. When referring to a block parameter, it is recommended to use getBlockParameter() instead.

For example:

Foo.bar do |x| # API::getTopLevelMember("Foo").getMethod("bar").getBlock().getParameter(0)
end
Node getBlock()