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

Predicate signature LocalNameBindingInputSig::lookupStartsAt

Holds if the access candidate n should begin its lookup in scope instead of its immediately enclosing scope.

For example, the this variable in an instance field initializer might need to be resolved relative to a constructor body.

If scope declares a local with the name of n, then scope is guaranteed to be the scope that n ultimately resolves to. This can thus be used to take full control of scope resolution for specific types of references.

signature predicate lookupStartsAt(AstNode n, AstNode scope)