qtil
advanced-security/qtil-ruby 0.0.2
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()