Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions .agents/interfaces/ios/KeyPathsExtensions.swiftinterface
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 6.3.3 (swiftlang-6.3.3.1.3 clang-2100.1.1.101)
// swift-module-flags: -target arm64-apple-ios12.0-simulator -enable-objc-interop -swift-version 6 -O -module-name KeyPathsExtensions -package-name swift_keypaths_extensions
// swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.3
import Foundation
@_exported import KeyPathMapping
import Swift
import SwiftMarkerProtocols
import _Concurrency
import _StringProcessing
import _SwiftConcurrencyShims
extension SwiftMarkerProtocols._AnyKeyPathProtocol {
public func unwrapped<Root, Wrapped>(with defaultValue: @autoclosure @escaping () -> Wrapped, aggressive: Swift.Bool = false) -> Swift.KeyPath<Root, Wrapped> where Self : Swift.KeyPath<Root, Wrapped?>
public func unwrapped<Root, Wrapped>(with defaultValue: @autoclosure @escaping () -> Wrapped, aggressive: Swift.Bool = false) -> Swift.WritableKeyPath<Root, Wrapped> where Self == Swift.WritableKeyPath<Root, Wrapped?>
public func unwrapped<Root, Wrapped>(with defaultValue: @autoclosure @escaping () -> Wrapped, aggressive: Swift.Bool = false) -> Swift.ReferenceWritableKeyPath<Root, Wrapped> where Self == Swift.ReferenceWritableKeyPath<Root, Wrapped?>
}
extension SwiftMarkerProtocols._AnyKeyPathProtocol {
@inlinable public func appending<Root, Value, AppendedValue>(path keyPath: Swift.KeyPath<Value, AppendedValue>) -> Swift.KeyPath<Root, AppendedValue?> where Self : Swift.KeyPath<Root, Value?> {
appending(path: keyPath.withOptionalRoot())
}
@inlinable public func appending<Root, Value, AppendedValue>(path keyPath: Swift.ReferenceWritableKeyPath<Value, AppendedValue>) -> Swift.ReferenceWritableKeyPath<Root, AppendedValue?> where Self == Swift.KeyPath<Root, Value?> {
appending(path: keyPath.withOptionalRoot())
}
@inlinable public func appending<Root, Value, AppendedValue>(path keyPath: Swift.WritableKeyPath<Value, AppendedValue>) -> Swift.WritableKeyPath<Root, AppendedValue?> where Self == Swift.WritableKeyPath<Root, Value?> {
appending(path: keyPath.withOptionalRoot())
}
@inlinable public func appending<Root, Value, AppendedValue>(path keyPath: Swift.ReferenceWritableKeyPath<Value, AppendedValue>) -> Swift.ReferenceWritableKeyPath<Root, AppendedValue?> where Self == Swift.WritableKeyPath<Root, Value?> {
appending(path: keyPath.withOptionalRoot())
}
@inlinable public func appending<Root, Value, AppendedValue>(path keyPath: Swift.WritableKeyPath<Value, AppendedValue>) -> Swift.ReferenceWritableKeyPath<Root, AppendedValue?> where Self == Swift.ReferenceWritableKeyPath<Root, Value?> {
appending(path: keyPath.withOptionalRoot())
}
public func withOptionalRoot<Root, Value>() -> Swift.KeyPath<Root?, Value?> where Self : Swift.KeyPath<Root, Value>
public func withOptionalRoot<Root, Value>() -> Swift.WritableKeyPath<Root?, Value?> where Self == Swift.WritableKeyPath<Root, Value>
public func withOptionalRoot<Root, Value>() -> Swift.ReferenceWritableKeyPath<Root?, Value?> where Self == Swift.ReferenceWritableKeyPath<Root, Value>
}
public typealias _SendableAnyKeyPath = any Swift.AnyKeyPath & Swift.Sendable
public typealias _SendablePartialKeyPath<Root> = any Swift.PartialKeyPath<Root> & Swift.Sendable
public typealias _SendableKeyPath<Root, Value> = any Swift.KeyPath<Root, Value> & Swift.Sendable
public typealias _SendableWritableKeyPath<Root, Value> = any Swift.WritableKeyPath<Root, Value> & Swift.Sendable
public typealias _SendableReferenceWritableKeyPath<Root, Value> = any Swift.ReferenceWritableKeyPath<Root, Value> & Swift.Sendable
extension SwiftMarkerProtocols._AnyKeyPathProtocol {
@_transparent public func unsafeSendable() -> KeyPathsExtensions._SendableAnyKeyPath where Self == Swift.AnyKeyPath {
unsafeBitCast(self, to: _SendableAnyKeyPath.self)
}
@_transparent public func unsafeSendable<Root>() -> KeyPathsExtensions._SendablePartialKeyPath<Root> where Self == Swift.PartialKeyPath<Root> {
unsafeBitCast(self, to: _SendablePartialKeyPath<Root>.self)
}
@_transparent public func unsafeSendable<Root, Value>() -> KeyPathsExtensions._SendableKeyPath<Root, Value> where Self == Swift.KeyPath<Root, Value> {
unsafeBitCast(self, to: _SendableKeyPath<Root, Value>.self)
}
@_transparent public func unsafeSendable<Root, Value>() -> KeyPathsExtensions._SendableWritableKeyPath<Root, Value> where Self == Swift.WritableKeyPath<Root, Value> {
unsafeBitCast(self, to: _SendableWritableKeyPath<Root, Value>.self)
}
@_transparent public func unsafeSendable<Root, Value>() -> KeyPathsExtensions._SendableReferenceWritableKeyPath<Root, Value> where Self == Swift.ReferenceWritableKeyPath<Root, Value> {
unsafeBitCast(self, to: _SendableReferenceWritableKeyPath<Root, Value>.self)
}
}
54 changes: 27 additions & 27 deletions .agents/interfaces/macos/KeyPathsExtensions.swiftinterface
Original file line number Diff line number Diff line change
@@ -1,58 +1,58 @@
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 6.4 (swiftlang-6.4.0.25.4 clang-2100.3.25.1)
// swift-module-flags: -target arm64-apple-macos12.0 -enable-objc-interop -language-mode 6 -O -enable-experimental-feature DebugDescriptionMacro -module-name KeyPathsExtensions -package-name swift_keypaths_extensions
// swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.4
// swift-compiler-version: Apple Swift version 6.3.3 (swiftlang-6.3.3.1.3 clang-2100.1.1.101)
// swift-module-flags: -target arm64-apple-macosx10.13 -enable-objc-interop -swift-version 6 -O -module-name KeyPathsExtensions -package-name swift_keypaths_extensions
// swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.3
import Foundation
@_exported import KeyPathMapping
import Swift
import SwiftMarkerProtocols
import _Concurrency
import _StringProcessing
import _SwiftConcurrencyShims
extension SwiftMarkerProtocols::_AnyKeyPathProtocol {
public func unwrapped<Root, Wrapped>(with defaultValue: @autoclosure @escaping () -> Wrapped, aggressive: Swift::Bool = false) -> Swift::KeyPath<Root, Wrapped> where Self : Swift::KeyPath<Root, Wrapped?>
public func unwrapped<Root, Wrapped>(with defaultValue: @autoclosure @escaping () -> Wrapped, aggressive: Swift::Bool = false) -> Swift::WritableKeyPath<Root, Wrapped> where Self == Swift::WritableKeyPath<Root, Wrapped?>
public func unwrapped<Root, Wrapped>(with defaultValue: @autoclosure @escaping () -> Wrapped, aggressive: Swift::Bool = false) -> Swift::ReferenceWritableKeyPath<Root, Wrapped> where Self == Swift::ReferenceWritableKeyPath<Root, Wrapped?>
extension SwiftMarkerProtocols._AnyKeyPathProtocol {
public func unwrapped<Root, Wrapped>(with defaultValue: @autoclosure @escaping () -> Wrapped, aggressive: Swift.Bool = false) -> Swift.KeyPath<Root, Wrapped> where Self : Swift.KeyPath<Root, Wrapped?>
public func unwrapped<Root, Wrapped>(with defaultValue: @autoclosure @escaping () -> Wrapped, aggressive: Swift.Bool = false) -> Swift.WritableKeyPath<Root, Wrapped> where Self == Swift.WritableKeyPath<Root, Wrapped?>
public func unwrapped<Root, Wrapped>(with defaultValue: @autoclosure @escaping () -> Wrapped, aggressive: Swift.Bool = false) -> Swift.ReferenceWritableKeyPath<Root, Wrapped> where Self == Swift.ReferenceWritableKeyPath<Root, Wrapped?>
}
extension SwiftMarkerProtocols::_AnyKeyPathProtocol {
@inlinable public func appending<Root, Value, AppendedValue>(path keyPath: Swift::KeyPath<Value, AppendedValue>) -> Swift::KeyPath<Root, AppendedValue?> where Self : Swift::KeyPath<Root, Value?> {
extension SwiftMarkerProtocols._AnyKeyPathProtocol {
@inlinable public func appending<Root, Value, AppendedValue>(path keyPath: Swift.KeyPath<Value, AppendedValue>) -> Swift.KeyPath<Root, AppendedValue?> where Self : Swift.KeyPath<Root, Value?> {
appending(path: keyPath.withOptionalRoot())
}
@inlinable public func appending<Root, Value, AppendedValue>(path keyPath: Swift::ReferenceWritableKeyPath<Value, AppendedValue>) -> Swift::ReferenceWritableKeyPath<Root, AppendedValue?> where Self == Swift::KeyPath<Root, Value?> {
@inlinable public func appending<Root, Value, AppendedValue>(path keyPath: Swift.ReferenceWritableKeyPath<Value, AppendedValue>) -> Swift.ReferenceWritableKeyPath<Root, AppendedValue?> where Self == Swift.KeyPath<Root, Value?> {
appending(path: keyPath.withOptionalRoot())
}
@inlinable public func appending<Root, Value, AppendedValue>(path keyPath: Swift::WritableKeyPath<Value, AppendedValue>) -> Swift::WritableKeyPath<Root, AppendedValue?> where Self == Swift::WritableKeyPath<Root, Value?> {
@inlinable public func appending<Root, Value, AppendedValue>(path keyPath: Swift.WritableKeyPath<Value, AppendedValue>) -> Swift.WritableKeyPath<Root, AppendedValue?> where Self == Swift.WritableKeyPath<Root, Value?> {
appending(path: keyPath.withOptionalRoot())
}
@inlinable public func appending<Root, Value, AppendedValue>(path keyPath: Swift::ReferenceWritableKeyPath<Value, AppendedValue>) -> Swift::ReferenceWritableKeyPath<Root, AppendedValue?> where Self == Swift::WritableKeyPath<Root, Value?> {
@inlinable public func appending<Root, Value, AppendedValue>(path keyPath: Swift.ReferenceWritableKeyPath<Value, AppendedValue>) -> Swift.ReferenceWritableKeyPath<Root, AppendedValue?> where Self == Swift.WritableKeyPath<Root, Value?> {
appending(path: keyPath.withOptionalRoot())
}
@inlinable public func appending<Root, Value, AppendedValue>(path keyPath: Swift::WritableKeyPath<Value, AppendedValue>) -> Swift::ReferenceWritableKeyPath<Root, AppendedValue?> where Self == Swift::ReferenceWritableKeyPath<Root, Value?> {
@inlinable public func appending<Root, Value, AppendedValue>(path keyPath: Swift.WritableKeyPath<Value, AppendedValue>) -> Swift.ReferenceWritableKeyPath<Root, AppendedValue?> where Self == Swift.ReferenceWritableKeyPath<Root, Value?> {
appending(path: keyPath.withOptionalRoot())
}
public func withOptionalRoot<Root, Value>() -> Swift::KeyPath<Root?, Value?> where Self : Swift::KeyPath<Root, Value>
public func withOptionalRoot<Root, Value>() -> Swift::WritableKeyPath<Root?, Value?> where Self == Swift::WritableKeyPath<Root, Value>
public func withOptionalRoot<Root, Value>() -> Swift::ReferenceWritableKeyPath<Root?, Value?> where Self == Swift::ReferenceWritableKeyPath<Root, Value>
public func withOptionalRoot<Root, Value>() -> Swift.KeyPath<Root?, Value?> where Self : Swift.KeyPath<Root, Value>
public func withOptionalRoot<Root, Value>() -> Swift.WritableKeyPath<Root?, Value?> where Self == Swift.WritableKeyPath<Root, Value>
public func withOptionalRoot<Root, Value>() -> Swift.ReferenceWritableKeyPath<Root?, Value?> where Self == Swift.ReferenceWritableKeyPath<Root, Value>
}
public typealias _SendableAnyKeyPath = any Swift::AnyKeyPath & Swift::Sendable
public typealias _SendablePartialKeyPath<Root> = any Swift::PartialKeyPath<Root> & Swift::Sendable
public typealias _SendableKeyPath<Root, Value> = any Swift::KeyPath<Root, Value> & Swift::Sendable
public typealias _SendableWritableKeyPath<Root, Value> = any Swift::WritableKeyPath<Root, Value> & Swift::Sendable
public typealias _SendableReferenceWritableKeyPath<Root, Value> = any Swift::ReferenceWritableKeyPath<Root, Value> & Swift::Sendable
extension SwiftMarkerProtocols::_AnyKeyPathProtocol {
@_transparent public func unsafeSendable() -> KeyPathsExtensions::_SendableAnyKeyPath where Self == Swift::AnyKeyPath {
public typealias _SendableAnyKeyPath = any Swift.AnyKeyPath & Swift.Sendable
public typealias _SendablePartialKeyPath<Root> = any Swift.PartialKeyPath<Root> & Swift.Sendable
public typealias _SendableKeyPath<Root, Value> = any Swift.KeyPath<Root, Value> & Swift.Sendable
public typealias _SendableWritableKeyPath<Root, Value> = any Swift.WritableKeyPath<Root, Value> & Swift.Sendable
public typealias _SendableReferenceWritableKeyPath<Root, Value> = any Swift.ReferenceWritableKeyPath<Root, Value> & Swift.Sendable
extension SwiftMarkerProtocols._AnyKeyPathProtocol {
@_transparent public func unsafeSendable() -> KeyPathsExtensions._SendableAnyKeyPath where Self == Swift.AnyKeyPath {
unsafeBitCast(self, to: _SendableAnyKeyPath.self)
}
@_transparent public func unsafeSendable<Root>() -> KeyPathsExtensions::_SendablePartialKeyPath<Root> where Self == Swift::PartialKeyPath<Root> {
@_transparent public func unsafeSendable<Root>() -> KeyPathsExtensions._SendablePartialKeyPath<Root> where Self == Swift.PartialKeyPath<Root> {
unsafeBitCast(self, to: _SendablePartialKeyPath<Root>.self)
}
@_transparent public func unsafeSendable<Root, Value>() -> KeyPathsExtensions::_SendableKeyPath<Root, Value> where Self == Swift::KeyPath<Root, Value> {
@_transparent public func unsafeSendable<Root, Value>() -> KeyPathsExtensions._SendableKeyPath<Root, Value> where Self == Swift.KeyPath<Root, Value> {
unsafeBitCast(self, to: _SendableKeyPath<Root, Value>.self)
}
@_transparent public func unsafeSendable<Root, Value>() -> KeyPathsExtensions::_SendableWritableKeyPath<Root, Value> where Self == Swift::WritableKeyPath<Root, Value> {
@_transparent public func unsafeSendable<Root, Value>() -> KeyPathsExtensions._SendableWritableKeyPath<Root, Value> where Self == Swift.WritableKeyPath<Root, Value> {
unsafeBitCast(self, to: _SendableWritableKeyPath<Root, Value>.self)
}
@_transparent public func unsafeSendable<Root, Value>() -> KeyPathsExtensions::_SendableReferenceWritableKeyPath<Root, Value> where Self == Swift::ReferenceWritableKeyPath<Root, Value> {
@_transparent public func unsafeSendable<Root, Value>() -> KeyPathsExtensions._SendableReferenceWritableKeyPath<Root, Value> where Self == Swift.ReferenceWritableKeyPath<Root, Value> {
unsafeBitCast(self, to: _SendableReferenceWritableKeyPath<Root, Value>.self)
}
}
58 changes: 58 additions & 0 deletions .agents/interfaces/tvos/KeyPathsExtensions.swiftinterface
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 6.3.3 (swiftlang-6.3.3.1.3 clang-2100.1.1.101)
// swift-module-flags: -target arm64-apple-tvos12.0-simulator -enable-objc-interop -swift-version 6 -O -module-name KeyPathsExtensions -package-name swift_keypaths_extensions
// swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.3
import Foundation
@_exported import KeyPathMapping
import Swift
import SwiftMarkerProtocols
import _Concurrency
import _StringProcessing
import _SwiftConcurrencyShims
extension SwiftMarkerProtocols._AnyKeyPathProtocol {
public func unwrapped<Root, Wrapped>(with defaultValue: @autoclosure @escaping () -> Wrapped, aggressive: Swift.Bool = false) -> Swift.KeyPath<Root, Wrapped> where Self : Swift.KeyPath<Root, Wrapped?>
public func unwrapped<Root, Wrapped>(with defaultValue: @autoclosure @escaping () -> Wrapped, aggressive: Swift.Bool = false) -> Swift.WritableKeyPath<Root, Wrapped> where Self == Swift.WritableKeyPath<Root, Wrapped?>
public func unwrapped<Root, Wrapped>(with defaultValue: @autoclosure @escaping () -> Wrapped, aggressive: Swift.Bool = false) -> Swift.ReferenceWritableKeyPath<Root, Wrapped> where Self == Swift.ReferenceWritableKeyPath<Root, Wrapped?>
}
extension SwiftMarkerProtocols._AnyKeyPathProtocol {
@inlinable public func appending<Root, Value, AppendedValue>(path keyPath: Swift.KeyPath<Value, AppendedValue>) -> Swift.KeyPath<Root, AppendedValue?> where Self : Swift.KeyPath<Root, Value?> {
appending(path: keyPath.withOptionalRoot())
}
@inlinable public func appending<Root, Value, AppendedValue>(path keyPath: Swift.ReferenceWritableKeyPath<Value, AppendedValue>) -> Swift.ReferenceWritableKeyPath<Root, AppendedValue?> where Self == Swift.KeyPath<Root, Value?> {
appending(path: keyPath.withOptionalRoot())
}
@inlinable public func appending<Root, Value, AppendedValue>(path keyPath: Swift.WritableKeyPath<Value, AppendedValue>) -> Swift.WritableKeyPath<Root, AppendedValue?> where Self == Swift.WritableKeyPath<Root, Value?> {
appending(path: keyPath.withOptionalRoot())
}
@inlinable public func appending<Root, Value, AppendedValue>(path keyPath: Swift.ReferenceWritableKeyPath<Value, AppendedValue>) -> Swift.ReferenceWritableKeyPath<Root, AppendedValue?> where Self == Swift.WritableKeyPath<Root, Value?> {
appending(path: keyPath.withOptionalRoot())
}
@inlinable public func appending<Root, Value, AppendedValue>(path keyPath: Swift.WritableKeyPath<Value, AppendedValue>) -> Swift.ReferenceWritableKeyPath<Root, AppendedValue?> where Self == Swift.ReferenceWritableKeyPath<Root, Value?> {
appending(path: keyPath.withOptionalRoot())
}
public func withOptionalRoot<Root, Value>() -> Swift.KeyPath<Root?, Value?> where Self : Swift.KeyPath<Root, Value>
public func withOptionalRoot<Root, Value>() -> Swift.WritableKeyPath<Root?, Value?> where Self == Swift.WritableKeyPath<Root, Value>
public func withOptionalRoot<Root, Value>() -> Swift.ReferenceWritableKeyPath<Root?, Value?> where Self == Swift.ReferenceWritableKeyPath<Root, Value>
}
public typealias _SendableAnyKeyPath = any Swift.AnyKeyPath & Swift.Sendable
public typealias _SendablePartialKeyPath<Root> = any Swift.PartialKeyPath<Root> & Swift.Sendable
public typealias _SendableKeyPath<Root, Value> = any Swift.KeyPath<Root, Value> & Swift.Sendable
public typealias _SendableWritableKeyPath<Root, Value> = any Swift.WritableKeyPath<Root, Value> & Swift.Sendable
public typealias _SendableReferenceWritableKeyPath<Root, Value> = any Swift.ReferenceWritableKeyPath<Root, Value> & Swift.Sendable
extension SwiftMarkerProtocols._AnyKeyPathProtocol {
@_transparent public func unsafeSendable() -> KeyPathsExtensions._SendableAnyKeyPath where Self == Swift.AnyKeyPath {
unsafeBitCast(self, to: _SendableAnyKeyPath.self)
}
@_transparent public func unsafeSendable<Root>() -> KeyPathsExtensions._SendablePartialKeyPath<Root> where Self == Swift.PartialKeyPath<Root> {
unsafeBitCast(self, to: _SendablePartialKeyPath<Root>.self)
}
@_transparent public func unsafeSendable<Root, Value>() -> KeyPathsExtensions._SendableKeyPath<Root, Value> where Self == Swift.KeyPath<Root, Value> {
unsafeBitCast(self, to: _SendableKeyPath<Root, Value>.self)
}
@_transparent public func unsafeSendable<Root, Value>() -> KeyPathsExtensions._SendableWritableKeyPath<Root, Value> where Self == Swift.WritableKeyPath<Root, Value> {
unsafeBitCast(self, to: _SendableWritableKeyPath<Root, Value>.self)
}
@_transparent public func unsafeSendable<Root, Value>() -> KeyPathsExtensions._SendableReferenceWritableKeyPath<Root, Value> where Self == Swift.ReferenceWritableKeyPath<Root, Value> {
unsafeBitCast(self, to: _SendableReferenceWritableKeyPath<Root, Value>.self)
}
}
Loading
Loading