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

Predicate TypeTrackingInput::returnStep

Holds if nodeFrom steps to nodeTo by being returned from a call.

Flow out of summarized library methods is not included, as that will lead to negative recursion (or, at best, terrible performance), since identifying calls to library methods is done using API graphs (which uses type tracking).

Import path

import codeql.ruby.typetracking.internal.TypeTrackingImpl
predicate returnStep(Node nodeFrom, LocalSourceNode nodeTo)