From d4d76c87c924035fcd9b041ac74fd1a75842e6bf Mon Sep 17 00:00:00 2001 From: JCSoohwancho Date: Thu, 15 Jun 2023 15:19:55 +0900 Subject: [PATCH] mark designated initializer with usableFromInline --- .../Internals.DiffableDataUIDispatcher.Changeset.swift | 2 +- .../Internals.DiffableDataUIDispatcher.DiffResult.swift | 8 ++++---- ...ternals.DiffableDataUIDispatcher.StagedChangeset.swift | 2 +- Sources/Internals.DiffableDataUIDispatcher.swift | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Sources/Internals.DiffableDataUIDispatcher.Changeset.swift b/Sources/Internals.DiffableDataUIDispatcher.Changeset.swift index bc972be4..213cde6e 100644 --- a/Sources/Internals.DiffableDataUIDispatcher.Changeset.swift +++ b/Sources/Internals.DiffableDataUIDispatcher.Changeset.swift @@ -48,7 +48,7 @@ extension Internals.DiffableDataUIDispatcher { var elementUpdated: [ElementPath] var elementMoved: [(source: ElementPath, target: ElementPath)] - @inlinable + @usableFromInline init( data: C, sectionDeleted: [Int] = [], diff --git a/Sources/Internals.DiffableDataUIDispatcher.DiffResult.swift b/Sources/Internals.DiffableDataUIDispatcher.DiffResult.swift index 200fb2e4..dc487168 100644 --- a/Sources/Internals.DiffableDataUIDispatcher.DiffResult.swift +++ b/Sources/Internals.DiffableDataUIDispatcher.DiffResult.swift @@ -190,7 +190,7 @@ extension Internals.DiffableDataUIDispatcher { // MARK: Private - @inlinable + @usableFromInline internal init( deleted: [Index] = [], inserted: [Index] = [], @@ -224,7 +224,7 @@ extension Internals.DiffableDataUIDispatcher { @usableFromInline internal var isTracked = false - @inlinable + @usableFromInline init() {} } @@ -252,7 +252,7 @@ extension Internals.DiffableDataUIDispatcher { @usableFromInline internal var position = 0 - @inlinable + @usableFromInline internal init(_ indices: ContiguousArray) { self.indices = indices @@ -292,7 +292,7 @@ extension Internals.DiffableDataUIDispatcher { @usableFromInline internal let pointer: UnsafePointer - @inlinable + @usableFromInline internal init(pointer: UnsafePointer) { self.pointeeHashValue = pointer.pointee.hashValue diff --git a/Sources/Internals.DiffableDataUIDispatcher.StagedChangeset.swift b/Sources/Internals.DiffableDataUIDispatcher.StagedChangeset.swift index 9d533b34..ce86cf49 100644 --- a/Sources/Internals.DiffableDataUIDispatcher.StagedChangeset.swift +++ b/Sources/Internals.DiffableDataUIDispatcher.StagedChangeset.swift @@ -40,7 +40,7 @@ extension Internals.DiffableDataUIDispatcher { @usableFromInline var changesets: ContiguousArray> - @inlinable + @usableFromInline init(_ changesets: S) where S.Element == Changeset { self.changesets = ContiguousArray(changesets) diff --git a/Sources/Internals.DiffableDataUIDispatcher.swift b/Sources/Internals.DiffableDataUIDispatcher.swift index acde1bf9..b3f02370 100644 --- a/Sources/Internals.DiffableDataUIDispatcher.swift +++ b/Sources/Internals.DiffableDataUIDispatcher.swift @@ -221,7 +221,7 @@ extension Internals { @usableFromInline var section: Int - @inlinable + @usableFromInline init(element: Int, section: Int) { self.element = element