Avoid using deprecated class

This commit is contained in:
Owen Mansel-Chan
2025-06-26 01:46:14 +01:00
parent 0f07ab58cf
commit 9663ecad21

View File

@@ -1044,7 +1044,9 @@ class DefinedType extends @definedtype, CompositeType {
* Note that this is only defined for types declared in the project being
* analyzed. It will not be defined for types declared in external packages.
*/
Type getBaseType() { result = this.getEntity().(DeclaredType).getSpec().getTypeExpr().getType() }
Type getBaseType() {
result = this.getEntity().(DeclaredTypeEntity).getSpec().getTypeExpr().getType()
}
override Method getMethod(string m) {
result = CompositeType.super.getMethod(m)