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

Member predicate API::Node::getAMethodCall

Gets a call to a method on the receiver represented by this API node.

This is a shorthand for getMethod(method).asCall(), and thus returns a data-flow node rather than an API node.

For example:

# API::getTopLevelMember("Foo").getAMethodCall("bar")
Foo.bar
CallNode getAMethodCall(string method)