mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
QL: Make Class.getType() only return ClassType
Previously this would return both the ClassCharType and ClassType
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user