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.
2 parents 5b0d4ce + efea11f commit 7fa9157Copy full SHA for 7fa9157
swift/ql/lib/codeql/swift/frameworks/StandardLibrary/CustomUrlSchemes.qll
@@ -56,7 +56,9 @@ private class ApplicationWithLaunchOptionsFunc extends Function {
56
57
private class LaunchOptionsUrlVarDecl extends VarDecl {
58
LaunchOptionsUrlVarDecl() {
59
- this.getEnclosingDecl().asNominalTypeDecl().getFullName() = "UIApplication.LaunchOptionsKey" and
+ // ideally this would be the more accurate, but currently less robust:
60
+ // this.getEnclosingDecl().asNominalTypeDecl().getFullName() = "UIApplication.LaunchOptionsKey" and
61
+ this.getType().(NominalType).getFullName() = "UIApplication.LaunchOptionsKey" and
62
this.getName() = "url"
63
}
64
0 commit comments