We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c28fae commit fc65160Copy full SHA for fc65160
swift/ql/lib/codeql/swift/elements/decl/MethodDecl.qll
@@ -32,16 +32,9 @@ class MethodDecl extends AbstractFunctionDecl {
32
cached
33
predicate hasQualifiedName(string typeName, string funcName) {
34
this.getName() = funcName and
35
- (
36
- exists(NominalTypeDecl c |
37
- c.getFullName() = typeName and
38
- c.getAMember() = this
39
- )
40
- or
41
- exists(ExtensionDecl e |
42
- e.getExtendedTypeDecl().getFullName() = typeName and
43
- e.getAMember() = this
44
+ exists(Decl d |
+ d.asNominalTypeDecl().getFullName() = typeName and
+ d.getAMember() = this
45
)
46
}
47
0 commit comments