feat: add getASupertype() predicate in ValueOrRefType.

Add the getASupertype() predicate in ValueOrRefType.
This commit is contained in:
Hugo
2025-07-10 02:19:17 +02:00
committed by GitHub
parent 5722084dd5
commit fb693837e4

View File

@@ -138,6 +138,9 @@ class ValueOrRefType extends Type, Attributable, @value_or_ref_type {
/** Gets an immediate subtype of this type, if any. */
ValueOrRefType getASubType() { result.getABaseType() = this }
/** Gets an immediate supertype of this type, if any. */
ValueOrRefType getASupertype() { this.getABaseType() = result }
/** Gets a member of this type, if any. */
Member getAMember() { result.getDeclaringType() = this }