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

Member predicate ClassDeclaration::getSuperclassExpr

Gets the Expr used as the superclass in the class definition, if any.

In the following example, the result is a ConstantReadAccess.

class Foo < Bar
end

In the following example, where the superclass is a call expression, the result is a Call.

class C < foo()
end
Expr getSuperclassExpr()