QL: Make Class.getType() only return ClassType

Previously this would return both the ClassCharType and ClassType
This commit is contained in:
Asger F
2023-03-27 13:38:23 +02:00
parent 907053f281
commit 0aceedac78

View File

@@ -972,7 +972,7 @@ class Class extends TClass, TypeDeclaration, ModuleDeclaration {
}
/** Gets the class type defined by this class declaration. */
Type getType() { result.getDeclaration() = this }
ClassType getType() { result.getDeclaration() = this }
override AstNode getAChild(string pred) {
result = super.getAChild(pred)