Build Information
Failed to build CodableDatastore, reference 0.4.1 (8694d7), with Swift 6.2 for Wasm on 27 Jan 2026 16:36:20 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mochidev/CodableDatastore.git
Reference: 0.4.1
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/mochidev/CodableDatastore
* tag 0.4.1 -> FETCH_HEAD
HEAD is now at 8694d75 Fixed an issue where `AsyncThrowingBackpressureStream` would not deinitialize when a suspended write was never read
Cloned https://github.com/mochidev/CodableDatastore.git
Revision (git rev-parse @):
8694d75c9d627d7399925bf7675687b17a6e5292
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/mochidev/CodableDatastore.git at 0.4.1
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/mochidev/CodableDatastore.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:c50555b47c4db0b0576f9f25702fbe2fdff28194c4a4f4c23a7dce4b3504c85e
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
warning: multiple Swift SDKs match target triple `wasm32-unknown-wasip1` and host triple x86_64-unknown-linux-gnu, selected one at /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/embedded-swift-sdk.json
Fetching https://github.com/mochidev/Bytes.git
Fetching https://github.com/mochidev/AsyncSequenceReader.git
[1/452] Fetching bytes
[449/678] Fetching bytes, asyncsequencereader
Fetched https://github.com/mochidev/Bytes.git from cache (0.55s)
Fetched https://github.com/mochidev/AsyncSequenceReader.git from cache (0.56s)
Computing version for https://github.com/mochidev/AsyncSequenceReader.git
Computed https://github.com/mochidev/AsyncSequenceReader.git at 0.3.1 (1.43s)
Computing version for https://github.com/mochidev/Bytes.git
Computed https://github.com/mochidev/Bytes.git at 0.3.1 (4.04s)
Creating working copy for https://github.com/mochidev/Bytes.git
Working copy of https://github.com/mochidev/Bytes.git resolved at 0.3.1
Creating working copy for https://github.com/mochidev/AsyncSequenceReader.git
Working copy of https://github.com/mochidev/AsyncSequenceReader.git resolved at 0.3.1
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/8] Emitting module Bytes
/host/spi-builder-workspace/.build/checkouts/Bytes/Sources/Bytes/Colletion+Casting.swift:9:8: error: no such module 'Foundation'
7 | //
8 |
9 | import Foundation
| `- error: no such module 'Foundation'
10 |
11 | extension BidirectionalCollection where Element == Byte {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/8] Emitting module AsyncSequenceReader
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AnyReadableSequence.swift:14:34: error: cannot find type 'AsyncIteratorProtocol' in scope
12 | let makeUnderlyingIterator: @Sendable () -> () async throws -> Element?
13 |
14 | public struct AsyncIterator: AsyncIteratorProtocol {
| `- error: cannot find type 'AsyncIteratorProtocol' in scope
15 | @usableFromInline
16 | let makeUnderlyingNext: () async throws -> Element?
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AnyReadableSequence.swift:51:20: error: cannot find type 'AsyncSequence' in scope
49 | /// Initialize ``AnyReadableSequence`` with an async sequence.
50 | @inlinable
51 | public init<S: AsyncSequence & Sendable>(_ sequence: S) where S.Element == Element, Element: Sendable {
| `- error: cannot find type 'AsyncSequence' in scope
52 | self.init {
53 | var iterator = sequence.makeAsyncIterator()
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AnyReadableSequence.swift:51:69: error: 'Element' is not a member type of type 'S'
49 | /// Initialize ``AnyReadableSequence`` with an async sequence.
50 | @inlinable
51 | public init<S: AsyncSequence & Sendable>(_ sequence: S) where S.Element == Element, Element: Sendable {
| `- error: 'Element' is not a member type of type 'S'
52 | self.init {
53 | var iterator = sequence.makeAsyncIterator()
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AnyReadableSequence.swift:10:45: error: cannot find type 'AsyncSequence' in scope
8 |
9 | /// A type-erased convenience type to normalize synchronous and asynchronous sequences into a common async type.
10 | public struct AnyReadableSequence<Element>: AsyncSequence {
| `- error: cannot find type 'AsyncSequence' in scope
11 | @usableFromInline
12 | let makeUnderlyingIterator: @Sendable () -> () async throws -> Element?
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AnyReadableSequence.swift:53:37: error: value of type 'S' has no member 'makeAsyncIterator'
51 | public init<S: AsyncSequence & Sendable>(_ sequence: S) where S.Element == Element, Element: Sendable {
52 | self.init {
53 | var iterator = sequence.makeAsyncIterator()
| `- error: value of type 'S' has no member 'makeAsyncIterator'
54 |
55 | return { try await iterator.next() }
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncBufferedIterator.swift:12:51: error: cannot find type 'AsyncIteratorProtocol' in scope
10 |
11 | /// An iterator that wraps and can buffer another iterator, allowing safe reading ahead.
12 | public struct AsyncBufferedIterator<BaseIterator: AsyncIteratorProtocol>: AsyncIteratorProtocol {
| `- error: cannot find type 'AsyncIteratorProtocol' in scope
13 | @usableFromInline
14 | var baseIterator: BaseIterator
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncBufferedIterator.swift:20:41: error: 'Element' is not a member type of type 'BaseIterator'
18 | /// - Note:Ideally, this should be implemented using some sort of cyclical buffer like a Deque, but in practice, it will only ever have one entry.
19 | @usableFromInline
20 | var unconsumedBuffer: [BaseIterator.Element] = []
| `- error: 'Element' is not a member type of type 'BaseIterator'
21 |
22 | @usableFromInline
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncBufferedIterator.swift:28:64: error: 'Element' is not a member type of type 'BaseIterator'
26 |
27 | @inlinable
28 | public mutating func next() async rethrows -> BaseIterator.Element? {
| `- error: 'Element' is not a member type of type 'BaseIterator'
29 | guard unconsumedBuffer.isEmpty else {
30 | return unconsumedBuffer.removeFirst()
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncBufferedIterator.swift:28:39: error: 'rethrows' function must take a throwing function argument
26 |
27 | @inlinable
28 | public mutating func next() async rethrows -> BaseIterator.Element? {
| `- error: 'rethrows' function must take a throwing function argument
29 | guard unconsumedBuffer.isEmpty else {
30 | return unconsumedBuffer.removeFirst()
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncBufferedIterator.swift:39:67: error: 'Element' is not a member type of type 'BaseIterator'
37 | /// - Returns: The read-ahead value.
38 | @usableFromInline
39 | mutating func nextUnconsumed() async rethrows -> BaseIterator.Element? {
| `- error: 'Element' is not a member type of type 'BaseIterator'
40 | let next = try await baseIterator.next()
41 | if let value = next {
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncBufferedIterator.swift:39:42: error: 'rethrows' function must take a throwing function argument
37 | /// - Returns: The read-ahead value.
38 | @usableFromInline
39 | mutating func nextUnconsumed() async rethrows -> BaseIterator.Element? {
| `- error: 'rethrows' function must take a throwing function argument
40 | let next = try await baseIterator.next()
41 | if let value = next {
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncBufferedIterator.swift:53:46: error: 'rethrows' function must take a throwing function argument
51 | /// - Returns: A Bool indicating if there is more to consume or not.
52 | @inlinable
53 | public mutating func hasMoreData() async rethrows -> Bool {
| `- error: 'rethrows' function must take a throwing function argument
54 | guard unconsumedBuffer.isEmpty else {
55 | return true
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncBufferedIterator.swift:12:75: error: cannot find type 'AsyncIteratorProtocol' in scope
10 |
11 | /// An iterator that wraps and can buffer another iterator, allowing safe reading ahead.
12 | public struct AsyncBufferedIterator<BaseIterator: AsyncIteratorProtocol>: AsyncIteratorProtocol {
| `- error: cannot find type 'AsyncIteratorProtocol' in scope
13 | @usableFromInline
14 | var baseIterator: BaseIterator
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncBufferedIterator.swift:62:86: error: 'Element' is not a member type of type 'BaseIterator'
60 | }
61 |
62 | extension AsyncBufferedIterator: Sendable where BaseIterator: Sendable, BaseIterator.Element: Sendable {}
| `- error: 'Element' is not a member type of type 'BaseIterator'
63 |
64 | #endif
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncBufferedIterator.swift:40:43: error: value of type 'BaseIterator' has no member 'next'
38 | @usableFromInline
39 | mutating func nextUnconsumed() async rethrows -> BaseIterator.Element? {
40 | let next = try await baseIterator.next()
| `- error: value of type 'BaseIterator' has no member 'next'
41 | if let value = next {
42 | unconsumedBuffer.append(value)
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:11:11: error: cannot find type 'AsyncSequence' in scope
9 | #if compiler(>=5.5) && canImport(_Concurrency)
10 |
11 | extension AsyncSequence {
| `- error: cannot find type 'AsyncSequence' in scope
12 | /// Creates an asynchronous sequence that maps the given closure over an iterator for the sequence, which can itself accept multiple reads.
13 | ///
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:94:46: error: cannot find type 'AsyncSequence' in scope
92 |
93 | /// An asynchronous sequence that maps the given closure over the asynchronous sequence’s elements by providing it with the base sequence's iterator to assemble multiple reads into a single transformed object.
94 | public struct AsyncIteratorMapSequence<Base: AsyncSequence, Transformed> {
| `- error: cannot find type 'AsyncSequence' in scope
95 | @usableFromInline
96 | let base: Base
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:99:76: error: 'AsyncIterator' is not a member type of type 'Base'
97 |
98 | @usableFromInline
99 | let transform: @Sendable (_ iterator: inout AsyncBufferedIterator<Base.AsyncIterator>) async -> Transformed
| `- error: 'AsyncIterator' is not a member type of type 'Base'
100 |
101 | @usableFromInline
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:104:86: error: 'AsyncIterator' is not a member type of type 'Base'
102 | init(
103 | _ base: Base,
104 | transform: @Sendable @escaping (_ iterator: inout AsyncBufferedIterator<Base.AsyncIterator>) async -> Transformed
| `- error: 'AsyncIterator' is not a member type of type 'Base'
105 | ) {
106 | self.base = base
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:111:37: error: cannot find type 'AsyncSequence' in scope
109 | }
110 |
111 | extension AsyncIteratorMapSequence: AsyncSequence {
| `- error: cannot find type 'AsyncSequence' in scope
112 | /// The type of element produced by this asynchronous sequence.
113 | ///
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:120:54: error: 'AsyncIterator' is not a member type of type 'Base'
118 | public struct AsyncIterator: AsyncIteratorProtocol {
119 | @usableFromInline
120 | var baseIterator: AsyncBufferedIterator<Base.AsyncIterator>
| `- error: 'AsyncIterator' is not a member type of type 'Base'
121 | @usableFromInline
122 | let transform: @Sendable (_ iterator: inout AsyncBufferedIterator<Base.AsyncIterator>) async -> Transformed
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:122:80: error: 'AsyncIterator' is not a member type of type 'Base'
120 | var baseIterator: AsyncBufferedIterator<Base.AsyncIterator>
121 | @usableFromInline
122 | let transform: @Sendable (_ iterator: inout AsyncBufferedIterator<Base.AsyncIterator>) async -> Transformed
| `- error: 'AsyncIterator' is not a member type of type 'Base'
123 |
124 | @usableFromInline
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:126:56: error: 'AsyncIterator' is not a member type of type 'Base'
124 | @usableFromInline
125 | init(
126 | _ baseIterator: AsyncBufferedIterator<Base.AsyncIterator>,
| `- error: 'AsyncIterator' is not a member type of type 'Base'
127 | transform: @Sendable @escaping (inout AsyncBufferedIterator<Base.AsyncIterator>) async -> Transformed
128 | ) {
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:127:78: error: 'AsyncIterator' is not a member type of type 'Base'
125 | init(
126 | _ baseIterator: AsyncBufferedIterator<Base.AsyncIterator>,
127 | transform: @Sendable @escaping (inout AsyncBufferedIterator<Base.AsyncIterator>) async -> Transformed
| `- error: 'AsyncIterator' is not a member type of type 'Base'
128 | ) {
129 | self.baseIterator = baseIterator
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:137:43: error: 'rethrows' function must take a throwing function argument
135 | /// This iterator calls `next()` on its (wrapped) base iterator, and stores the result; if this call returns `nil`, `next()` returns `nil`. Otherwise, `next()` returns the result of calling the transforming closure on the received element.
136 | @inlinable
137 | public mutating func next() async rethrows -> Transformed? {
| `- error: 'rethrows' function must take a throwing function argument
138 | guard try await baseIterator.hasMoreData() else {
139 | return nil
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:118:34: error: cannot find type 'AsyncIteratorProtocol' in scope
116 |
117 | /// The iterator that produces elements of the map sequence.
118 | public struct AsyncIterator: AsyncIteratorProtocol {
| `- error: cannot find type 'AsyncIteratorProtocol' in scope
119 | @usableFromInline
120 | var baseIterator: AsyncBufferedIterator<Base.AsyncIterator>
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:152:135: error: cannot find type 'Element' in scope
150 |
151 | extension AsyncIteratorMapSequence: Sendable where Base: Sendable, Transformed: Sendable, Base.Element: Sendable, Base.AsyncIterator: Sendable {}
152 | extension AsyncIteratorMapSequence.AsyncIterator: Sendable where Base: Sendable, Base.AsyncIterator: Sendable, Transformed: Sendable, Element: Sendable, Base.Element: Sendable {}
| `- error: cannot find type 'Element' in scope
153 |
154 | public struct AsyncThrowingIteratorMapSequence<Base, Transformed> where Base : AsyncSequence {
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:151:96: error: 'Element' is not a member type of type 'Base'
149 | }
150 |
151 | extension AsyncIteratorMapSequence: Sendable where Base: Sendable, Transformed: Sendable, Base.Element: Sendable, Base.AsyncIterator: Sendable {}
| `- error: 'Element' is not a member type of type 'Base'
152 | extension AsyncIteratorMapSequence.AsyncIterator: Sendable where Base: Sendable, Base.AsyncIterator: Sendable, Transformed: Sendable, Element: Sendable, Base.Element: Sendable {}
153 |
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:151:120: error: 'AsyncIterator' is not a member type of type 'Base'
149 | }
150 |
151 | extension AsyncIteratorMapSequence: Sendable where Base: Sendable, Transformed: Sendable, Base.Element: Sendable, Base.AsyncIterator: Sendable {}
| `- error: 'AsyncIterator' is not a member type of type 'Base'
152 | extension AsyncIteratorMapSequence.AsyncIterator: Sendable where Base: Sendable, Base.AsyncIterator: Sendable, Transformed: Sendable, Element: Sendable, Base.Element: Sendable {}
153 |
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:152:87: error: 'AsyncIterator' is not a member type of type 'Base'
150 |
151 | extension AsyncIteratorMapSequence: Sendable where Base: Sendable, Transformed: Sendable, Base.Element: Sendable, Base.AsyncIterator: Sendable {}
152 | extension AsyncIteratorMapSequence.AsyncIterator: Sendable where Base: Sendable, Base.AsyncIterator: Sendable, Transformed: Sendable, Element: Sendable, Base.Element: Sendable {}
| `- error: 'AsyncIterator' is not a member type of type 'Base'
153 |
154 | public struct AsyncThrowingIteratorMapSequence<Base, Transformed> where Base : AsyncSequence {
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:152:159: error: 'Element' is not a member type of type 'Base'
150 |
151 | extension AsyncIteratorMapSequence: Sendable where Base: Sendable, Transformed: Sendable, Base.Element: Sendable, Base.AsyncIterator: Sendable {}
152 | extension AsyncIteratorMapSequence.AsyncIterator: Sendable where Base: Sendable, Base.AsyncIterator: Sendable, Transformed: Sendable, Element: Sendable, Base.Element: Sendable {}
| `- error: 'Element' is not a member type of type 'Base'
153 |
154 | public struct AsyncThrowingIteratorMapSequence<Base, Transformed> where Base : AsyncSequence {
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:154:80: error: cannot find type 'AsyncSequence' in scope
152 | extension AsyncIteratorMapSequence.AsyncIterator: Sendable where Base: Sendable, Base.AsyncIterator: Sendable, Transformed: Sendable, Element: Sendable, Base.Element: Sendable {}
153 |
154 | public struct AsyncThrowingIteratorMapSequence<Base, Transformed> where Base : AsyncSequence {
| `- error: cannot find type 'AsyncSequence' in scope
155 | @usableFromInline
156 | let base: Base
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:159:76: error: 'AsyncIterator' is not a member type of type 'Base'
157 |
158 | @usableFromInline
159 | let transform: @Sendable (_ iterator: inout AsyncBufferedIterator<Base.AsyncIterator>) async throws -> Transformed
| `- error: 'AsyncIterator' is not a member type of type 'Base'
160 |
161 | @usableFromInline
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:164:86: error: 'AsyncIterator' is not a member type of type 'Base'
162 | init(
163 | _ base: Base,
164 | transform: @Sendable @escaping (_ iterator: inout AsyncBufferedIterator<Base.AsyncIterator>) async throws -> Transformed
| `- error: 'AsyncIterator' is not a member type of type 'Base'
165 | ) {
166 | self.base = base
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:171:45: error: cannot find type 'AsyncSequence' in scope
169 | }
170 |
171 | extension AsyncThrowingIteratorMapSequence: AsyncSequence {
| `- error: cannot find type 'AsyncSequence' in scope
172 | public typealias Element = Transformed
173 |
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:176:54: error: 'AsyncIterator' is not a member type of type 'Base'
174 | public struct AsyncIterator: AsyncIteratorProtocol {
175 | @usableFromInline
176 | var baseIterator: AsyncBufferedIterator<Base.AsyncIterator>
| `- error: 'AsyncIterator' is not a member type of type 'Base'
177 |
178 | @usableFromInline
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:179:80: error: 'AsyncIterator' is not a member type of type 'Base'
177 |
178 | @usableFromInline
179 | let transform: @Sendable (_ iterator: inout AsyncBufferedIterator<Base.AsyncIterator>) async throws -> Transformed
| `- error: 'AsyncIterator' is not a member type of type 'Base'
180 |
181 | @usableFromInline
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:186:56: error: 'AsyncIterator' is not a member type of type 'Base'
184 | @usableFromInline
185 | init(
186 | _ baseIterator: AsyncBufferedIterator<Base.AsyncIterator>,
| `- error: 'AsyncIterator' is not a member type of type 'Base'
187 | transform: @Sendable @escaping (inout AsyncBufferedIterator<Base.AsyncIterator>) async throws -> Transformed
188 | ) {
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:187:78: error: 'AsyncIterator' is not a member type of type 'Base'
185 | init(
186 | _ baseIterator: AsyncBufferedIterator<Base.AsyncIterator>,
187 | transform: @Sendable @escaping (inout AsyncBufferedIterator<Base.AsyncIterator>) async throws -> Transformed
| `- error: 'AsyncIterator' is not a member type of type 'Base'
188 | ) {
189 | self.baseIterator = baseIterator
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:174:34: error: cannot find type 'AsyncIteratorProtocol' in scope
172 | public typealias Element = Transformed
173 |
174 | public struct AsyncIterator: AsyncIteratorProtocol {
| `- error: cannot find type 'AsyncIteratorProtocol' in scope
175 | @usableFromInline
176 | var baseIterator: AsyncBufferedIterator<Base.AsyncIterator>
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:217:143: error: cannot find type 'Element' in scope
215 |
216 | extension AsyncThrowingIteratorMapSequence: Sendable where Base: Sendable, Transformed: Sendable, Base.Element: Sendable, Base.AsyncIterator: Sendable {}
217 | extension AsyncThrowingIteratorMapSequence.AsyncIterator: Sendable where Base: Sendable, Base.AsyncIterator: Sendable, Transformed: Sendable, Element: Sendable, Base.Element: Sendable {}
| `- error: cannot find type 'Element' in scope
218 |
219 | #endif
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:216:104: error: 'Element' is not a member type of type 'Base'
214 | }
215 |
216 | extension AsyncThrowingIteratorMapSequence: Sendable where Base: Sendable, Transformed: Sendable, Base.Element: Sendable, Base.AsyncIterator: Sendable {}
| `- error: 'Element' is not a member type of type 'Base'
217 | extension AsyncThrowingIteratorMapSequence.AsyncIterator: Sendable where Base: Sendable, Base.AsyncIterator: Sendable, Transformed: Sendable, Element: Sendable, Base.Element: Sendable {}
218 |
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:216:128: error: 'AsyncIterator' is not a member type of type 'Base'
214 | }
215 |
216 | extension AsyncThrowingIteratorMapSequence: Sendable where Base: Sendable, Transformed: Sendable, Base.Element: Sendable, Base.AsyncIterator: Sendable {}
| `- error: 'AsyncIterator' is not a member type of type 'Base'
217 | extension AsyncThrowingIteratorMapSequence.AsyncIterator: Sendable where Base: Sendable, Base.AsyncIterator: Sendable, Transformed: Sendable, Element: Sendable, Base.Element: Sendable {}
218 |
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:217:95: error: 'AsyncIterator' is not a member type of type 'Base'
215 |
216 | extension AsyncThrowingIteratorMapSequence: Sendable where Base: Sendable, Transformed: Sendable, Base.Element: Sendable, Base.AsyncIterator: Sendable {}
217 | extension AsyncThrowingIteratorMapSequence.AsyncIterator: Sendable where Base: Sendable, Base.AsyncIterator: Sendable, Transformed: Sendable, Element: Sendable, Base.Element: Sendable {}
| `- error: 'AsyncIterator' is not a member type of type 'Base'
218 |
219 | #endif
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:217:167: error: 'Element' is not a member type of type 'Base'
215 |
216 | extension AsyncThrowingIteratorMapSequence: Sendable where Base: Sendable, Transformed: Sendable, Base.Element: Sendable, Base.AsyncIterator: Sendable {}
217 | extension AsyncThrowingIteratorMapSequence.AsyncIterator: Sendable where Base: Sendable, Base.AsyncIterator: Sendable, Transformed: Sendable, Element: Sendable, Base.Element: Sendable {}
| `- error: 'Element' is not a member type of type 'Base'
218 |
219 | #endif
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:147:50: error: value of type 'Base' has no member 'makeAsyncIterator'
145 | @inlinable
146 | public func makeAsyncIterator() -> AsyncIterator {
147 | AsyncIterator(AsyncBufferedIterator(base.makeAsyncIterator()), transform: transform)
| `- error: value of type 'Base' has no member 'makeAsyncIterator'
148 | }
149 | }
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:212:50: error: value of type 'Base' has no member 'makeAsyncIterator'
210 | @inlinable
211 | public func makeAsyncIterator() -> AsyncIterator {
212 | AsyncIterator(AsyncBufferedIterator(base.makeAsyncIterator()), transform: transform)
| `- error: value of type 'Base' has no member 'makeAsyncIterator'
213 | }
214 | }
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadSequence.swift:14:36: error: cannot find type 'AsyncSequence' in scope
12 | ///
13 | /// Note that to conform to this protocol, your type must be a reference type. After iterating, you'll also likely want to copy the base iterator back into your starting iterator, as shown in ``AsyncIteratorProtocol/transform(with:readSequenceFactory:)``.
14 | public protocol AsyncReadSequence: AsyncSequence, AnyObject {
| `- error: cannot find type 'AsyncSequence' in scope
15 | associatedtype BaseIterator: AsyncIteratorProtocol where BaseIterator.Element == Element
16 |
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadSequence.swift:15:34: error: cannot find type 'AsyncIteratorProtocol' in scope
13 | /// Note that to conform to this protocol, your type must be a reference type. After iterating, you'll also likely want to copy the base iterator back into your starting iterator, as shown in ``AsyncIteratorProtocol/transform(with:readSequenceFactory:)``.
14 | public protocol AsyncReadSequence: AsyncSequence, AnyObject {
15 | associatedtype BaseIterator: AsyncIteratorProtocol where BaseIterator.Element == Element
| `- error: cannot find type 'AsyncIteratorProtocol' in scope
16 |
17 | @inlinable
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadSequence.swift:15:86: error: cannot find type 'Element' in scope
13 | /// Note that to conform to this protocol, your type must be a reference type. After iterating, you'll also likely want to copy the base iterator back into your starting iterator, as shown in ``AsyncIteratorProtocol/transform(with:readSequenceFactory:)``.
14 | public protocol AsyncReadSequence: AsyncSequence, AnyObject {
15 | associatedtype BaseIterator: AsyncIteratorProtocol where BaseIterator.Element == Element
| `- error: cannot find type 'Element' in scope
16 |
17 | @inlinable
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadSequence.swift:15:75: error: 'Element' is not a member type of type 'Self.BaseIterator'
13 | /// Note that to conform to this protocol, your type must be a reference type. After iterating, you'll also likely want to copy the base iterator back into your starting iterator, as shown in ``AsyncIteratorProtocol/transform(with:readSequenceFactory:)``.
14 | public protocol AsyncReadSequence: AsyncSequence, AnyObject {
15 | associatedtype BaseIterator: AsyncIteratorProtocol where BaseIterator.Element == Element
| `- error: 'Element' is not a member type of type 'Self.BaseIterator'
16 |
17 | @inlinable
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadSequence.swift:21:11: error: cannot find type 'AsyncIteratorProtocol' in scope
19 | }
20 |
21 | extension AsyncIteratorProtocol {
| `- error: cannot find type 'AsyncIteratorProtocol' in scope
22 | /// Transform the receiving iterator using the specified sequence transformer and configured read sequence.
23 | ///
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToCountSequence.swift:11:11: error: cannot find type 'AsyncIteratorProtocol' in scope
9 | #if compiler(>=5.5) && canImport(_Concurrency)
10 |
11 | extension AsyncIteratorProtocol {
| `- error: cannot find type 'AsyncIteratorProtocol' in scope
12 | /// Asynchronously advances by the specified number of elements, or ends the sequence if there is no next element.
13 | ///
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToCountSequence.swift:207:61: error: cannot find type 'AsyncIteratorProtocol' in scope
205 |
206 | /// An asynchronous sequence that will read from a mutable iterator so long as the specified conditions are valid.
207 | public final class AsyncReadUpToCountSequence<BaseIterator: AsyncIteratorProtocol>: AsyncReadSequence {
| `- error: cannot find type 'AsyncIteratorProtocol' in scope
208 | /// The baseIterator to read from.
209 | ///
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToCountSequence.swift:233:39: error: cannot find type 'AsyncSequence' in scope
231 | }
232 |
233 | extension AsyncReadUpToCountSequence: AsyncSequence {
| `- error: cannot find type 'AsyncSequence' in scope
234 | /// The type of element produced by this asynchronous sequence.
235 | ///
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToCountSequence.swift:237:45: error: 'Element' is not a member type of type 'BaseIterator'
235 | ///
236 | /// The read sequence produces whatever type of element its base iterator produces.
237 | public typealias Element = BaseIterator.Element
| `- error: 'Element' is not a member type of type 'BaseIterator'
238 |
239 | /// The iterator that produces elements of the read sequence.
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToCountSequence.swift:240:34: error: cannot find type 'AsyncIteratorProtocol' in scope
238 |
239 | /// The iterator that produces elements of the read sequence.
240 | public struct AsyncIterator: AsyncIteratorProtocol {
| `- error: cannot find type 'AsyncIteratorProtocol' in scope
241 | @usableFromInline
242 | var readSequence: AsyncReadUpToCountSequence
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToCountSequence.swift:279:135: error: cannot find type 'Element' in scope
277 |
278 | extension AsyncReadUpToCountSequence: @unchecked Sendable where BaseIterator: Sendable, BaseIterator.Element: Sendable {}
279 | extension AsyncReadUpToCountSequence.AsyncIterator: @unchecked Sendable where BaseIterator: Sendable, BaseIterator.Element: Sendable, Element: Sendable {}
| `- error: cannot find type 'Element' in scope
280 |
281 | #endif
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToCountSequence.swift:278:102: error: 'Element' is not a member type of type 'BaseIterator'
276 | }
277 |
278 | extension AsyncReadUpToCountSequence: @unchecked Sendable where BaseIterator: Sendable, BaseIterator.Element: Sendable {}
| `- error: 'Element' is not a member type of type 'BaseIterator'
279 | extension AsyncReadUpToCountSequence.AsyncIterator: @unchecked Sendable where BaseIterator: Sendable, BaseIterator.Element: Sendable, Element: Sendable {}
280 |
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToCountSequence.swift:279:116: error: 'Element' is not a member type of type 'BaseIterator'
277 |
278 | extension AsyncReadUpToCountSequence: @unchecked Sendable where BaseIterator: Sendable, BaseIterator.Element: Sendable {}
279 | extension AsyncReadUpToCountSequence.AsyncIterator: @unchecked Sendable where BaseIterator: Sendable, BaseIterator.Element: Sendable, Element: Sendable {}
| `- error: 'Element' is not a member type of type 'BaseIterator'
280 |
281 | #endif
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:336:36: error: cannot find type 'Element' in scope
334 | /// - Returns: A transformed value as returned by `sequenceTransform`, or `nil` if the sequence was already finished.
335 | public mutating func collect<Transformed>(
336 | upToIncluding termination: Element,
| `- error: cannot find type 'Element' in scope
337 | sequenceTransform: (AsyncReadUpToElementsSequence<Self>) async -> Transformed
338 | ) async throws -> Transformed? where Element: Equatable {
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:338:42: error: cannot find type 'Element' in scope
336 | upToIncluding termination: Element,
337 | sequenceTransform: (AsyncReadUpToElementsSequence<Self>) async -> Transformed
338 | ) async throws -> Transformed? where Element: Equatable {
| `- error: cannot find type 'Element' in scope
339 | try await collect(upToIncluding: [termination], sequenceTransform: sequenceTransform)
340 | }
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:455:58: error: cannot find type 'AsyncIteratorProtocol' in scope
453 |
454 | /// An asynchronous sequence that will read from a mutable iterator so long as the specified conditions are valid.
455 | public class AsyncReadUpToElementsSequence<BaseIterator: AsyncIteratorProtocol>: AsyncReadSequence where BaseIterator.Element: Equatable {
| `- error: cannot find type 'AsyncIteratorProtocol' in scope
456 | /// The baseIterator to read from.
457 | ///
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:373:37: error: cannot find type 'Element' in scope
371 | /// - Returns: A transformed value as returned by `sequenceTransform`, or `nil` if the sequence was already finished.
372 | public mutating func collect<Transformed>(
373 | upToIncluding termination: [Element],
| `- error: cannot find type 'Element' in scope
374 | sequenceTransform: (AsyncReadUpToElementsSequence<BaseIterator>) async -> Transformed
375 | ) async throws -> Transformed? where Element: Equatable {
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:375:42: error: cannot find type 'Element' in scope
373 | upToIncluding termination: [Element],
374 | sequenceTransform: (AsyncReadUpToElementsSequence<BaseIterator>) async -> Transformed
375 | ) async throws -> Transformed? where Element: Equatable {
| `- error: cannot find type 'Element' in scope
376 | try await transform(with: sequenceTransform) { .init($0, termination: termination) }
377 | }
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:410:36: error: cannot find type 'Element' in scope
408 | /// - Returns: A transformed value as returned by `sequenceTransform`, or `nil` if the sequence was already finished.
409 | public mutating func collect<Transformed>(
410 | upToIncluding termination: Element,
| `- error: cannot find type 'Element' in scope
411 | sequenceTransform: (AsyncReadUpToElementsSequence<Self>) async throws -> Transformed
412 | ) async throws -> Transformed? where Element: Equatable {
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:412:42: error: cannot find type 'Element' in scope
410 | upToIncluding termination: Element,
411 | sequenceTransform: (AsyncReadUpToElementsSequence<Self>) async throws -> Transformed
412 | ) async throws -> Transformed? where Element: Equatable {
| `- error: cannot find type 'Element' in scope
413 | try await collect(upToIncluding: [termination], sequenceTransform: sequenceTransform)
414 | }
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:447:37: error: cannot find type 'Element' in scope
445 | /// - Returns: A transformed value as returned by `sequenceTransform`, or `nil` if the sequence was already finished.
446 | public mutating func collect<Transformed>(
447 | upToIncluding termination: [Element],
| `- error: cannot find type 'Element' in scope
448 | sequenceTransform: (AsyncReadUpToElementsSequence<BaseIterator>) async throws -> Transformed
449 | ) async throws -> Transformed? where Element: Equatable {
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:449:42: error: cannot find type 'Element' in scope
447 | upToIncluding termination: [Element],
448 | sequenceTransform: (AsyncReadUpToElementsSequence<BaseIterator>) async throws -> Transformed
449 | ) async throws -> Transformed? where Element: Equatable {
| `- error: cannot find type 'Element' in scope
450 | try await transform(with: sequenceTransform) { .init($0, termination: termination) }
451 | }
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:11:11: error: cannot find type 'AsyncIteratorProtocol' in scope
9 | #if compiler(>=5.5) && canImport(_Concurrency)
10 |
11 | extension AsyncIteratorProtocol {
| `- error: cannot find type 'AsyncIteratorProtocol' in scope
12 |
13 | /// Collect elements into a sequence until the termination sequence is encountered, and return them as an array, including the termination sequence.
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:455:119: error: 'Element' is not a member type of type 'BaseIterator'
453 |
454 | /// An asynchronous sequence that will read from a mutable iterator so long as the specified conditions are valid.
455 | public class AsyncReadUpToElementsSequence<BaseIterator: AsyncIteratorProtocol>: AsyncReadSequence where BaseIterator.Element: Equatable {
| `- error: 'Element' is not a member type of type 'BaseIterator'
456 | /// The baseIterator to read from.
457 | ///
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:475:42: error: cannot find type 'AsyncSequence' in scope
473 | }
474 |
475 | extension AsyncReadUpToElementsSequence: AsyncSequence {
| `- error: cannot find type 'AsyncSequence' in scope
476 | /// The type of element produced by this asynchronous sequence.
477 | ///
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:479:45: error: 'Element' is not a member type of type 'BaseIterator'
477 | ///
478 | /// The read sequence produces whatever type of element its base iterator produces.
479 | public typealias Element = BaseIterator.Element
| `- error: 'Element' is not a member type of type 'BaseIterator'
480 |
481 | /// The iterator that produces elements of the read sequence.
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:499:43: error: 'rethrows' function must take a throwing function argument
497 | /// This iterator checks if `bufferedSuffix` has is equal to the termination. If it isn't, then it'll read until it does. If the next value read marks the end of the sequence, but the termination was not identified, the sequence ends without error.
498 | @inlinable
499 | public mutating func next() async rethrows -> Element? {
| `- error: 'rethrows' function must take a throwing function argument
500 | guard
501 | bufferedSuffix != readSequence.termination,
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:482:34: error: cannot find type 'AsyncIteratorProtocol' in scope
480 |
481 | /// The iterator that produces elements of the read sequence.
482 | public struct AsyncIterator: AsyncIteratorProtocol {
| `- error: cannot find type 'AsyncIteratorProtocol' in scope
483 | @usableFromInline
484 | var readSequence: AsyncReadUpToElementsSequence
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:518:138: error: cannot find type 'Element' in scope
516 |
517 | extension AsyncReadUpToElementsSequence: @unchecked Sendable where BaseIterator: Sendable, BaseIterator.Element: Sendable {}
518 | extension AsyncReadUpToElementsSequence.AsyncIterator: @unchecked Sendable where BaseIterator: Sendable, BaseIterator.Element: Sendable, Element: Sendable {}
| `- error: cannot find type 'Element' in scope
519 |
520 | #endif
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:517:105: error: 'Element' is not a member type of type 'BaseIterator'
515 | }
516 |
517 | extension AsyncReadUpToElementsSequence: @unchecked Sendable where BaseIterator: Sendable, BaseIterator.Element: Sendable {}
| `- error: 'Element' is not a member type of type 'BaseIterator'
518 | extension AsyncReadUpToElementsSequence.AsyncIterator: @unchecked Sendable where BaseIterator: Sendable, BaseIterator.Element: Sendable, Element: Sendable {}
519 |
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:518:119: error: 'Element' is not a member type of type 'BaseIterator'
516 |
517 | extension AsyncReadUpToElementsSequence: @unchecked Sendable where BaseIterator: Sendable, BaseIterator.Element: Sendable {}
518 | extension AsyncReadUpToElementsSequence.AsyncIterator: @unchecked Sendable where BaseIterator: Sendable, BaseIterator.Element: Sendable, Element: Sendable {}
| `- error: 'Element' is not a member type of type 'BaseIterator'
519 |
520 | #endif
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:339:19: error: no exact matches in call to instance method 'collect'
337 | sequenceTransform: (AsyncReadUpToElementsSequence<Self>) async -> Transformed
338 | ) async throws -> Transformed? where Element: Equatable {
339 | try await collect(upToIncluding: [termination], sequenceTransform: sequenceTransform)
| `- error: no exact matches in call to instance method 'collect'
340 | }
341 |
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToCountSequence.swift:159:26: note: candidate has partially matching parameter list (Int, sequenceTransform: (AsyncReadUpToCountSequence<BaseIterator>) async throws -> Transformed)
157 | /// - Returns: A transformed value as returned by `sequenceTransform`, or `nil` if the sequence was already finished.
158 | /// - Throws: `AsyncSequenceReaderError.insufficientElements` if a complete byte sequence could not be returned by the time the sequence ended.
159 | public mutating func collect<Transformed>(
| `- note: candidate has partially matching parameter list (Int, sequenceTransform: (AsyncReadUpToCountSequence<BaseIterator>) async throws -> Transformed)
160 | _ count: Int,
161 | sequenceTransform: (AsyncReadUpToCountSequence<BaseIterator>) async throws -> Transformed
:
195 | /// - Returns: A transformed value as returned by `sequenceTransform`, or `nil` if the sequence was already finished.
196 | /// - Throws: `AsyncSequenceReaderError.insufficientElements` if a complete byte sequence could not be returned by the time the sequence ended.
197 | public mutating func collect<Transformed>(
| `- note: candidate has partially matching parameter list (min: Int, max: Int, sequenceTransform: (AsyncReadUpToCountSequence<BaseIterator>) async throws -> Transformed)
198 | min minCount: Int = 0,
199 | max maxCount: Int,
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:413:19: error: no exact matches in call to instance method 'collect'
411 | sequenceTransform: (AsyncReadUpToElementsSequence<Self>) async throws -> Transformed
412 | ) async throws -> Transformed? where Element: Equatable {
413 | try await collect(upToIncluding: [termination], sequenceTransform: sequenceTransform)
| `- error: no exact matches in call to instance method 'collect'
414 | }
415 |
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToCountSequence.swift:159:26: note: candidate has partially matching parameter list (Int, sequenceTransform: (AsyncReadUpToCountSequence<BaseIterator>) async throws -> Transformed)
157 | /// - Returns: A transformed value as returned by `sequenceTransform`, or `nil` if the sequence was already finished.
158 | /// - Throws: `AsyncSequenceReaderError.insufficientElements` if a complete byte sequence could not be returned by the time the sequence ended.
159 | public mutating func collect<Transformed>(
| `- note: candidate has partially matching parameter list (Int, sequenceTransform: (AsyncReadUpToCountSequence<BaseIterator>) async throws -> Transformed)
160 | _ count: Int,
161 | sequenceTransform: (AsyncReadUpToCountSequence<BaseIterator>) async throws -> Transformed
:
195 | /// - Returns: A transformed value as returned by `sequenceTransform`, or `nil` if the sequence was already finished.
196 | /// - Throws: `AsyncSequenceReaderError.insufficientElements` if a complete byte sequence could not be returned by the time the sequence ended.
197 | public mutating func collect<Transformed>(
| `- note: candidate has partially matching parameter list (min: Int, max: Int, sequenceTransform: (AsyncReadUpToCountSequence<BaseIterator>) async throws -> Transformed)
198 | min minCount: Int = 0,
199 | max maxCount: Int,
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncSequenceReader.swift:14:48: error: cannot find type 'AsyncIteratorProtocol' in scope
12 | ///
13 | /// When finished, the iterator can be read back to read other values.
14 | public class AsyncSequenceReader<BaseIterator: AsyncIteratorProtocol>: AsyncReadSequence {
| `- error: cannot find type 'AsyncIteratorProtocol' in scope
15 | /// The baseIterator to read from.
16 | ///
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncSequenceReader.swift:36:32: error: cannot find type 'AsyncSequence' in scope
34 | }
35 |
36 | extension AsyncSequenceReader: AsyncSequence {
| `- error: cannot find type 'AsyncSequence' in scope
37 | /// The type of element produced by this asynchronous sequence.
38 | ///
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncSequenceReader.swift:40:45: error: 'Element' is not a member type of type 'BaseIterator'
38 | ///
39 | /// The read sequence produces whatever type of element its base iterator produces.
40 | public typealias Element = BaseIterator.Element
| `- error: 'Element' is not a member type of type 'BaseIterator'
41 |
42 | /// The iterator that produces elements of the read sequence.
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncSequenceReader.swift:29:15: error: @escaping attribute only applies to function types
27 | init(
28 | _ baseIterator: AsyncBufferedIterator<BaseIterator>,
29 | read: @escaping (_ iterator: inout AsyncBufferedIterator<BaseIterator>) async throws -> Element?
| `- error: @escaping attribute only applies to function types
30 | ) {
31 | self.baseIterator = baseIterator
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncSequenceReader.swift:43:34: error: cannot find type 'AsyncIteratorProtocol' in scope
41 |
42 | /// The iterator that produces elements of the read sequence.
43 | public struct AsyncIterator: AsyncIteratorProtocol {
| `- error: cannot find type 'AsyncIteratorProtocol' in scope
44 | @usableFromInline
45 | var readSequence: AsyncSequenceReader
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncSequenceReader.swift:68:128: error: cannot find type 'Element' in scope
66 |
67 | extension AsyncSequenceReader: @unchecked Sendable where BaseIterator: Sendable, BaseIterator.Element: Sendable {}
68 | extension AsyncSequenceReader.AsyncIterator: @unchecked Sendable where BaseIterator: Sendable, BaseIterator.Element: Sendable, Element: Sendable {}
| `- error: cannot find type 'Element' in scope
69 |
70 | #endif
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncSequenceReader.swift:67:95: error: 'Element' is not a member type of type 'BaseIterator'
65 | }
66 |
67 | extension AsyncSequenceReader: @unchecked Sendable where BaseIterator: Sendable, BaseIterator.Element: Sendable {}
| `- error: 'Element' is not a member type of type 'BaseIterator'
68 | extension AsyncSequenceReader.AsyncIterator: @unchecked Sendable where BaseIterator: Sendable, BaseIterator.Element: Sendable, Element: Sendable {}
69 |
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncSequenceReader.swift:68:109: error: 'Element' is not a member type of type 'BaseIterator'
66 |
67 | extension AsyncSequenceReader: @unchecked Sendable where BaseIterator: Sendable, BaseIterator.Element: Sendable {}
68 | extension AsyncSequenceReader.AsyncIterator: @unchecked Sendable where BaseIterator: Sendable, BaseIterator.Element: Sendable, Element: Sendable {}
| `- error: 'Element' is not a member type of type 'BaseIterator'
69 |
70 | #endif
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncSequenceReaderError.swift:21:37: error: 'init(describing:)' is unavailable: unavailable in embedded Swift
19 |
20 | public var description: String {
21 | "AsyncSequenceReaderError.\(String(describing: code))"
| `- error: 'init(describing:)' is unavailable: unavailable in embedded Swift
22 | }
23 |
Swift.String.init:2:8: note: 'init(describing:)' has been explicitly marked unavailable here
1 | struct String {
2 | public init<Subject>(describing instance: Subject)}
| `- note: 'init(describing:)' has been explicitly marked unavailable here
3 |
[7/8] Compiling AsyncSequenceReader AnyReadableSequence.swift
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AnyReadableSequence.swift:14:34: error: cannot find type 'AsyncIteratorProtocol' in scope
12 | let makeUnderlyingIterator: @Sendable () -> () async throws -> Element?
13 |
14 | public struct AsyncIterator: AsyncIteratorProtocol {
| `- error: cannot find type 'AsyncIteratorProtocol' in scope
15 | @usableFromInline
16 | let makeUnderlyingNext: () async throws -> Element?
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AnyReadableSequence.swift:51:20: error: cannot find type 'AsyncSequence' in scope
49 | /// Initialize ``AnyReadableSequence`` with an async sequence.
50 | @inlinable
51 | public init<S: AsyncSequence & Sendable>(_ sequence: S) where S.Element == Element, Element: Sendable {
| `- error: cannot find type 'AsyncSequence' in scope
52 | self.init {
53 | var iterator = sequence.makeAsyncIterator()
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AnyReadableSequence.swift:51:69: error: 'Element' is not a member type of type 'S'
49 | /// Initialize ``AnyReadableSequence`` with an async sequence.
50 | @inlinable
51 | public init<S: AsyncSequence & Sendable>(_ sequence: S) where S.Element == Element, Element: Sendable {
| `- error: 'Element' is not a member type of type 'S'
52 | self.init {
53 | var iterator = sequence.makeAsyncIterator()
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AnyReadableSequence.swift:10:45: error: cannot find type 'AsyncSequence' in scope
8 |
9 | /// A type-erased convenience type to normalize synchronous and asynchronous sequences into a common async type.
10 | public struct AnyReadableSequence<Element>: AsyncSequence {
| `- error: cannot find type 'AsyncSequence' in scope
11 | @usableFromInline
12 | let makeUnderlyingIterator: @Sendable () -> () async throws -> Element?
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AnyReadableSequence.swift:53:37: error: value of type 'S' has no member 'makeAsyncIterator'
51 | public init<S: AsyncSequence & Sendable>(_ sequence: S) where S.Element == Element, Element: Sendable {
52 | self.init {
53 | var iterator = sequence.makeAsyncIterator()
| `- error: value of type 'S' has no member 'makeAsyncIterator'
54 |
55 | return { try await iterator.next() }
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncBufferedIterator.swift:12:51: error: cannot find type 'AsyncIteratorProtocol' in scope
10 |
11 | /// An iterator that wraps and can buffer another iterator, allowing safe reading ahead.
12 | public struct AsyncBufferedIterator<BaseIterator: AsyncIteratorProtocol>: AsyncIteratorProtocol {
| `- error: cannot find type 'AsyncIteratorProtocol' in scope
13 | @usableFromInline
14 | var baseIterator: BaseIterator
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncBufferedIterator.swift:20:41: error: 'Element' is not a member type of type 'BaseIterator'
18 | /// - Note:Ideally, this should be implemented using some sort of cyclical buffer like a Deque, but in practice, it will only ever have one entry.
19 | @usableFromInline
20 | var unconsumedBuffer: [BaseIterator.Element] = []
| `- error: 'Element' is not a member type of type 'BaseIterator'
21 |
22 | @usableFromInline
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncBufferedIterator.swift:28:64: error: 'Element' is not a member type of type 'BaseIterator'
26 |
27 | @inlinable
28 | public mutating func next() async rethrows -> BaseIterator.Element? {
| `- error: 'Element' is not a member type of type 'BaseIterator'
29 | guard unconsumedBuffer.isEmpty else {
30 | return unconsumedBuffer.removeFirst()
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncBufferedIterator.swift:28:39: error: 'rethrows' function must take a throwing function argument
26 |
27 | @inlinable
28 | public mutating func next() async rethrows -> BaseIterator.Element? {
| `- error: 'rethrows' function must take a throwing function argument
29 | guard unconsumedBuffer.isEmpty else {
30 | return unconsumedBuffer.removeFirst()
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncBufferedIterator.swift:39:67: error: 'Element' is not a member type of type 'BaseIterator'
37 | /// - Returns: The read-ahead value.
38 | @usableFromInline
39 | mutating func nextUnconsumed() async rethrows -> BaseIterator.Element? {
| `- error: 'Element' is not a member type of type 'BaseIterator'
40 | let next = try await baseIterator.next()
41 | if let value = next {
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncBufferedIterator.swift:39:42: error: 'rethrows' function must take a throwing function argument
37 | /// - Returns: The read-ahead value.
38 | @usableFromInline
39 | mutating func nextUnconsumed() async rethrows -> BaseIterator.Element? {
| `- error: 'rethrows' function must take a throwing function argument
40 | let next = try await baseIterator.next()
41 | if let value = next {
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncBufferedIterator.swift:53:46: error: 'rethrows' function must take a throwing function argument
51 | /// - Returns: A Bool indicating if there is more to consume or not.
52 | @inlinable
53 | public mutating func hasMoreData() async rethrows -> Bool {
| `- error: 'rethrows' function must take a throwing function argument
54 | guard unconsumedBuffer.isEmpty else {
55 | return true
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncBufferedIterator.swift:12:75: error: cannot find type 'AsyncIteratorProtocol' in scope
10 |
11 | /// An iterator that wraps and can buffer another iterator, allowing safe reading ahead.
12 | public struct AsyncBufferedIterator<BaseIterator: AsyncIteratorProtocol>: AsyncIteratorProtocol {
| `- error: cannot find type 'AsyncIteratorProtocol' in scope
13 | @usableFromInline
14 | var baseIterator: BaseIterator
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncBufferedIterator.swift:62:86: error: 'Element' is not a member type of type 'BaseIterator'
60 | }
61 |
62 | extension AsyncBufferedIterator: Sendable where BaseIterator: Sendable, BaseIterator.Element: Sendable {}
| `- error: 'Element' is not a member type of type 'BaseIterator'
63 |
64 | #endif
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncBufferedIterator.swift:40:43: error: value of type 'BaseIterator' has no member 'next'
38 | @usableFromInline
39 | mutating func nextUnconsumed() async rethrows -> BaseIterator.Element? {
40 | let next = try await baseIterator.next()
| `- error: value of type 'BaseIterator' has no member 'next'
41 | if let value = next {
42 | unconsumedBuffer.append(value)
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:11:11: error: cannot find type 'AsyncSequence' in scope
9 | #if compiler(>=5.5) && canImport(_Concurrency)
10 |
11 | extension AsyncSequence {
| `- error: cannot find type 'AsyncSequence' in scope
12 | /// Creates an asynchronous sequence that maps the given closure over an iterator for the sequence, which can itself accept multiple reads.
13 | ///
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:94:46: error: cannot find type 'AsyncSequence' in scope
92 |
93 | /// An asynchronous sequence that maps the given closure over the asynchronous sequence’s elements by providing it with the base sequence's iterator to assemble multiple reads into a single transformed object.
94 | public struct AsyncIteratorMapSequence<Base: AsyncSequence, Transformed> {
| `- error: cannot find type 'AsyncSequence' in scope
95 | @usableFromInline
96 | let base: Base
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:99:76: error: 'AsyncIterator' is not a member type of type 'Base'
97 |
98 | @usableFromInline
99 | let transform: @Sendable (_ iterator: inout AsyncBufferedIterator<Base.AsyncIterator>) async -> Transformed
| `- error: 'AsyncIterator' is not a member type of type 'Base'
100 |
101 | @usableFromInline
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:104:86: error: 'AsyncIterator' is not a member type of type 'Base'
102 | init(
103 | _ base: Base,
104 | transform: @Sendable @escaping (_ iterator: inout AsyncBufferedIterator<Base.AsyncIterator>) async -> Transformed
| `- error: 'AsyncIterator' is not a member type of type 'Base'
105 | ) {
106 | self.base = base
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:111:37: error: cannot find type 'AsyncSequence' in scope
109 | }
110 |
111 | extension AsyncIteratorMapSequence: AsyncSequence {
| `- error: cannot find type 'AsyncSequence' in scope
112 | /// The type of element produced by this asynchronous sequence.
113 | ///
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:120:54: error: 'AsyncIterator' is not a member type of type 'Base'
118 | public struct AsyncIterator: AsyncIteratorProtocol {
119 | @usableFromInline
120 | var baseIterator: AsyncBufferedIterator<Base.AsyncIterator>
| `- error: 'AsyncIterator' is not a member type of type 'Base'
121 | @usableFromInline
122 | let transform: @Sendable (_ iterator: inout AsyncBufferedIterator<Base.AsyncIterator>) async -> Transformed
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:122:80: error: 'AsyncIterator' is not a member type of type 'Base'
120 | var baseIterator: AsyncBufferedIterator<Base.AsyncIterator>
121 | @usableFromInline
122 | let transform: @Sendable (_ iterator: inout AsyncBufferedIterator<Base.AsyncIterator>) async -> Transformed
| `- error: 'AsyncIterator' is not a member type of type 'Base'
123 |
124 | @usableFromInline
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:126:56: error: 'AsyncIterator' is not a member type of type 'Base'
124 | @usableFromInline
125 | init(
126 | _ baseIterator: AsyncBufferedIterator<Base.AsyncIterator>,
| `- error: 'AsyncIterator' is not a member type of type 'Base'
127 | transform: @Sendable @escaping (inout AsyncBufferedIterator<Base.AsyncIterator>) async -> Transformed
128 | ) {
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:127:78: error: 'AsyncIterator' is not a member type of type 'Base'
125 | init(
126 | _ baseIterator: AsyncBufferedIterator<Base.AsyncIterator>,
127 | transform: @Sendable @escaping (inout AsyncBufferedIterator<Base.AsyncIterator>) async -> Transformed
| `- error: 'AsyncIterator' is not a member type of type 'Base'
128 | ) {
129 | self.baseIterator = baseIterator
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:137:43: error: 'rethrows' function must take a throwing function argument
135 | /// This iterator calls `next()` on its (wrapped) base iterator, and stores the result; if this call returns `nil`, `next()` returns `nil`. Otherwise, `next()` returns the result of calling the transforming closure on the received element.
136 | @inlinable
137 | public mutating func next() async rethrows -> Transformed? {
| `- error: 'rethrows' function must take a throwing function argument
138 | guard try await baseIterator.hasMoreData() else {
139 | return nil
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:118:34: error: cannot find type 'AsyncIteratorProtocol' in scope
116 |
117 | /// The iterator that produces elements of the map sequence.
118 | public struct AsyncIterator: AsyncIteratorProtocol {
| `- error: cannot find type 'AsyncIteratorProtocol' in scope
119 | @usableFromInline
120 | var baseIterator: AsyncBufferedIterator<Base.AsyncIterator>
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:152:135: error: cannot find type 'Element' in scope
150 |
151 | extension AsyncIteratorMapSequence: Sendable where Base: Sendable, Transformed: Sendable, Base.Element: Sendable, Base.AsyncIterator: Sendable {}
152 | extension AsyncIteratorMapSequence.AsyncIterator: Sendable where Base: Sendable, Base.AsyncIterator: Sendable, Transformed: Sendable, Element: Sendable, Base.Element: Sendable {}
| `- error: cannot find type 'Element' in scope
153 |
154 | public struct AsyncThrowingIteratorMapSequence<Base, Transformed> where Base : AsyncSequence {
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:151:96: error: 'Element' is not a member type of type 'Base'
149 | }
150 |
151 | extension AsyncIteratorMapSequence: Sendable where Base: Sendable, Transformed: Sendable, Base.Element: Sendable, Base.AsyncIterator: Sendable {}
| `- error: 'Element' is not a member type of type 'Base'
152 | extension AsyncIteratorMapSequence.AsyncIterator: Sendable where Base: Sendable, Base.AsyncIterator: Sendable, Transformed: Sendable, Element: Sendable, Base.Element: Sendable {}
153 |
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:151:120: error: 'AsyncIterator' is not a member type of type 'Base'
149 | }
150 |
151 | extension AsyncIteratorMapSequence: Sendable where Base: Sendable, Transformed: Sendable, Base.Element: Sendable, Base.AsyncIterator: Sendable {}
| `- error: 'AsyncIterator' is not a member type of type 'Base'
152 | extension AsyncIteratorMapSequence.AsyncIterator: Sendable where Base: Sendable, Base.AsyncIterator: Sendable, Transformed: Sendable, Element: Sendable, Base.Element: Sendable {}
153 |
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:152:87: error: 'AsyncIterator' is not a member type of type 'Base'
150 |
151 | extension AsyncIteratorMapSequence: Sendable where Base: Sendable, Transformed: Sendable, Base.Element: Sendable, Base.AsyncIterator: Sendable {}
152 | extension AsyncIteratorMapSequence.AsyncIterator: Sendable where Base: Sendable, Base.AsyncIterator: Sendable, Transformed: Sendable, Element: Sendable, Base.Element: Sendable {}
| `- error: 'AsyncIterator' is not a member type of type 'Base'
153 |
154 | public struct AsyncThrowingIteratorMapSequence<Base, Transformed> where Base : AsyncSequence {
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:152:159: error: 'Element' is not a member type of type 'Base'
150 |
151 | extension AsyncIteratorMapSequence: Sendable where Base: Sendable, Transformed: Sendable, Base.Element: Sendable, Base.AsyncIterator: Sendable {}
152 | extension AsyncIteratorMapSequence.AsyncIterator: Sendable where Base: Sendable, Base.AsyncIterator: Sendable, Transformed: Sendable, Element: Sendable, Base.Element: Sendable {}
| `- error: 'Element' is not a member type of type 'Base'
153 |
154 | public struct AsyncThrowingIteratorMapSequence<Base, Transformed> where Base : AsyncSequence {
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:154:80: error: cannot find type 'AsyncSequence' in scope
152 | extension AsyncIteratorMapSequence.AsyncIterator: Sendable where Base: Sendable, Base.AsyncIterator: Sendable, Transformed: Sendable, Element: Sendable, Base.Element: Sendable {}
153 |
154 | public struct AsyncThrowingIteratorMapSequence<Base, Transformed> where Base : AsyncSequence {
| `- error: cannot find type 'AsyncSequence' in scope
155 | @usableFromInline
156 | let base: Base
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:159:76: error: 'AsyncIterator' is not a member type of type 'Base'
157 |
158 | @usableFromInline
159 | let transform: @Sendable (_ iterator: inout AsyncBufferedIterator<Base.AsyncIterator>) async throws -> Transformed
| `- error: 'AsyncIterator' is not a member type of type 'Base'
160 |
161 | @usableFromInline
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:164:86: error: 'AsyncIterator' is not a member type of type 'Base'
162 | init(
163 | _ base: Base,
164 | transform: @Sendable @escaping (_ iterator: inout AsyncBufferedIterator<Base.AsyncIterator>) async throws -> Transformed
| `- error: 'AsyncIterator' is not a member type of type 'Base'
165 | ) {
166 | self.base = base
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:171:45: error: cannot find type 'AsyncSequence' in scope
169 | }
170 |
171 | extension AsyncThrowingIteratorMapSequence: AsyncSequence {
| `- error: cannot find type 'AsyncSequence' in scope
172 | public typealias Element = Transformed
173 |
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:176:54: error: 'AsyncIterator' is not a member type of type 'Base'
174 | public struct AsyncIterator: AsyncIteratorProtocol {
175 | @usableFromInline
176 | var baseIterator: AsyncBufferedIterator<Base.AsyncIterator>
| `- error: 'AsyncIterator' is not a member type of type 'Base'
177 |
178 | @usableFromInline
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:179:80: error: 'AsyncIterator' is not a member type of type 'Base'
177 |
178 | @usableFromInline
179 | let transform: @Sendable (_ iterator: inout AsyncBufferedIterator<Base.AsyncIterator>) async throws -> Transformed
| `- error: 'AsyncIterator' is not a member type of type 'Base'
180 |
181 | @usableFromInline
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:186:56: error: 'AsyncIterator' is not a member type of type 'Base'
184 | @usableFromInline
185 | init(
186 | _ baseIterator: AsyncBufferedIterator<Base.AsyncIterator>,
| `- error: 'AsyncIterator' is not a member type of type 'Base'
187 | transform: @Sendable @escaping (inout AsyncBufferedIterator<Base.AsyncIterator>) async throws -> Transformed
188 | ) {
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:187:78: error: 'AsyncIterator' is not a member type of type 'Base'
185 | init(
186 | _ baseIterator: AsyncBufferedIterator<Base.AsyncIterator>,
187 | transform: @Sendable @escaping (inout AsyncBufferedIterator<Base.AsyncIterator>) async throws -> Transformed
| `- error: 'AsyncIterator' is not a member type of type 'Base'
188 | ) {
189 | self.baseIterator = baseIterator
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:174:34: error: cannot find type 'AsyncIteratorProtocol' in scope
172 | public typealias Element = Transformed
173 |
174 | public struct AsyncIterator: AsyncIteratorProtocol {
| `- error: cannot find type 'AsyncIteratorProtocol' in scope
175 | @usableFromInline
176 | var baseIterator: AsyncBufferedIterator<Base.AsyncIterator>
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:217:143: error: cannot find type 'Element' in scope
215 |
216 | extension AsyncThrowingIteratorMapSequence: Sendable where Base: Sendable, Transformed: Sendable, Base.Element: Sendable, Base.AsyncIterator: Sendable {}
217 | extension AsyncThrowingIteratorMapSequence.AsyncIterator: Sendable where Base: Sendable, Base.AsyncIterator: Sendable, Transformed: Sendable, Element: Sendable, Base.Element: Sendable {}
| `- error: cannot find type 'Element' in scope
218 |
219 | #endif
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:216:104: error: 'Element' is not a member type of type 'Base'
214 | }
215 |
216 | extension AsyncThrowingIteratorMapSequence: Sendable where Base: Sendable, Transformed: Sendable, Base.Element: Sendable, Base.AsyncIterator: Sendable {}
| `- error: 'Element' is not a member type of type 'Base'
217 | extension AsyncThrowingIteratorMapSequence.AsyncIterator: Sendable where Base: Sendable, Base.AsyncIterator: Sendable, Transformed: Sendable, Element: Sendable, Base.Element: Sendable {}
218 |
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:216:128: error: 'AsyncIterator' is not a member type of type 'Base'
214 | }
215 |
216 | extension AsyncThrowingIteratorMapSequence: Sendable where Base: Sendable, Transformed: Sendable, Base.Element: Sendable, Base.AsyncIterator: Sendable {}
| `- error: 'AsyncIterator' is not a member type of type 'Base'
217 | extension AsyncThrowingIteratorMapSequence.AsyncIterator: Sendable where Base: Sendable, Base.AsyncIterator: Sendable, Transformed: Sendable, Element: Sendable, Base.Element: Sendable {}
218 |
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:217:95: error: 'AsyncIterator' is not a member type of type 'Base'
215 |
216 | extension AsyncThrowingIteratorMapSequence: Sendable where Base: Sendable, Transformed: Sendable, Base.Element: Sendable, Base.AsyncIterator: Sendable {}
217 | extension AsyncThrowingIteratorMapSequence.AsyncIterator: Sendable where Base: Sendable, Base.AsyncIterator: Sendable, Transformed: Sendable, Element: Sendable, Base.Element: Sendable {}
| `- error: 'AsyncIterator' is not a member type of type 'Base'
218 |
219 | #endif
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:217:167: error: 'Element' is not a member type of type 'Base'
215 |
216 | extension AsyncThrowingIteratorMapSequence: Sendable where Base: Sendable, Transformed: Sendable, Base.Element: Sendable, Base.AsyncIterator: Sendable {}
217 | extension AsyncThrowingIteratorMapSequence.AsyncIterator: Sendable where Base: Sendable, Base.AsyncIterator: Sendable, Transformed: Sendable, Element: Sendable, Base.Element: Sendable {}
| `- error: 'Element' is not a member type of type 'Base'
218 |
219 | #endif
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:147:50: error: value of type 'Base' has no member 'makeAsyncIterator'
145 | @inlinable
146 | public func makeAsyncIterator() -> AsyncIterator {
147 | AsyncIterator(AsyncBufferedIterator(base.makeAsyncIterator()), transform: transform)
| `- error: value of type 'Base' has no member 'makeAsyncIterator'
148 | }
149 | }
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:212:50: error: value of type 'Base' has no member 'makeAsyncIterator'
210 | @inlinable
211 | public func makeAsyncIterator() -> AsyncIterator {
212 | AsyncIterator(AsyncBufferedIterator(base.makeAsyncIterator()), transform: transform)
| `- error: value of type 'Base' has no member 'makeAsyncIterator'
213 | }
214 | }
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadSequence.swift:14:36: error: cannot find type 'AsyncSequence' in scope
12 | ///
13 | /// Note that to conform to this protocol, your type must be a reference type. After iterating, you'll also likely want to copy the base iterator back into your starting iterator, as shown in ``AsyncIteratorProtocol/transform(with:readSequenceFactory:)``.
14 | public protocol AsyncReadSequence: AsyncSequence, AnyObject {
| `- error: cannot find type 'AsyncSequence' in scope
15 | associatedtype BaseIterator: AsyncIteratorProtocol where BaseIterator.Element == Element
16 |
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadSequence.swift:15:34: error: cannot find type 'AsyncIteratorProtocol' in scope
13 | /// Note that to conform to this protocol, your type must be a reference type. After iterating, you'll also likely want to copy the base iterator back into your starting iterator, as shown in ``AsyncIteratorProtocol/transform(with:readSequenceFactory:)``.
14 | public protocol AsyncReadSequence: AsyncSequence, AnyObject {
15 | associatedtype BaseIterator: AsyncIteratorProtocol where BaseIterator.Element == Element
| `- error: cannot find type 'AsyncIteratorProtocol' in scope
16 |
17 | @inlinable
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadSequence.swift:15:86: error: cannot find type 'Element' in scope
13 | /// Note that to conform to this protocol, your type must be a reference type. After iterating, you'll also likely want to copy the base iterator back into your starting iterator, as shown in ``AsyncIteratorProtocol/transform(with:readSequenceFactory:)``.
14 | public protocol AsyncReadSequence: AsyncSequence, AnyObject {
15 | associatedtype BaseIterator: AsyncIteratorProtocol where BaseIterator.Element == Element
| `- error: cannot find type 'Element' in scope
16 |
17 | @inlinable
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadSequence.swift:15:75: error: 'Element' is not a member type of type 'Self.BaseIterator'
13 | /// Note that to conform to this protocol, your type must be a reference type. After iterating, you'll also likely want to copy the base iterator back into your starting iterator, as shown in ``AsyncIteratorProtocol/transform(with:readSequenceFactory:)``.
14 | public protocol AsyncReadSequence: AsyncSequence, AnyObject {
15 | associatedtype BaseIterator: AsyncIteratorProtocol where BaseIterator.Element == Element
| `- error: 'Element' is not a member type of type 'Self.BaseIterator'
16 |
17 | @inlinable
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadSequence.swift:21:11: error: cannot find type 'AsyncIteratorProtocol' in scope
19 | }
20 |
21 | extension AsyncIteratorProtocol {
| `- error: cannot find type 'AsyncIteratorProtocol' in scope
22 | /// Transform the receiving iterator using the specified sequence transformer and configured read sequence.
23 | ///
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToCountSequence.swift:11:11: error: cannot find type 'AsyncIteratorProtocol' in scope
9 | #if compiler(>=5.5) && canImport(_Concurrency)
10 |
11 | extension AsyncIteratorProtocol {
| `- error: cannot find type 'AsyncIteratorProtocol' in scope
12 | /// Asynchronously advances by the specified number of elements, or ends the sequence if there is no next element.
13 | ///
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToCountSequence.swift:207:61: error: cannot find type 'AsyncIteratorProtocol' in scope
205 |
206 | /// An asynchronous sequence that will read from a mutable iterator so long as the specified conditions are valid.
207 | public final class AsyncReadUpToCountSequence<BaseIterator: AsyncIteratorProtocol>: AsyncReadSequence {
| `- error: cannot find type 'AsyncIteratorProtocol' in scope
208 | /// The baseIterator to read from.
209 | ///
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToCountSequence.swift:233:39: error: cannot find type 'AsyncSequence' in scope
231 | }
232 |
233 | extension AsyncReadUpToCountSequence: AsyncSequence {
| `- error: cannot find type 'AsyncSequence' in scope
234 | /// The type of element produced by this asynchronous sequence.
235 | ///
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToCountSequence.swift:237:45: error: 'Element' is not a member type of type 'BaseIterator'
235 | ///
236 | /// The read sequence produces whatever type of element its base iterator produces.
237 | public typealias Element = BaseIterator.Element
| `- error: 'Element' is not a member type of type 'BaseIterator'
238 |
239 | /// The iterator that produces elements of the read sequence.
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToCountSequence.swift:240:34: error: cannot find type 'AsyncIteratorProtocol' in scope
238 |
239 | /// The iterator that produces elements of the read sequence.
240 | public struct AsyncIterator: AsyncIteratorProtocol {
| `- error: cannot find type 'AsyncIteratorProtocol' in scope
241 | @usableFromInline
242 | var readSequence: AsyncReadUpToCountSequence
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToCountSequence.swift:279:135: error: cannot find type 'Element' in scope
277 |
278 | extension AsyncReadUpToCountSequence: @unchecked Sendable where BaseIterator: Sendable, BaseIterator.Element: Sendable {}
279 | extension AsyncReadUpToCountSequence.AsyncIterator: @unchecked Sendable where BaseIterator: Sendable, BaseIterator.Element: Sendable, Element: Sendable {}
| `- error: cannot find type 'Element' in scope
280 |
281 | #endif
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToCountSequence.swift:278:102: error: 'Element' is not a member type of type 'BaseIterator'
276 | }
277 |
278 | extension AsyncReadUpToCountSequence: @unchecked Sendable where BaseIterator: Sendable, BaseIterator.Element: Sendable {}
| `- error: 'Element' is not a member type of type 'BaseIterator'
279 | extension AsyncReadUpToCountSequence.AsyncIterator: @unchecked Sendable where BaseIterator: Sendable, BaseIterator.Element: Sendable, Element: Sendable {}
280 |
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToCountSequence.swift:279:116: error: 'Element' is not a member type of type 'BaseIterator'
277 |
278 | extension AsyncReadUpToCountSequence: @unchecked Sendable where BaseIterator: Sendable, BaseIterator.Element: Sendable {}
279 | extension AsyncReadUpToCountSequence.AsyncIterator: @unchecked Sendable where BaseIterator: Sendable, BaseIterator.Element: Sendable, Element: Sendable {}
| `- error: 'Element' is not a member type of type 'BaseIterator'
280 |
281 | #endif
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:336:36: error: cannot find type 'Element' in scope
334 | /// - Returns: A transformed value as returned by `sequenceTransform`, or `nil` if the sequence was already finished.
335 | public mutating func collect<Transformed>(
336 | upToIncluding termination: Element,
| `- error: cannot find type 'Element' in scope
337 | sequenceTransform: (AsyncReadUpToElementsSequence<Self>) async -> Transformed
338 | ) async throws -> Transformed? where Element: Equatable {
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:338:42: error: cannot find type 'Element' in scope
336 | upToIncluding termination: Element,
337 | sequenceTransform: (AsyncReadUpToElementsSequence<Self>) async -> Transformed
338 | ) async throws -> Transformed? where Element: Equatable {
| `- error: cannot find type 'Element' in scope
339 | try await collect(upToIncluding: [termination], sequenceTransform: sequenceTransform)
340 | }
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:455:58: error: cannot find type 'AsyncIteratorProtocol' in scope
453 |
454 | /// An asynchronous sequence that will read from a mutable iterator so long as the specified conditions are valid.
455 | public class AsyncReadUpToElementsSequence<BaseIterator: AsyncIteratorProtocol>: AsyncReadSequence where BaseIterator.Element: Equatable {
| `- error: cannot find type 'AsyncIteratorProtocol' in scope
456 | /// The baseIterator to read from.
457 | ///
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:373:37: error: cannot find type 'Element' in scope
371 | /// - Returns: A transformed value as returned by `sequenceTransform`, or `nil` if the sequence was already finished.
372 | public mutating func collect<Transformed>(
373 | upToIncluding termination: [Element],
| `- error: cannot find type 'Element' in scope
374 | sequenceTransform: (AsyncReadUpToElementsSequence<BaseIterator>) async -> Transformed
375 | ) async throws -> Transformed? where Element: Equatable {
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:375:42: error: cannot find type 'Element' in scope
373 | upToIncluding termination: [Element],
374 | sequenceTransform: (AsyncReadUpToElementsSequence<BaseIterator>) async -> Transformed
375 | ) async throws -> Transformed? where Element: Equatable {
| `- error: cannot find type 'Element' in scope
376 | try await transform(with: sequenceTransform) { .init($0, termination: termination) }
377 | }
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:410:36: error: cannot find type 'Element' in scope
408 | /// - Returns: A transformed value as returned by `sequenceTransform`, or `nil` if the sequence was already finished.
409 | public mutating func collect<Transformed>(
410 | upToIncluding termination: Element,
| `- error: cannot find type 'Element' in scope
411 | sequenceTransform: (AsyncReadUpToElementsSequence<Self>) async throws -> Transformed
412 | ) async throws -> Transformed? where Element: Equatable {
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:412:42: error: cannot find type 'Element' in scope
410 | upToIncluding termination: Element,
411 | sequenceTransform: (AsyncReadUpToElementsSequence<Self>) async throws -> Transformed
412 | ) async throws -> Transformed? where Element: Equatable {
| `- error: cannot find type 'Element' in scope
413 | try await collect(upToIncluding: [termination], sequenceTransform: sequenceTransform)
414 | }
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:447:37: error: cannot find type 'Element' in scope
445 | /// - Returns: A transformed value as returned by `sequenceTransform`, or `nil` if the sequence was already finished.
446 | public mutating func collect<Transformed>(
447 | upToIncluding termination: [Element],
| `- error: cannot find type 'Element' in scope
448 | sequenceTransform: (AsyncReadUpToElementsSequence<BaseIterator>) async throws -> Transformed
449 | ) async throws -> Transformed? where Element: Equatable {
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:449:42: error: cannot find type 'Element' in scope
447 | upToIncluding termination: [Element],
448 | sequenceTransform: (AsyncReadUpToElementsSequence<BaseIterator>) async throws -> Transformed
449 | ) async throws -> Transformed? where Element: Equatable {
| `- error: cannot find type 'Element' in scope
450 | try await transform(with: sequenceTransform) { .init($0, termination: termination) }
451 | }
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:11:11: error: cannot find type 'AsyncIteratorProtocol' in scope
9 | #if compiler(>=5.5) && canImport(_Concurrency)
10 |
11 | extension AsyncIteratorProtocol {
| `- error: cannot find type 'AsyncIteratorProtocol' in scope
12 |
13 | /// Collect elements into a sequence until the termination sequence is encountered, and return them as an array, including the termination sequence.
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:455:119: error: 'Element' is not a member type of type 'BaseIterator'
453 |
454 | /// An asynchronous sequence that will read from a mutable iterator so long as the specified conditions are valid.
455 | public class AsyncReadUpToElementsSequence<BaseIterator: AsyncIteratorProtocol>: AsyncReadSequence where BaseIterator.Element: Equatable {
| `- error: 'Element' is not a member type of type 'BaseIterator'
456 | /// The baseIterator to read from.
457 | ///
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:475:42: error: cannot find type 'AsyncSequence' in scope
473 | }
474 |
475 | extension AsyncReadUpToElementsSequence: AsyncSequence {
| `- error: cannot find type 'AsyncSequence' in scope
476 | /// The type of element produced by this asynchronous sequence.
477 | ///
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:479:45: error: 'Element' is not a member type of type 'BaseIterator'
477 | ///
478 | /// The read sequence produces whatever type of element its base iterator produces.
479 | public typealias Element = BaseIterator.Element
| `- error: 'Element' is not a member type of type 'BaseIterator'
480 |
481 | /// The iterator that produces elements of the read sequence.
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:499:43: error: 'rethrows' function must take a throwing function argument
497 | /// This iterator checks if `bufferedSuffix` has is equal to the termination. If it isn't, then it'll read until it does. If the next value read marks the end of the sequence, but the termination was not identified, the sequence ends without error.
498 | @inlinable
499 | public mutating func next() async rethrows -> Element? {
| `- error: 'rethrows' function must take a throwing function argument
500 | guard
501 | bufferedSuffix != readSequence.termination,
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:482:34: error: cannot find type 'AsyncIteratorProtocol' in scope
480 |
481 | /// The iterator that produces elements of the read sequence.
482 | public struct AsyncIterator: AsyncIteratorProtocol {
| `- error: cannot find type 'AsyncIteratorProtocol' in scope
483 | @usableFromInline
484 | var readSequence: AsyncReadUpToElementsSequence
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:518:138: error: cannot find type 'Element' in scope
516 |
517 | extension AsyncReadUpToElementsSequence: @unchecked Sendable where BaseIterator: Sendable, BaseIterator.Element: Sendable {}
518 | extension AsyncReadUpToElementsSequence.AsyncIterator: @unchecked Sendable where BaseIterator: Sendable, BaseIterator.Element: Sendable, Element: Sendable {}
| `- error: cannot find type 'Element' in scope
519 |
520 | #endif
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:517:105: error: 'Element' is not a member type of type 'BaseIterator'
515 | }
516 |
517 | extension AsyncReadUpToElementsSequence: @unchecked Sendable where BaseIterator: Sendable, BaseIterator.Element: Sendable {}
| `- error: 'Element' is not a member type of type 'BaseIterator'
518 | extension AsyncReadUpToElementsSequence.AsyncIterator: @unchecked Sendable where BaseIterator: Sendable, BaseIterator.Element: Sendable, Element: Sendable {}
519 |
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:518:119: error: 'Element' is not a member type of type 'BaseIterator'
516 |
517 | extension AsyncReadUpToElementsSequence: @unchecked Sendable where BaseIterator: Sendable, BaseIterator.Element: Sendable {}
518 | extension AsyncReadUpToElementsSequence.AsyncIterator: @unchecked Sendable where BaseIterator: Sendable, BaseIterator.Element: Sendable, Element: Sendable {}
| `- error: 'Element' is not a member type of type 'BaseIterator'
519 |
520 | #endif
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:339:19: error: no exact matches in call to instance method 'collect'
337 | sequenceTransform: (AsyncReadUpToElementsSequence<Self>) async -> Transformed
338 | ) async throws -> Transformed? where Element: Equatable {
339 | try await collect(upToIncluding: [termination], sequenceTransform: sequenceTransform)
| `- error: no exact matches in call to instance method 'collect'
340 | }
341 |
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToCountSequence.swift:159:26: note: candidate has partially matching parameter list (Int, sequenceTransform: (AsyncReadUpToCountSequence<BaseIterator>) async throws -> Transformed)
157 | /// - Returns: A transformed value as returned by `sequenceTransform`, or `nil` if the sequence was already finished.
158 | /// - Throws: `AsyncSequenceReaderError.insufficientElements` if a complete byte sequence could not be returned by the time the sequence ended.
159 | public mutating func collect<Transformed>(
| `- note: candidate has partially matching parameter list (Int, sequenceTransform: (AsyncReadUpToCountSequence<BaseIterator>) async throws -> Transformed)
160 | _ count: Int,
161 | sequenceTransform: (AsyncReadUpToCountSequence<BaseIterator>) async throws -> Transformed
:
195 | /// - Returns: A transformed value as returned by `sequenceTransform`, or `nil` if the sequence was already finished.
196 | /// - Throws: `AsyncSequenceReaderError.insufficientElements` if a complete byte sequence could not be returned by the time the sequence ended.
197 | public mutating func collect<Transformed>(
| `- note: candidate has partially matching parameter list (min: Int, max: Int, sequenceTransform: (AsyncReadUpToCountSequence<BaseIterator>) async throws -> Transformed)
198 | min minCount: Int = 0,
199 | max maxCount: Int,
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:413:19: error: no exact matches in call to instance method 'collect'
411 | sequenceTransform: (AsyncReadUpToElementsSequence<Self>) async throws -> Transformed
412 | ) async throws -> Transformed? where Element: Equatable {
413 | try await collect(upToIncluding: [termination], sequenceTransform: sequenceTransform)
| `- error: no exact matches in call to instance method 'collect'
414 | }
415 |
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToCountSequence.swift:159:26: note: candidate has partially matching parameter list (Int, sequenceTransform: (AsyncReadUpToCountSequence<BaseIterator>) async throws -> Transformed)
157 | /// - Returns: A transformed value as returned by `sequenceTransform`, or `nil` if the sequence was already finished.
158 | /// - Throws: `AsyncSequenceReaderError.insufficientElements` if a complete byte sequence could not be returned by the time the sequence ended.
159 | public mutating func collect<Transformed>(
| `- note: candidate has partially matching parameter list (Int, sequenceTransform: (AsyncReadUpToCountSequence<BaseIterator>) async throws -> Transformed)
160 | _ count: Int,
161 | sequenceTransform: (AsyncReadUpToCountSequence<BaseIterator>) async throws -> Transformed
:
195 | /// - Returns: A transformed value as returned by `sequenceTransform`, or `nil` if the sequence was already finished.
196 | /// - Throws: `AsyncSequenceReaderError.insufficientElements` if a complete byte sequence could not be returned by the time the sequence ended.
197 | public mutating func collect<Transformed>(
| `- note: candidate has partially matching parameter list (min: Int, max: Int, sequenceTransform: (AsyncReadUpToCountSequence<BaseIterator>) async throws -> Transformed)
198 | min minCount: Int = 0,
199 | max maxCount: Int,
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncSequenceReader.swift:14:48: error: cannot find type 'AsyncIteratorProtocol' in scope
12 | ///
13 | /// When finished, the iterator can be read back to read other values.
14 | public class AsyncSequenceReader<BaseIterator: AsyncIteratorProtocol>: AsyncReadSequence {
| `- error: cannot find type 'AsyncIteratorProtocol' in scope
15 | /// The baseIterator to read from.
16 | ///
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncSequenceReader.swift:36:32: error: cannot find type 'AsyncSequence' in scope
34 | }
35 |
36 | extension AsyncSequenceReader: AsyncSequence {
| `- error: cannot find type 'AsyncSequence' in scope
37 | /// The type of element produced by this asynchronous sequence.
38 | ///
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncSequenceReader.swift:40:45: error: 'Element' is not a member type of type 'BaseIterator'
38 | ///
39 | /// The read sequence produces whatever type of element its base iterator produces.
40 | public typealias Element = BaseIterator.Element
| `- error: 'Element' is not a member type of type 'BaseIterator'
41 |
42 | /// The iterator that produces elements of the read sequence.
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncSequenceReader.swift:29:15: error: @escaping attribute only applies to function types
27 | init(
28 | _ baseIterator: AsyncBufferedIterator<BaseIterator>,
29 | read: @escaping (_ iterator: inout AsyncBufferedIterator<BaseIterator>) async throws -> Element?
| `- error: @escaping attribute only applies to function types
30 | ) {
31 | self.baseIterator = baseIterator
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncSequenceReader.swift:43:34: error: cannot find type 'AsyncIteratorProtocol' in scope
41 |
42 | /// The iterator that produces elements of the read sequence.
43 | public struct AsyncIterator: AsyncIteratorProtocol {
| `- error: cannot find type 'AsyncIteratorProtocol' in scope
44 | @usableFromInline
45 | var readSequence: AsyncSequenceReader
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncSequenceReader.swift:68:128: error: cannot find type 'Element' in scope
66 |
67 | extension AsyncSequenceReader: @unchecked Sendable where BaseIterator: Sendable, BaseIterator.Element: Sendable {}
68 | extension AsyncSequenceReader.AsyncIterator: @unchecked Sendable where BaseIterator: Sendable, BaseIterator.Element: Sendable, Element: Sendable {}
| `- error: cannot find type 'Element' in scope
69 |
70 | #endif
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncSequenceReader.swift:67:95: error: 'Element' is not a member type of type 'BaseIterator'
65 | }
66 |
67 | extension AsyncSequenceReader: @unchecked Sendable where BaseIterator: Sendable, BaseIterator.Element: Sendable {}
| `- error: 'Element' is not a member type of type 'BaseIterator'
68 | extension AsyncSequenceReader.AsyncIterator: @unchecked Sendable where BaseIterator: Sendable, BaseIterator.Element: Sendable, Element: Sendable {}
69 |
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncSequenceReader.swift:68:109: error: 'Element' is not a member type of type 'BaseIterator'
66 |
67 | extension AsyncSequenceReader: @unchecked Sendable where BaseIterator: Sendable, BaseIterator.Element: Sendable {}
68 | extension AsyncSequenceReader.AsyncIterator: @unchecked Sendable where BaseIterator: Sendable, BaseIterator.Element: Sendable, Element: Sendable {}
| `- error: 'Element' is not a member type of type 'BaseIterator'
69 |
70 | #endif
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncSequenceReaderError.swift:21:37: error: 'init(describing:)' is unavailable: unavailable in embedded Swift
19 |
20 | public var description: String {
21 | "AsyncSequenceReaderError.\(String(describing: code))"
| `- error: 'init(describing:)' is unavailable: unavailable in embedded Swift
22 | }
23 |
Swift.String.init:2:8: note: 'init(describing:)' has been explicitly marked unavailable here
1 | struct String {
2 | public init<Subject>(describing instance: Subject)}
| `- note: 'init(describing:)' has been explicitly marked unavailable here
3 |
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:45:116: error: cannot find type 'AsyncIterator' in scope
43 | /// - Returns: An asynchronous sequence that contains, in order, elements produced by the `transform` closure.
44 | @inlinable
45 | public func iteratorMap<Transformed>(_ transform: @Sendable @escaping (_ iterator: inout AsyncBufferedIterator<AsyncIterator>) async -> Transformed) -> AsyncIteratorMapSequence<Self, Transformed> {
| `- error: cannot find type 'AsyncIterator' in scope
46 | AsyncIteratorMapSequence(self, transform: transform)
47 | }
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncIteratorMapSequence.swift:88:116: error: cannot find type 'AsyncIterator' in scope
86 | /// - Returns: An asynchronous sequence that contains, in order, elements produced by the `transform` closure.
87 | @inlinable
88 | public func iteratorMap<Transformed>(_ transform: @Sendable @escaping (_ iterator: inout AsyncBufferedIterator<AsyncIterator>) async throws -> Transformed) -> AsyncThrowingIteratorMapSequence<Self, Transformed> {
| `- error: cannot find type 'AsyncIterator' in scope
89 | AsyncThrowingIteratorMapSequence(self, transform: transform)
90 | }
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToCountSequence.swift:18:65: error: cannot find type 'Element' in scope
16 | /// - Returns: A collection with exactly `count` elements, or `nil` if the sequence is finished.
17 | /// - Throws: `AsyncSequenceReaderError.insufficientElements` if a complete byte sequence could not be returned by the time the sequence ended.
18 | public mutating func collect(_ count: Int) async throws -> [Element]? {
| `- error: cannot find type 'Element' in scope
19 | assert(count >= 0, "count must be larger than 0")
20 | return try await collect(min: count, max: count)
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToCountSequence.swift:30:93: error: cannot find type 'Element' in scope
28 | /// - Returns: A collection with at least `minCount` and at most `maxCount` elements, or `nil` if the sequence is finished.
29 | /// - Throws: `AsyncSequenceReaderError.insufficientElements` if a complete byte sequence could not be returned by the time the sequence ended.
30 | public mutating func collect(min minCount: Int = 0, max maxCount: Int) async throws -> [Element]? {
| `- error: cannot find type 'Element' in scope
31 | precondition(minCount <= maxCount, "maxCount must be larger than or equal to minCount")
32 | precondition(minCount >= 0, "minCount must be larger than 0")
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:40:34: error: 'where' clause on non-generic member declaration requires a generic context
38 | upToIncluding termination: Element,
39 | throwsIfOver maximumBufferSize: Int
40 | ) async throws -> [Element]? where Element: Equatable {
| `- error: 'where' clause on non-generic member declaration requires a generic context
41 | try await collect(upToIncluding: [termination], throwsIfOver: maximumBufferSize)
42 | }
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:40:24: error: cannot find type 'Element' in scope
38 | upToIncluding termination: Element,
39 | throwsIfOver maximumBufferSize: Int
40 | ) async throws -> [Element]? where Element: Equatable {
| `- error: cannot find type 'Element' in scope
41 | try await collect(upToIncluding: [termination], throwsIfOver: maximumBufferSize)
42 | }
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:38:36: error: cannot find type 'Element' in scope
36 | /// - Throws: `AsyncSequenceReaderError.terminationNotFound` if a complete byte sequence could not be returned by the time the sequence ended.
37 | public mutating func collect(
38 | upToIncluding termination: Element,
| `- error: cannot find type 'Element' in scope
39 | throwsIfOver maximumBufferSize: Int
40 | ) async throws -> [Element]? where Element: Equatable {
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:71:34: error: 'where' clause on non-generic member declaration requires a generic context
69 | upToIncluding termination: [Element],
70 | throwsIfOver maximumBufferSize: Int
71 | ) async throws -> [Element]? where Element: Equatable {
| `- error: 'where' clause on non-generic member declaration requires a generic context
72 | precondition(!termination.isEmpty, "stopSequence must not be empty")
73 | var result = [Element]()
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:71:24: error: cannot find type 'Element' in scope
69 | upToIncluding termination: [Element],
70 | throwsIfOver maximumBufferSize: Int
71 | ) async throws -> [Element]? where Element: Equatable {
| `- error: cannot find type 'Element' in scope
72 | precondition(!termination.isEmpty, "stopSequence must not be empty")
73 | var result = [Element]()
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:69:37: error: cannot find type 'Element' in scope
67 | /// - Throws: `AsyncSequenceReaderError.terminationNotFound` if a complete byte sequence could not be returned by the time the sequence ended.
68 | public mutating func collect(
69 | upToIncluding termination: [Element],
| `- error: cannot find type 'Element' in scope
70 | throwsIfOver maximumBufferSize: Int
71 | ) async throws -> [Element]? where Element: Equatable {
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:119:34: error: 'where' clause on non-generic member declaration requires a generic context
117 | upToExcluding termination: Element,
118 | throwsIfOver maximumBufferSize: Int
119 | ) async throws -> [Element]? where Element: Equatable {
| `- error: 'where' clause on non-generic member declaration requires a generic context
120 | try await collect(upToExcluding: [termination], throwsIfOver: maximumBufferSize)
121 | }
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:119:24: error: cannot find type 'Element' in scope
117 | upToExcluding termination: Element,
118 | throwsIfOver maximumBufferSize: Int
119 | ) async throws -> [Element]? where Element: Equatable {
| `- error: cannot find type 'Element' in scope
120 | try await collect(upToExcluding: [termination], throwsIfOver: maximumBufferSize)
121 | }
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:117:36: error: cannot find type 'Element' in scope
115 | /// - Throws: `AsyncSequenceReaderError.terminationNotFound` if a complete byte sequence could not be returned by the time the sequence ended.
116 | public mutating func collect(
117 | upToExcluding termination: Element,
| `- error: cannot find type 'Element' in scope
118 | throwsIfOver maximumBufferSize: Int
119 | ) async throws -> [Element]? where Element: Equatable {
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:150:34: error: 'where' clause on non-generic member declaration requires a generic context
148 | upToExcluding termination: [Element],
149 | throwsIfOver maximumBufferSize: Int
150 | ) async throws -> [Element]? where Element: Equatable {
| `- error: 'where' clause on non-generic member declaration requires a generic context
151 | try await collect(upToIncluding: termination, throwsIfOver: maximumBufferSize)?.dropLast(termination.count)
152 | }
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:150:24: error: cannot find type 'Element' in scope
148 | upToExcluding termination: [Element],
149 | throwsIfOver maximumBufferSize: Int
150 | ) async throws -> [Element]? where Element: Equatable {
| `- error: cannot find type 'Element' in scope
151 | try await collect(upToIncluding: termination, throwsIfOver: maximumBufferSize)?.dropLast(termination.count)
152 | }
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:148:37: error: cannot find type 'Element' in scope
146 | /// - Throws: `AsyncSequenceReaderError.terminationNotFound` if a complete byte sequence could not be returned by the time the sequence ended.
147 | public mutating func collect(
148 | upToExcluding termination: [Element],
| `- error: cannot find type 'Element' in scope
149 | throwsIfOver maximumBufferSize: Int
150 | ) async throws -> [Element]? where Element: Equatable {
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:185:36: error: cannot find type 'Element' in scope
183 | /// - Returns: A transformed value as returned by `sequenceTransform`, or `nil` if the sequence was already finished.
184 | public mutating func collect<Transformed>(
185 | upToIncluding termination: Element,
| `- error: cannot find type 'Element' in scope
186 | sequenceTransform: (AsyncReadUpToElementsSequence<Self>) async -> Transformed
187 | ) async throws -> Transformed? where Element: Equatable {
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:187:42: error: cannot find type 'Element' in scope
185 | upToIncluding termination: Element,
186 | sequenceTransform: (AsyncReadUpToElementsSequence<Self>) async -> Transformed
187 | ) async throws -> Transformed? where Element: Equatable {
| `- error: cannot find type 'Element' in scope
188 | try await collect(upToIncluding: [termination], sequenceTransform: sequenceTransform)
189 | }
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:222:37: error: cannot find type 'Element' in scope
220 | /// - Returns: A transformed value as returned by `sequenceTransform`, or `nil` if the sequence was already finished.
221 | public mutating func collect<Transformed>(
222 | upToIncluding termination: [Element],
| `- error: cannot find type 'Element' in scope
223 | sequenceTransform: (AsyncReadUpToElementsSequence<Self>) async -> Transformed
224 | ) async throws -> Transformed? where Element: Equatable {
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:224:42: error: cannot find type 'Element' in scope
222 | upToIncluding termination: [Element],
223 | sequenceTransform: (AsyncReadUpToElementsSequence<Self>) async -> Transformed
224 | ) async throws -> Transformed? where Element: Equatable {
| `- error: cannot find type 'Element' in scope
225 | try await transform(with: sequenceTransform) { .init($0, termination: termination) }
226 | }
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:259:36: error: cannot find type 'Element' in scope
257 | /// - Returns: A transformed value as returned by `sequenceTransform`, or `nil` if the sequence was already finished.
258 | public mutating func collect<Transformed>(
259 | upToIncluding termination: Element,
| `- error: cannot find type 'Element' in scope
260 | sequenceTransform: (AsyncReadUpToElementsSequence<Self>) async throws -> Transformed
261 | ) async throws -> Transformed? where Element: Equatable {
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:261:42: error: cannot find type 'Element' in scope
259 | upToIncluding termination: Element,
260 | sequenceTransform: (AsyncReadUpToElementsSequence<Self>) async throws -> Transformed
261 | ) async throws -> Transformed? where Element: Equatable {
| `- error: cannot find type 'Element' in scope
262 | try await collect(upToIncluding: [termination], sequenceTransform: sequenceTransform)
263 | }
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:296:37: error: cannot find type 'Element' in scope
294 | /// - Returns: A transformed value as returned by `sequenceTransform`, or `nil` if the sequence was already finished.
295 | public mutating func collect<Transformed>(
296 | upToIncluding termination: [Element],
| `- error: cannot find type 'Element' in scope
297 | sequenceTransform: (AsyncReadUpToElementsSequence<Self>) async throws -> Transformed
298 | ) async throws -> Transformed? where Element: Equatable {
/host/spi-builder-workspace/.build/checkouts/AsyncSequenceReader/Sources/AsyncSequenceReader/AsyncReadUpToElementsSequence.swift:298:42: error: cannot find type 'Element' in scope
296 | upToIncluding termination: [Element],
297 | sequenceTransform: (AsyncReadUpToElementsSequence<Self>) async throws -> Transformed
298 | ) async throws -> Transformed? where Element: Equatable {
| `- error: cannot find type 'Element' in scope
299 | try await transform(with: sequenceTransform) { .init($0, termination: termination) }
300 | }
BUILD FAILURE 6.2 wasm