qtil
advanced-security/qtil-ruby 0.0.2
Search

Member predicate API::Node::asSink

Gets a data-flow node where this value leaves the current codebase and flows into an external library (or in general, any external codebase).

Concretely, this corresponds to an argument passed to a call to external code.

For example:

# 'x' is found by:
# API::getTopLevelMember("Foo").getMethod("bar").getParameter(0).asSink()
Foo.bar(x)

Foo.bar(-> {
  # 'x' is found by:
  # API::getTopLevelMember("Foo").getMethod("bar").getParameter(0).getReturn().asSink()
  x
})
Node asSink()