Skip to content

Commit

Permalink
mark designated initializer with usableFromInline
Browse files Browse the repository at this point in the history
  • Loading branch information
JCSooHwanCho committed Jun 15, 2023
1 parent 118bb68 commit d4d76c8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Sources/Internals.DiffableDataUIDispatcher.Changeset.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ extension Internals.DiffableDataUIDispatcher {
var elementUpdated: [ElementPath]
var elementMoved: [(source: ElementPath, target: ElementPath)]

@inlinable
@usableFromInline
init(
data: C,
sectionDeleted: [Int] = [],
Expand Down
8 changes: 4 additions & 4 deletions Sources/Internals.DiffableDataUIDispatcher.DiffResult.swift
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ extension Internals.DiffableDataUIDispatcher {

// MARK: Private

@inlinable
@usableFromInline
internal init(
deleted: [Index] = [],
inserted: [Index] = [],
Expand Down Expand Up @@ -224,7 +224,7 @@ extension Internals.DiffableDataUIDispatcher {
@usableFromInline
internal var isTracked = false

@inlinable
@usableFromInline
init() {}
}

Expand Down Expand Up @@ -252,7 +252,7 @@ extension Internals.DiffableDataUIDispatcher {
@usableFromInline
internal var position = 0

@inlinable
@usableFromInline
internal init(_ indices: ContiguousArray<Int>) {

self.indices = indices
Expand Down Expand Up @@ -292,7 +292,7 @@ extension Internals.DiffableDataUIDispatcher {
@usableFromInline
internal let pointer: UnsafePointer<T>

@inlinable
@usableFromInline
internal init(pointer: UnsafePointer<T>) {

self.pointeeHashValue = pointer.pointee.hashValue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ extension Internals.DiffableDataUIDispatcher {
@usableFromInline
var changesets: ContiguousArray<Changeset<C>>

@inlinable
@usableFromInline
init<S: Sequence>(_ changesets: S) where S.Element == Changeset<C> {

self.changesets = ContiguousArray(changesets)
Expand Down
2 changes: 1 addition & 1 deletion Sources/Internals.DiffableDataUIDispatcher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ extension Internals {
@usableFromInline
var section: Int

@inlinable
@usableFromInline
init(element: Int, section: Int) {

self.element = element
Expand Down

0 comments on commit d4d76c8

Please sign in to comment.