mirror of
https://github.com/github/codeql.git
synced 2026-04-24 00:05:14 +02:00
feat: add getASupertype() predicate in ValueOrRefType.
Add the getASupertype() predicate in ValueOrRefType.
This commit is contained in:
@@ -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 }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user