Skip to content

Commit 6ad78eb

Browse files
committed
Swift: ArrayContent aliased to CollectionContent
1 parent 20de4c6 commit 6ad78eb

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
category: breaking
2+
category: deprecated
33
---
44

5-
* The `ArrayContent` type in the data flow library has been removed and its uses have been replaced with the `CollectionContent` type, to better reflect the hierarchy of the Swift standard library. Uses of `ArrayElement` in model files will be interpreted as referring to `CollectionContent`.
5+
* The `ArrayContent` type in the data flow library has been deprecated and made an alias for the `CollectionContent` type, to better reflect the hierarchy of the Swift standard library. Uses of `ArrayElement` in model files will be interpreted as referring to `CollectionContent`.

swift/ql/lib/codeql/swift/dataflow/internal/DataFlowPublic.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,11 @@ module Content {
229229
class CollectionContent extends Content, TCollectionContent {
230230
override string toString() { result = "Collection element" }
231231
}
232+
233+
/**
234+
* DEPRECATED: An element of a collection. This is an alias for the general CollectionContent.
235+
*/
236+
deprecated class ArrayContent = CollectionContent;
232237
}
233238

234239
/**

0 commit comments

Comments
 (0)