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

Member predicate ClassDeclaration::getScopeExpr

Gets the scope expression used in the module/class name’s scope resolution operation, if any.

In the following example, the result is the Expr for Foo.

module Foo::Bar
end

However, there is no result for the following example, since there is no scope resolution operation.

module Baz
end
Expr getScopeExpr()