Skip to content

Commit 0b66be5

Browse files
committed
Swift: restore ArrayElement as an alias for CollectionElement
1 parent 43ca192 commit 0b66be5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

swift/ql/lib/codeql/swift/dataflow/ExternalFlow.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,9 @@ predicate parseContent(AccessPathToken component, Content content) {
497497
or
498498
parseEnum(component, content)
499499
or
500+
component.getName() = "ArrayElement" and
501+
content instanceof Content::CollectionContent
502+
or
500503
component.getName() = "CollectionElement" and
501504
content instanceof Content::CollectionContent
502505
}

0 commit comments

Comments
 (0)