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 931b27f commit 515e935Copy full SHA for 515e935
swift/ql/lib/codeql/swift/elements/decl/ExtensionDecl.qll
@@ -2,9 +2,10 @@ private import codeql.swift.generated.decl.ExtensionDecl
2
3
class ExtensionDecl extends Generated::ExtensionDecl {
4
override string toString() {
5
- result = "extension of " + this.getExtendedTypeDecl().toString()
+ result =
6
+ "extension of " + unique(NominalTypeDecl td | td = this.getExtendedTypeDecl()).toString()
7
or
- not exists(this.getExtendedTypeDecl()) and
8
+ count(this.getExtendedTypeDecl()) != 1 and
9
result = "extension"
10
}
11
0 commit comments