Swift: ArrayContent aliased to CollectionContent

This commit is contained in:
Robert Marsh
2023-09-14 13:08:36 +00:00
parent 20de4c625c
commit 6ad78eba05
2 changed files with 7 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
---
category: breaking
category: deprecated
---
* 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`.
* 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`.

View File

@@ -229,6 +229,11 @@ module Content {
class CollectionContent extends Content, TCollectionContent {
override string toString() { result = "Collection element" }
}
/**
* DEPRECATED: An element of a collection. This is an alias for the general CollectionContent.
*/
deprecated class ArrayContent = CollectionContent;
}
/**