File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
swift/ql/lib/codeql/swift/elements/decl Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -109,13 +109,13 @@ class TypeDecl extends Generated::TypeDecl {
109
109
cached
110
110
string getFullName ( ) {
111
111
not this .getEnclosingDecl ( ) instanceof TypeDecl and
112
- not this .getEnclosingDecl ( ) instanceof ExtensionDecl and
112
+ not count ( this .getEnclosingDecl ( ) . ( ExtensionDecl ) . getExtendedTypeDecl ( ) ) = 1 and
113
113
result = this .getName ( )
114
114
or
115
115
result = this .getEnclosingDecl ( ) .( TypeDecl ) .getFullName ( ) + "." + this .getName ( )
116
116
or
117
117
result =
118
- this .getEnclosingDecl ( ) .( ExtensionDecl ) .getExtendedTypeDecl ( ) . getFullName ( ) + "." +
119
- this .getName ( )
118
+ unique ( NominalTypeDecl td | td = this .getEnclosingDecl ( ) .( ExtensionDecl ) .getExtendedTypeDecl ( ) )
119
+ . getFullName ( ) + "." + this .getName ( )
120
120
}
121
121
}
You can’t perform that action at this time.
0 commit comments