@@ -49,14 +49,14 @@ private class UrlLaunchOptionsRemoteFlowSource extends RemoteFlowSource {
4949private class ApplicationWithLaunchOptionsFunc extends Function {
5050 ApplicationWithLaunchOptionsFunc ( ) {
5151 this .getName ( ) = "application(_:" + [ "did" , "will" ] + "FinishLaunchingWithOptions:)" and
52- this .getEnclosingDecl ( ) .( ClassOrStructDecl ) .getABaseTypeDecl * ( ) .( ProtocolDecl ) .getName ( ) =
52+ this .getEnclosingDecl ( ) .asNominalTypeDecl ( ) .getABaseTypeDecl * ( ) .( ProtocolDecl ) .getName ( ) =
5353 "UIApplicationDelegate"
5454 }
5555}
5656
5757private class LaunchOptionsUrlVarDecl extends VarDecl {
5858 LaunchOptionsUrlVarDecl ( ) {
59- this .getEnclosingDecl ( ) .( StructDecl ) .getFullName ( ) = "UIApplication.LaunchOptionsKey" and
59+ this .getEnclosingDecl ( ) .asNominalTypeDecl ( ) .getFullName ( ) = "UIApplication.LaunchOptionsKey" and
6060 this .getName ( ) = "url"
6161 }
6262}
@@ -68,7 +68,7 @@ private class UiOpenUrlContextUrlInheritTaint extends TaintInheritingContent,
6868 DataFlow:: Content:: FieldContent
6969{
7070 UiOpenUrlContextUrlInheritTaint ( ) {
71- this .getField ( ) .getEnclosingDecl ( ) .( NominalTypeDecl ) .getName ( ) = "UIOpenURLContext" and
71+ this .getField ( ) .getEnclosingDecl ( ) .asNominalTypeDecl ( ) .getName ( ) = "UIOpenURLContext" and
7272 this .getField ( ) .getName ( ) = "url"
7373 }
7474}
@@ -80,7 +80,7 @@ private class UserActivityUrlInheritTaint extends TaintInheritingContent,
8080 DataFlow:: Content:: FieldContent
8181{
8282 UserActivityUrlInheritTaint ( ) {
83- this .getField ( ) .getEnclosingDecl ( ) .( NominalTypeDecl ) .getName ( ) = "NSUserActivity" and
83+ this .getField ( ) .getEnclosingDecl ( ) .asNominalTypeDecl ( ) .getName ( ) = "NSUserActivity" and
8484 this .getField ( ) .getName ( ) = "webpageURL"
8585 }
8686}
@@ -93,7 +93,7 @@ private class ConnectionOptionsFieldsInheritTaint extends TaintInheritingContent
9393 DataFlow:: Content:: FieldContent
9494{
9595 ConnectionOptionsFieldsInheritTaint ( ) {
96- this .getField ( ) .getEnclosingDecl ( ) .( NominalTypeDecl ) .getName ( ) = "ConnectionOptions" and
96+ this .getField ( ) .getEnclosingDecl ( ) .asNominalTypeDecl ( ) .getName ( ) = "ConnectionOptions" and
9797 this .getField ( ) .getName ( ) = [ "userActivities" , "urlContexts" ]
9898 }
9999}
0 commit comments