Build Information
Failed to build Syntax, reference 2.0.0 (602cfa
), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 01:24:21 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
47 | public static let stringLiteral: Kind = "string.literal"
48 | public static let stringContent: Kind = "string.content"
49 | public static let stringStartDelimiter: Kind = "string.delimiter.start"
| |- warning: static property 'stringStartDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringStartDelimiter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
51 | public static let stringEscapedCharacter: Kind = "string.escaped.character"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:50:23: warning: static property 'stringEndDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
48 | public static let stringContent: Kind = "string.content"
49 | public static let stringStartDelimiter: Kind = "string.delimiter.start"
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
| |- warning: static property 'stringEndDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringEndDelimiter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | public static let stringEscapedCharacter: Kind = "string.escaped.character"
52 | public static let stringEscapedDelimiter: Kind = "string.escaped.delimiter"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:51:23: warning: static property 'stringEscapedCharacter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
49 | public static let stringStartDelimiter: Kind = "string.delimiter.start"
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
51 | public static let stringEscapedCharacter: Kind = "string.escaped.character"
| |- warning: static property 'stringEscapedCharacter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringEscapedCharacter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 | public static let stringEscapedDelimiter: Kind = "string.escaped.delimiter"
53 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:52:23: warning: static property 'stringEscapedDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
51 | public static let stringEscapedCharacter: Kind = "string.escaped.character"
52 | public static let stringEscapedDelimiter: Kind = "string.escaped.delimiter"
| |- warning: static property 'stringEscapedDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringEscapedDelimiter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 |
54 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:23:30: error: contextual closure type '(Substring, String) throws -> Substring' expects 2 arguments, but 1 was used in closure body
21 | }
22 | .map { annotated in
23 | annotated.string { $0 }
| `- error: contextual closure type '(Substring, String) throws -> Substring' expects 2 arguments, but 1 was used in closure body
24 | }
25 | .kind(.stringContent)
[66/79] Compiling Syntax BooleanLiteral.swift
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/BooleanLiteral.swift:6:23: warning: static property 'kind' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public struct BooleanLiteral: Parser {
6 | public static var kind: Kind = .booleanLiteral
| |- warning: static property 'kind' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'kind' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'kind' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | let trueValues: Set<String>
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/BooleanLiteral.swift:35:23: warning: static property 'booleanLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
33 | extension Kind {
34 |
35 | public static let booleanLiteral: Kind = "boolean.literal"
| `- warning: static property 'booleanLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/BooleanLiteral.swift:3:12: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
1 |
2 | import Foundation
3 | @_exported import SyntaxTree
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
4 |
5 | public struct BooleanLiteral: Parser {
:
33 | extension Kind {
34 |
35 | public static let booleanLiteral: Kind = "boolean.literal"
| |- note: add '@MainActor' to make static property 'booleanLiteral' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/DoubleLiteral.swift:9:23: warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public struct DoubleLiteral: Parser {
9 | public static let kind: Kind = .doubleLiteral
| `- warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public init() { }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/DoubleLiteral.swift:3:12: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
1 |
2 | import Foundation
3 | @_exported import SyntaxTree
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
4 |
5 | private let numberFormatter = NumberFormatter()
:
7 |
8 | public struct DoubleLiteral: Parser {
9 | public static let kind: Kind = .doubleLiteral
| |- note: add '@MainActor' to make static property 'kind' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 | public init() { }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/DoubleLiteral.swift:26:23: warning: static property 'doubleLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
24 | extension Kind {
25 |
26 | public static let doubleLiteral: Kind = "double.literal"
| |- warning: static property 'doubleLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'doubleLiteral' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/IntLiteral.swift:9:23: warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public struct IntLiteral: Parser {
9 | public static let kind: Kind = .intLiteral
| `- warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public init() { }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/IntLiteral.swift:3:12: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
1 |
2 | import Foundation
3 | @_exported import SyntaxTree
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
4 |
5 | private let numberFormatter = NumberFormatter()
:
7 |
8 | public struct IntLiteral: Parser {
9 | public static let kind: Kind = .intLiteral
| |- note: add '@MainActor' to make static property 'kind' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 | public init() { }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/IntLiteral.swift:27:23: warning: static property 'intLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
25 | extension Kind {
26 |
27 | public static let intLiteral: Kind = "int.literal"
| |- warning: static property 'intLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'intLiteral' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 |
29 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:6:23: warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public struct StringLiteral: Parser {
6 | public static let kind: Kind = .stringLiteral
| `- warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | private let start: String
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:3:12: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
1 |
2 | import Foundation
3 | @_exported import SyntaxTree
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
4 |
5 | public struct StringLiteral: Parser {
6 | public static let kind: Kind = .stringLiteral
| |- note: add '@MainActor' to make static property 'kind' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | private let start: String
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:47:23: warning: static property 'stringLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
45 | extension Kind {
46 |
47 | public static let stringLiteral: Kind = "string.literal"
| |- warning: static property 'stringLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringLiteral' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | public static let stringContent: Kind = "string.content"
49 | public static let stringStartDelimiter: Kind = "string.delimiter.start"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:48:23: warning: static property 'stringContent' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
46 |
47 | public static let stringLiteral: Kind = "string.literal"
48 | public static let stringContent: Kind = "string.content"
| |- warning: static property 'stringContent' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringContent' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | public static let stringStartDelimiter: Kind = "string.delimiter.start"
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:49:23: warning: static property 'stringStartDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
47 | public static let stringLiteral: Kind = "string.literal"
48 | public static let stringContent: Kind = "string.content"
49 | public static let stringStartDelimiter: Kind = "string.delimiter.start"
| |- warning: static property 'stringStartDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringStartDelimiter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
51 | public static let stringEscapedCharacter: Kind = "string.escaped.character"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:50:23: warning: static property 'stringEndDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
48 | public static let stringContent: Kind = "string.content"
49 | public static let stringStartDelimiter: Kind = "string.delimiter.start"
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
| |- warning: static property 'stringEndDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringEndDelimiter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | public static let stringEscapedCharacter: Kind = "string.escaped.character"
52 | public static let stringEscapedDelimiter: Kind = "string.escaped.delimiter"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:51:23: warning: static property 'stringEscapedCharacter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
49 | public static let stringStartDelimiter: Kind = "string.delimiter.start"
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
51 | public static let stringEscapedCharacter: Kind = "string.escaped.character"
| |- warning: static property 'stringEscapedCharacter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringEscapedCharacter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 | public static let stringEscapedDelimiter: Kind = "string.escaped.delimiter"
53 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:52:23: warning: static property 'stringEscapedDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
51 | public static let stringEscapedCharacter: Kind = "string.escaped.character"
52 | public static let stringEscapedDelimiter: Kind = "string.escaped.delimiter"
| |- warning: static property 'stringEscapedDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringEscapedDelimiter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 |
54 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:23:30: error: contextual closure type '(Substring, String) throws -> Substring' expects 2 arguments, but 1 was used in closure body
21 | }
22 | .map { annotated in
23 | annotated.string { $0 }
| `- error: contextual closure type '(Substring, String) throws -> Substring' expects 2 arguments, but 1 was used in closure body
24 | }
25 | .kind(.stringContent)
[67/79] Compiling Syntax DoubleLiteral.swift
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/BooleanLiteral.swift:6:23: warning: static property 'kind' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public struct BooleanLiteral: Parser {
6 | public static var kind: Kind = .booleanLiteral
| |- warning: static property 'kind' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'kind' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'kind' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | let trueValues: Set<String>
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/BooleanLiteral.swift:35:23: warning: static property 'booleanLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
33 | extension Kind {
34 |
35 | public static let booleanLiteral: Kind = "boolean.literal"
| `- warning: static property 'booleanLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/BooleanLiteral.swift:3:12: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
1 |
2 | import Foundation
3 | @_exported import SyntaxTree
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
4 |
5 | public struct BooleanLiteral: Parser {
:
33 | extension Kind {
34 |
35 | public static let booleanLiteral: Kind = "boolean.literal"
| |- note: add '@MainActor' to make static property 'booleanLiteral' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/DoubleLiteral.swift:9:23: warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public struct DoubleLiteral: Parser {
9 | public static let kind: Kind = .doubleLiteral
| `- warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public init() { }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/DoubleLiteral.swift:3:12: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
1 |
2 | import Foundation
3 | @_exported import SyntaxTree
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
4 |
5 | private let numberFormatter = NumberFormatter()
:
7 |
8 | public struct DoubleLiteral: Parser {
9 | public static let kind: Kind = .doubleLiteral
| |- note: add '@MainActor' to make static property 'kind' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 | public init() { }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/DoubleLiteral.swift:26:23: warning: static property 'doubleLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
24 | extension Kind {
25 |
26 | public static let doubleLiteral: Kind = "double.literal"
| |- warning: static property 'doubleLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'doubleLiteral' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/IntLiteral.swift:9:23: warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public struct IntLiteral: Parser {
9 | public static let kind: Kind = .intLiteral
| `- warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public init() { }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/IntLiteral.swift:3:12: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
1 |
2 | import Foundation
3 | @_exported import SyntaxTree
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
4 |
5 | private let numberFormatter = NumberFormatter()
:
7 |
8 | public struct IntLiteral: Parser {
9 | public static let kind: Kind = .intLiteral
| |- note: add '@MainActor' to make static property 'kind' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 | public init() { }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/IntLiteral.swift:27:23: warning: static property 'intLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
25 | extension Kind {
26 |
27 | public static let intLiteral: Kind = "int.literal"
| |- warning: static property 'intLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'intLiteral' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 |
29 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:6:23: warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public struct StringLiteral: Parser {
6 | public static let kind: Kind = .stringLiteral
| `- warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | private let start: String
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:3:12: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
1 |
2 | import Foundation
3 | @_exported import SyntaxTree
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
4 |
5 | public struct StringLiteral: Parser {
6 | public static let kind: Kind = .stringLiteral
| |- note: add '@MainActor' to make static property 'kind' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | private let start: String
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:47:23: warning: static property 'stringLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
45 | extension Kind {
46 |
47 | public static let stringLiteral: Kind = "string.literal"
| |- warning: static property 'stringLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringLiteral' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | public static let stringContent: Kind = "string.content"
49 | public static let stringStartDelimiter: Kind = "string.delimiter.start"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:48:23: warning: static property 'stringContent' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
46 |
47 | public static let stringLiteral: Kind = "string.literal"
48 | public static let stringContent: Kind = "string.content"
| |- warning: static property 'stringContent' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringContent' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | public static let stringStartDelimiter: Kind = "string.delimiter.start"
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:49:23: warning: static property 'stringStartDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
47 | public static let stringLiteral: Kind = "string.literal"
48 | public static let stringContent: Kind = "string.content"
49 | public static let stringStartDelimiter: Kind = "string.delimiter.start"
| |- warning: static property 'stringStartDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringStartDelimiter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
51 | public static let stringEscapedCharacter: Kind = "string.escaped.character"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:50:23: warning: static property 'stringEndDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
48 | public static let stringContent: Kind = "string.content"
49 | public static let stringStartDelimiter: Kind = "string.delimiter.start"
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
| |- warning: static property 'stringEndDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringEndDelimiter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | public static let stringEscapedCharacter: Kind = "string.escaped.character"
52 | public static let stringEscapedDelimiter: Kind = "string.escaped.delimiter"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:51:23: warning: static property 'stringEscapedCharacter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
49 | public static let stringStartDelimiter: Kind = "string.delimiter.start"
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
51 | public static let stringEscapedCharacter: Kind = "string.escaped.character"
| |- warning: static property 'stringEscapedCharacter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringEscapedCharacter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 | public static let stringEscapedDelimiter: Kind = "string.escaped.delimiter"
53 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:52:23: warning: static property 'stringEscapedDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
51 | public static let stringEscapedCharacter: Kind = "string.escaped.character"
52 | public static let stringEscapedDelimiter: Kind = "string.escaped.delimiter"
| |- warning: static property 'stringEscapedDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringEscapedDelimiter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 |
54 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:23:30: error: contextual closure type '(Substring, String) throws -> Substring' expects 2 arguments, but 1 was used in closure body
21 | }
22 | .map { annotated in
23 | annotated.string { $0 }
| `- error: contextual closure type '(Substring, String) throws -> Substring' expects 2 arguments, but 1 was used in closure body
24 | }
25 | .kind(.stringContent)
[68/79] Compiling Syntax IntLiteral.swift
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/BooleanLiteral.swift:6:23: warning: static property 'kind' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public struct BooleanLiteral: Parser {
6 | public static var kind: Kind = .booleanLiteral
| |- warning: static property 'kind' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'kind' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'kind' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | let trueValues: Set<String>
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/BooleanLiteral.swift:35:23: warning: static property 'booleanLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
33 | extension Kind {
34 |
35 | public static let booleanLiteral: Kind = "boolean.literal"
| `- warning: static property 'booleanLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/BooleanLiteral.swift:3:12: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
1 |
2 | import Foundation
3 | @_exported import SyntaxTree
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
4 |
5 | public struct BooleanLiteral: Parser {
:
33 | extension Kind {
34 |
35 | public static let booleanLiteral: Kind = "boolean.literal"
| |- note: add '@MainActor' to make static property 'booleanLiteral' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/DoubleLiteral.swift:9:23: warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public struct DoubleLiteral: Parser {
9 | public static let kind: Kind = .doubleLiteral
| `- warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public init() { }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/DoubleLiteral.swift:3:12: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
1 |
2 | import Foundation
3 | @_exported import SyntaxTree
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
4 |
5 | private let numberFormatter = NumberFormatter()
:
7 |
8 | public struct DoubleLiteral: Parser {
9 | public static let kind: Kind = .doubleLiteral
| |- note: add '@MainActor' to make static property 'kind' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 | public init() { }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/DoubleLiteral.swift:26:23: warning: static property 'doubleLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
24 | extension Kind {
25 |
26 | public static let doubleLiteral: Kind = "double.literal"
| |- warning: static property 'doubleLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'doubleLiteral' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/IntLiteral.swift:9:23: warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public struct IntLiteral: Parser {
9 | public static let kind: Kind = .intLiteral
| `- warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public init() { }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/IntLiteral.swift:3:12: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
1 |
2 | import Foundation
3 | @_exported import SyntaxTree
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
4 |
5 | private let numberFormatter = NumberFormatter()
:
7 |
8 | public struct IntLiteral: Parser {
9 | public static let kind: Kind = .intLiteral
| |- note: add '@MainActor' to make static property 'kind' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 | public init() { }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/IntLiteral.swift:27:23: warning: static property 'intLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
25 | extension Kind {
26 |
27 | public static let intLiteral: Kind = "int.literal"
| |- warning: static property 'intLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'intLiteral' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 |
29 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:6:23: warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public struct StringLiteral: Parser {
6 | public static let kind: Kind = .stringLiteral
| `- warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | private let start: String
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:3:12: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
1 |
2 | import Foundation
3 | @_exported import SyntaxTree
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
4 |
5 | public struct StringLiteral: Parser {
6 | public static let kind: Kind = .stringLiteral
| |- note: add '@MainActor' to make static property 'kind' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | private let start: String
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:47:23: warning: static property 'stringLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
45 | extension Kind {
46 |
47 | public static let stringLiteral: Kind = "string.literal"
| |- warning: static property 'stringLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringLiteral' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | public static let stringContent: Kind = "string.content"
49 | public static let stringStartDelimiter: Kind = "string.delimiter.start"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:48:23: warning: static property 'stringContent' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
46 |
47 | public static let stringLiteral: Kind = "string.literal"
48 | public static let stringContent: Kind = "string.content"
| |- warning: static property 'stringContent' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringContent' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | public static let stringStartDelimiter: Kind = "string.delimiter.start"
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:49:23: warning: static property 'stringStartDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
47 | public static let stringLiteral: Kind = "string.literal"
48 | public static let stringContent: Kind = "string.content"
49 | public static let stringStartDelimiter: Kind = "string.delimiter.start"
| |- warning: static property 'stringStartDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringStartDelimiter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
51 | public static let stringEscapedCharacter: Kind = "string.escaped.character"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:50:23: warning: static property 'stringEndDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
48 | public static let stringContent: Kind = "string.content"
49 | public static let stringStartDelimiter: Kind = "string.delimiter.start"
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
| |- warning: static property 'stringEndDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringEndDelimiter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | public static let stringEscapedCharacter: Kind = "string.escaped.character"
52 | public static let stringEscapedDelimiter: Kind = "string.escaped.delimiter"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:51:23: warning: static property 'stringEscapedCharacter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
49 | public static let stringStartDelimiter: Kind = "string.delimiter.start"
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
51 | public static let stringEscapedCharacter: Kind = "string.escaped.character"
| |- warning: static property 'stringEscapedCharacter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringEscapedCharacter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 | public static let stringEscapedDelimiter: Kind = "string.escaped.delimiter"
53 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:52:23: warning: static property 'stringEscapedDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
51 | public static let stringEscapedCharacter: Kind = "string.escaped.character"
52 | public static let stringEscapedDelimiter: Kind = "string.escaped.delimiter"
| |- warning: static property 'stringEscapedDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringEscapedDelimiter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 |
54 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:23:30: error: contextual closure type '(Substring, String) throws -> Substring' expects 2 arguments, but 1 was used in closure body
21 | }
22 | .map { annotated in
23 | annotated.string { $0 }
| `- error: contextual closure type '(Substring, String) throws -> Substring' expects 2 arguments, but 1 was used in closure body
24 | }
25 | .kind(.stringContent)
[69/79] Compiling Syntax JavaScriptEscapeStrategy.swift
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/BooleanLiteral.swift:6:23: warning: static property 'kind' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public struct BooleanLiteral: Parser {
6 | public static var kind: Kind = .booleanLiteral
| |- warning: static property 'kind' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'kind' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'kind' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | let trueValues: Set<String>
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/BooleanLiteral.swift:35:23: warning: static property 'booleanLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
33 | extension Kind {
34 |
35 | public static let booleanLiteral: Kind = "boolean.literal"
| `- warning: static property 'booleanLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/BooleanLiteral.swift:3:12: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
1 |
2 | import Foundation
3 | @_exported import SyntaxTree
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
4 |
5 | public struct BooleanLiteral: Parser {
:
33 | extension Kind {
34 |
35 | public static let booleanLiteral: Kind = "boolean.literal"
| |- note: add '@MainActor' to make static property 'booleanLiteral' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/DoubleLiteral.swift:9:23: warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public struct DoubleLiteral: Parser {
9 | public static let kind: Kind = .doubleLiteral
| `- warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public init() { }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/DoubleLiteral.swift:3:12: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
1 |
2 | import Foundation
3 | @_exported import SyntaxTree
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
4 |
5 | private let numberFormatter = NumberFormatter()
:
7 |
8 | public struct DoubleLiteral: Parser {
9 | public static let kind: Kind = .doubleLiteral
| |- note: add '@MainActor' to make static property 'kind' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 | public init() { }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/DoubleLiteral.swift:26:23: warning: static property 'doubleLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
24 | extension Kind {
25 |
26 | public static let doubleLiteral: Kind = "double.literal"
| |- warning: static property 'doubleLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'doubleLiteral' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/IntLiteral.swift:9:23: warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public struct IntLiteral: Parser {
9 | public static let kind: Kind = .intLiteral
| `- warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public init() { }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/IntLiteral.swift:3:12: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
1 |
2 | import Foundation
3 | @_exported import SyntaxTree
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
4 |
5 | private let numberFormatter = NumberFormatter()
:
7 |
8 | public struct IntLiteral: Parser {
9 | public static let kind: Kind = .intLiteral
| |- note: add '@MainActor' to make static property 'kind' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 | public init() { }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/IntLiteral.swift:27:23: warning: static property 'intLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
25 | extension Kind {
26 |
27 | public static let intLiteral: Kind = "int.literal"
| |- warning: static property 'intLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'intLiteral' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 |
29 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:6:23: warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public struct StringLiteral: Parser {
6 | public static let kind: Kind = .stringLiteral
| `- warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | private let start: String
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:3:12: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
1 |
2 | import Foundation
3 | @_exported import SyntaxTree
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
4 |
5 | public struct StringLiteral: Parser {
6 | public static let kind: Kind = .stringLiteral
| |- note: add '@MainActor' to make static property 'kind' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | private let start: String
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:47:23: warning: static property 'stringLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
45 | extension Kind {
46 |
47 | public static let stringLiteral: Kind = "string.literal"
| |- warning: static property 'stringLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringLiteral' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | public static let stringContent: Kind = "string.content"
49 | public static let stringStartDelimiter: Kind = "string.delimiter.start"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:48:23: warning: static property 'stringContent' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
46 |
47 | public static let stringLiteral: Kind = "string.literal"
48 | public static let stringContent: Kind = "string.content"
| |- warning: static property 'stringContent' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringContent' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | public static let stringStartDelimiter: Kind = "string.delimiter.start"
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:49:23: warning: static property 'stringStartDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
47 | public static let stringLiteral: Kind = "string.literal"
48 | public static let stringContent: Kind = "string.content"
49 | public static let stringStartDelimiter: Kind = "string.delimiter.start"
| |- warning: static property 'stringStartDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringStartDelimiter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
51 | public static let stringEscapedCharacter: Kind = "string.escaped.character"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:50:23: warning: static property 'stringEndDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
48 | public static let stringContent: Kind = "string.content"
49 | public static let stringStartDelimiter: Kind = "string.delimiter.start"
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
| |- warning: static property 'stringEndDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringEndDelimiter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | public static let stringEscapedCharacter: Kind = "string.escaped.character"
52 | public static let stringEscapedDelimiter: Kind = "string.escaped.delimiter"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:51:23: warning: static property 'stringEscapedCharacter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
49 | public static let stringStartDelimiter: Kind = "string.delimiter.start"
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
51 | public static let stringEscapedCharacter: Kind = "string.escaped.character"
| |- warning: static property 'stringEscapedCharacter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringEscapedCharacter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 | public static let stringEscapedDelimiter: Kind = "string.escaped.delimiter"
53 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:52:23: warning: static property 'stringEscapedDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
51 | public static let stringEscapedCharacter: Kind = "string.escaped.character"
52 | public static let stringEscapedDelimiter: Kind = "string.escaped.delimiter"
| |- warning: static property 'stringEscapedDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringEscapedDelimiter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 |
54 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:23:30: error: contextual closure type '(Substring, String) throws -> Substring' expects 2 arguments, but 1 was used in closure body
21 | }
22 | .map { annotated in
23 | annotated.string { $0 }
| `- error: contextual closure type '(Substring, String) throws -> Substring' expects 2 arguments, but 1 was used in closure body
24 | }
25 | .kind(.stringContent)
[70/79] Compiling Syntax StringEscapeStrategy.swift
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/BooleanLiteral.swift:6:23: warning: static property 'kind' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public struct BooleanLiteral: Parser {
6 | public static var kind: Kind = .booleanLiteral
| |- warning: static property 'kind' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'kind' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'kind' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | let trueValues: Set<String>
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/BooleanLiteral.swift:35:23: warning: static property 'booleanLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
33 | extension Kind {
34 |
35 | public static let booleanLiteral: Kind = "boolean.literal"
| `- warning: static property 'booleanLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/BooleanLiteral.swift:3:12: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
1 |
2 | import Foundation
3 | @_exported import SyntaxTree
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
4 |
5 | public struct BooleanLiteral: Parser {
:
33 | extension Kind {
34 |
35 | public static let booleanLiteral: Kind = "boolean.literal"
| |- note: add '@MainActor' to make static property 'booleanLiteral' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/DoubleLiteral.swift:9:23: warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public struct DoubleLiteral: Parser {
9 | public static let kind: Kind = .doubleLiteral
| `- warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public init() { }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/DoubleLiteral.swift:3:12: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
1 |
2 | import Foundation
3 | @_exported import SyntaxTree
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
4 |
5 | private let numberFormatter = NumberFormatter()
:
7 |
8 | public struct DoubleLiteral: Parser {
9 | public static let kind: Kind = .doubleLiteral
| |- note: add '@MainActor' to make static property 'kind' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 | public init() { }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/DoubleLiteral.swift:26:23: warning: static property 'doubleLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
24 | extension Kind {
25 |
26 | public static let doubleLiteral: Kind = "double.literal"
| |- warning: static property 'doubleLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'doubleLiteral' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/IntLiteral.swift:9:23: warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public struct IntLiteral: Parser {
9 | public static let kind: Kind = .intLiteral
| `- warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public init() { }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/IntLiteral.swift:3:12: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
1 |
2 | import Foundation
3 | @_exported import SyntaxTree
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
4 |
5 | private let numberFormatter = NumberFormatter()
:
7 |
8 | public struct IntLiteral: Parser {
9 | public static let kind: Kind = .intLiteral
| |- note: add '@MainActor' to make static property 'kind' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 | public init() { }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/IntLiteral.swift:27:23: warning: static property 'intLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
25 | extension Kind {
26 |
27 | public static let intLiteral: Kind = "int.literal"
| |- warning: static property 'intLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'intLiteral' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 |
29 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:6:23: warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public struct StringLiteral: Parser {
6 | public static let kind: Kind = .stringLiteral
| `- warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | private let start: String
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:3:12: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
1 |
2 | import Foundation
3 | @_exported import SyntaxTree
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
4 |
5 | public struct StringLiteral: Parser {
6 | public static let kind: Kind = .stringLiteral
| |- note: add '@MainActor' to make static property 'kind' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | private let start: String
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:47:23: warning: static property 'stringLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
45 | extension Kind {
46 |
47 | public static let stringLiteral: Kind = "string.literal"
| |- warning: static property 'stringLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringLiteral' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | public static let stringContent: Kind = "string.content"
49 | public static let stringStartDelimiter: Kind = "string.delimiter.start"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:48:23: warning: static property 'stringContent' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
46 |
47 | public static let stringLiteral: Kind = "string.literal"
48 | public static let stringContent: Kind = "string.content"
| |- warning: static property 'stringContent' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringContent' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | public static let stringStartDelimiter: Kind = "string.delimiter.start"
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:49:23: warning: static property 'stringStartDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
47 | public static let stringLiteral: Kind = "string.literal"
48 | public static let stringContent: Kind = "string.content"
49 | public static let stringStartDelimiter: Kind = "string.delimiter.start"
| |- warning: static property 'stringStartDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringStartDelimiter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
51 | public static let stringEscapedCharacter: Kind = "string.escaped.character"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:50:23: warning: static property 'stringEndDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
48 | public static let stringContent: Kind = "string.content"
49 | public static let stringStartDelimiter: Kind = "string.delimiter.start"
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
| |- warning: static property 'stringEndDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringEndDelimiter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | public static let stringEscapedCharacter: Kind = "string.escaped.character"
52 | public static let stringEscapedDelimiter: Kind = "string.escaped.delimiter"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:51:23: warning: static property 'stringEscapedCharacter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
49 | public static let stringStartDelimiter: Kind = "string.delimiter.start"
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
51 | public static let stringEscapedCharacter: Kind = "string.escaped.character"
| |- warning: static property 'stringEscapedCharacter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringEscapedCharacter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 | public static let stringEscapedDelimiter: Kind = "string.escaped.delimiter"
53 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:52:23: warning: static property 'stringEscapedDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
51 | public static let stringEscapedCharacter: Kind = "string.escaped.character"
52 | public static let stringEscapedDelimiter: Kind = "string.escaped.delimiter"
| |- warning: static property 'stringEscapedDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringEscapedDelimiter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 |
54 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:23:30: error: contextual closure type '(Substring, String) throws -> Substring' expects 2 arguments, but 1 was used in closure body
21 | }
22 | .map { annotated in
23 | annotated.string { $0 }
| `- error: contextual closure type '(Substring, String) throws -> Substring' expects 2 arguments, but 1 was used in closure body
24 | }
25 | .kind(.stringContent)
[71/79] Compiling Syntax StringLiteral.swift
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/BooleanLiteral.swift:6:23: warning: static property 'kind' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public struct BooleanLiteral: Parser {
6 | public static var kind: Kind = .booleanLiteral
| |- warning: static property 'kind' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'kind' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'kind' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | let trueValues: Set<String>
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/BooleanLiteral.swift:35:23: warning: static property 'booleanLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
33 | extension Kind {
34 |
35 | public static let booleanLiteral: Kind = "boolean.literal"
| `- warning: static property 'booleanLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/BooleanLiteral.swift:3:12: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
1 |
2 | import Foundation
3 | @_exported import SyntaxTree
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
4 |
5 | public struct BooleanLiteral: Parser {
:
33 | extension Kind {
34 |
35 | public static let booleanLiteral: Kind = "boolean.literal"
| |- note: add '@MainActor' to make static property 'booleanLiteral' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/DoubleLiteral.swift:9:23: warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public struct DoubleLiteral: Parser {
9 | public static let kind: Kind = .doubleLiteral
| `- warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public init() { }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/DoubleLiteral.swift:3:12: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
1 |
2 | import Foundation
3 | @_exported import SyntaxTree
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
4 |
5 | private let numberFormatter = NumberFormatter()
:
7 |
8 | public struct DoubleLiteral: Parser {
9 | public static let kind: Kind = .doubleLiteral
| |- note: add '@MainActor' to make static property 'kind' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 | public init() { }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/DoubleLiteral.swift:26:23: warning: static property 'doubleLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
24 | extension Kind {
25 |
26 | public static let doubleLiteral: Kind = "double.literal"
| |- warning: static property 'doubleLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'doubleLiteral' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/IntLiteral.swift:9:23: warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public struct IntLiteral: Parser {
9 | public static let kind: Kind = .intLiteral
| `- warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public init() { }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/IntLiteral.swift:3:12: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
1 |
2 | import Foundation
3 | @_exported import SyntaxTree
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
4 |
5 | private let numberFormatter = NumberFormatter()
:
7 |
8 | public struct IntLiteral: Parser {
9 | public static let kind: Kind = .intLiteral
| |- note: add '@MainActor' to make static property 'kind' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 | public init() { }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/IntLiteral.swift:27:23: warning: static property 'intLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
25 | extension Kind {
26 |
27 | public static let intLiteral: Kind = "int.literal"
| |- warning: static property 'intLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'intLiteral' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 |
29 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:6:23: warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public struct StringLiteral: Parser {
6 | public static let kind: Kind = .stringLiteral
| `- warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | private let start: String
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:3:12: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
1 |
2 | import Foundation
3 | @_exported import SyntaxTree
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
4 |
5 | public struct StringLiteral: Parser {
6 | public static let kind: Kind = .stringLiteral
| |- note: add '@MainActor' to make static property 'kind' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | private let start: String
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:47:23: warning: static property 'stringLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
45 | extension Kind {
46 |
47 | public static let stringLiteral: Kind = "string.literal"
| |- warning: static property 'stringLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringLiteral' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | public static let stringContent: Kind = "string.content"
49 | public static let stringStartDelimiter: Kind = "string.delimiter.start"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:48:23: warning: static property 'stringContent' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
46 |
47 | public static let stringLiteral: Kind = "string.literal"
48 | public static let stringContent: Kind = "string.content"
| |- warning: static property 'stringContent' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringContent' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | public static let stringStartDelimiter: Kind = "string.delimiter.start"
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:49:23: warning: static property 'stringStartDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
47 | public static let stringLiteral: Kind = "string.literal"
48 | public static let stringContent: Kind = "string.content"
49 | public static let stringStartDelimiter: Kind = "string.delimiter.start"
| |- warning: static property 'stringStartDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringStartDelimiter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
51 | public static let stringEscapedCharacter: Kind = "string.escaped.character"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:50:23: warning: static property 'stringEndDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
48 | public static let stringContent: Kind = "string.content"
49 | public static let stringStartDelimiter: Kind = "string.delimiter.start"
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
| |- warning: static property 'stringEndDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringEndDelimiter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | public static let stringEscapedCharacter: Kind = "string.escaped.character"
52 | public static let stringEscapedDelimiter: Kind = "string.escaped.delimiter"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:51:23: warning: static property 'stringEscapedCharacter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
49 | public static let stringStartDelimiter: Kind = "string.delimiter.start"
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
51 | public static let stringEscapedCharacter: Kind = "string.escaped.character"
| |- warning: static property 'stringEscapedCharacter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringEscapedCharacter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 | public static let stringEscapedDelimiter: Kind = "string.escaped.delimiter"
53 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:52:23: warning: static property 'stringEscapedDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
51 | public static let stringEscapedCharacter: Kind = "string.escaped.character"
52 | public static let stringEscapedDelimiter: Kind = "string.escaped.delimiter"
| |- warning: static property 'stringEscapedDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringEscapedDelimiter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 |
54 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:23:30: error: contextual closure type '(Substring, String) throws -> Substring' expects 2 arguments, but 1 was used in closure body
21 | }
22 | .map { annotated in
23 | annotated.string { $0 }
| `- error: contextual closure type '(Substring, String) throws -> Substring' expects 2 arguments, but 1 was used in closure body
24 | }
25 | .kind(.stringContent)
[72/79] Emitting module Syntax
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Errors/AnnotatedError.swift:6:16: warning: stored property 'range' of 'Sendable'-conforming struct 'AnnotatedError' has non-sendable type 'Range<Location>'; this is an error in the Swift 6 language mode
4 |
5 | public struct AnnotatedError: Error, DiagnosticError, LocalizedError, CustomStringConvertible, CustomDebugStringConvertible {
6 | public let range: Range<Location>
| `- warning: stored property 'range' of 'Sendable'-conforming struct 'AnnotatedError' has non-sendable type 'Range<Location>'; this is an error in the Swift 6 language mode
7 | public let error: Error
8 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Location.swift:3:15: note: struct 'Location' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public struct Location: Comparable, Encodable {
| `- note: struct 'Location' does not conform to the 'Sendable' protocol
4 | public let line: Int
5 | public let column: Int
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Errors/AnnotatedError.swift:3:12: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
1 |
2 | import Foundation
3 | @_exported import SyntaxTree
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
4 |
5 | public struct AnnotatedError: Error, DiagnosticError, LocalizedError, CustomStringConvertible, CustomDebugStringConvertible {
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Errors/ScannerError.swift:20:16: warning: stored property 'location' of 'Sendable'-conforming struct 'ScannerError' has non-sendable type 'Location'; this is an error in the Swift 6 language mode
18 |
19 | public let index: String.Index
20 | public let location: Location
| `- warning: stored property 'location' of 'Sendable'-conforming struct 'ScannerError' has non-sendable type 'Location'; this is an error in the Swift 6 language mode
21 | public let reason: Reason
22 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Location.swift:3:15: note: struct 'Location' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public struct Location: Comparable, Encodable {
| `- note: struct 'Location' does not conform to the 'Sendable' protocol
4 | public let line: Int
5 | public let column: Int
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Errors/ScannerError.swift:3:12: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
1 |
2 | import Foundation
3 | @_exported import SyntaxTree
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
4 |
5 | public struct ScannerError: DiagnosticError {
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Errors/ScannerError.swift:21:16: warning: stored property 'reason' of 'Sendable'-conforming struct 'ScannerError' has non-sendable type 'ScannerError.Reason'; this is an error in the Swift 6 language mode
4 |
5 | public struct ScannerError: DiagnosticError {
6 | public enum Reason {
| `- note: consider making enum 'Reason' conform to the 'Sendable' protocol
7 | case unexpectedToken(String)
8 | case expected(String)
:
19 | public let index: String.Index
20 | public let location: Location
21 | public let reason: Reason
| `- warning: stored property 'reason' of 'Sendable'-conforming struct 'ScannerError' has non-sendable type 'ScannerError.Reason'; this is an error in the Swift 6 language mode
22 | }
23 |
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/BinaryOperation/BinaryOperationParser.swift:211:23: warning: static property 'binaryOperation' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
209 | extension Kind {
210 |
211 | public static let binaryOperation: Kind = "binary.operation"
| `- warning: static property 'binaryOperation' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
212 | public static let binaryOperator: Kind = "binary.operator"
213 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/BinaryOperation/BinaryOperationParser.swift:3:12: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
1 |
2 | import Foundation
3 | @_exported import SyntaxTree
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
4 |
5 | public struct BinaryOperationParser<Content : Parser, Operator: BinaryOperator>: Parser {
:
209 | extension Kind {
210 |
211 | public static let binaryOperation: Kind = "binary.operation"
| |- note: add '@MainActor' to make static property 'binaryOperation' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
212 | public static let binaryOperator: Kind = "binary.operator"
213 |
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/BinaryOperation/BinaryOperationParser.swift:212:23: warning: static property 'binaryOperator' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
210 |
211 | public static let binaryOperation: Kind = "binary.operation"
212 | public static let binaryOperator: Kind = "binary.operator"
| |- warning: static property 'binaryOperator' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'binaryOperator' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
213 |
214 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/BinaryOperation/BinaryOperationParserError.swift:5:10: warning: associated value 'failedToParseABinaryOperation(member:)' of 'Sendable'-conforming enum 'BinaryOperationParserError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
3 |
4 | public enum BinaryOperationParserError: Error {
5 | case failedToParseABinaryOperation(member: Any)
| `- warning: associated value 'failedToParseABinaryOperation(member:)' of 'Sendable'-conforming enum 'BinaryOperationParserError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
6 | }
7 |
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/BooleanLiteral.swift:6:23: warning: static property 'kind' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public struct BooleanLiteral: Parser {
6 | public static var kind: Kind = .booleanLiteral
| |- warning: static property 'kind' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'kind' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'kind' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | let trueValues: Set<String>
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/BooleanLiteral.swift:35:23: warning: static property 'booleanLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
33 | extension Kind {
34 |
35 | public static let booleanLiteral: Kind = "boolean.literal"
| `- warning: static property 'booleanLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/BooleanLiteral.swift:3:12: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
1 |
2 | import Foundation
3 | @_exported import SyntaxTree
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
4 |
5 | public struct BooleanLiteral: Parser {
:
33 | extension Kind {
34 |
35 | public static let booleanLiteral: Kind = "boolean.literal"
| |- note: add '@MainActor' to make static property 'booleanLiteral' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/DoubleLiteral.swift:9:23: warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public struct DoubleLiteral: Parser {
9 | public static let kind: Kind = .doubleLiteral
| `- warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public init() { }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/DoubleLiteral.swift:3:12: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
1 |
2 | import Foundation
3 | @_exported import SyntaxTree
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
4 |
5 | private let numberFormatter = NumberFormatter()
:
7 |
8 | public struct DoubleLiteral: Parser {
9 | public static let kind: Kind = .doubleLiteral
| |- note: add '@MainActor' to make static property 'kind' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 | public init() { }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/DoubleLiteral.swift:26:23: warning: static property 'doubleLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
24 | extension Kind {
25 |
26 | public static let doubleLiteral: Kind = "double.literal"
| |- warning: static property 'doubleLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'doubleLiteral' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/IntLiteral.swift:9:23: warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public struct IntLiteral: Parser {
9 | public static let kind: Kind = .intLiteral
| `- warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public init() { }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/IntLiteral.swift:3:12: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
1 |
2 | import Foundation
3 | @_exported import SyntaxTree
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
4 |
5 | private let numberFormatter = NumberFormatter()
:
7 |
8 | public struct IntLiteral: Parser {
9 | public static let kind: Kind = .intLiteral
| |- note: add '@MainActor' to make static property 'kind' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 | public init() { }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/IntLiteral.swift:27:23: warning: static property 'intLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
25 | extension Kind {
26 |
27 | public static let intLiteral: Kind = "int.literal"
| |- warning: static property 'intLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'intLiteral' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 |
29 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:6:23: warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public struct StringLiteral: Parser {
6 | public static let kind: Kind = .stringLiteral
| `- warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | private let start: String
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:3:12: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
1 |
2 | import Foundation
3 | @_exported import SyntaxTree
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
4 |
5 | public struct StringLiteral: Parser {
6 | public static let kind: Kind = .stringLiteral
| |- note: add '@MainActor' to make static property 'kind' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | private let start: String
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:47:23: warning: static property 'stringLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
45 | extension Kind {
46 |
47 | public static let stringLiteral: Kind = "string.literal"
| |- warning: static property 'stringLiteral' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringLiteral' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | public static let stringContent: Kind = "string.content"
49 | public static let stringStartDelimiter: Kind = "string.delimiter.start"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:48:23: warning: static property 'stringContent' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
46 |
47 | public static let stringLiteral: Kind = "string.literal"
48 | public static let stringContent: Kind = "string.content"
| |- warning: static property 'stringContent' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringContent' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | public static let stringStartDelimiter: Kind = "string.delimiter.start"
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:49:23: warning: static property 'stringStartDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
47 | public static let stringLiteral: Kind = "string.literal"
48 | public static let stringContent: Kind = "string.content"
49 | public static let stringStartDelimiter: Kind = "string.delimiter.start"
| |- warning: static property 'stringStartDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringStartDelimiter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
51 | public static let stringEscapedCharacter: Kind = "string.escaped.character"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:50:23: warning: static property 'stringEndDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
48 | public static let stringContent: Kind = "string.content"
49 | public static let stringStartDelimiter: Kind = "string.delimiter.start"
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
| |- warning: static property 'stringEndDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringEndDelimiter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | public static let stringEscapedCharacter: Kind = "string.escaped.character"
52 | public static let stringEscapedDelimiter: Kind = "string.escaped.delimiter"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:51:23: warning: static property 'stringEscapedCharacter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
49 | public static let stringStartDelimiter: Kind = "string.delimiter.start"
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
51 | public static let stringEscapedCharacter: Kind = "string.escaped.character"
| |- warning: static property 'stringEscapedCharacter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringEscapedCharacter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 | public static let stringEscapedDelimiter: Kind = "string.escaped.delimiter"
53 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:52:23: warning: static property 'stringEscapedDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
50 | public static let stringEndDelimiter: Kind = "string.delimiter.end"
51 | public static let stringEscapedCharacter: Kind = "string.escaped.character"
52 | public static let stringEscapedDelimiter: Kind = "string.escaped.delimiter"
| |- warning: static property 'stringEscapedDelimiter' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringEscapedDelimiter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 |
54 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Tokens/RegularExpression.swift:37:23: warning: static property 'expressionMatch' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
35 | extension Kind {
36 |
37 | public static let expressionMatch: Kind = "regular.expression.match"
| `- warning: static property 'expressionMatch' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
38 |
39 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Tokens/RegularExpression.swift:3:12: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
1 |
2 | import Foundation
3 | @_exported import SyntaxTree
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
4 |
5 | public struct RegularExpression: Parser, Hashable {
:
35 | extension Kind {
36 |
37 | public static let expressionMatch: Kind = "regular.expression.match"
| |- note: add '@MainActor' to make static property 'expressionMatch' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 |
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Tokens/String+Parser.swift:6:23: warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind?' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | extension String: Parser {
6 | public static let kind: Kind? = nil
| `- warning: static property 'kind' is not concurrency-safe because non-'Sendable' type 'Kind?' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public var body: AnyParser<Void> {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Tokens/String+Parser.swift:3:12: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
1 |
2 | import Foundation
3 | @_exported import SyntaxTree
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
4 |
5 | extension String: Parser {
6 | public static let kind: Kind? = nil
| |- note: add '@MainActor' to make static property 'kind' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | public var body: AnyParser<Void> {
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Tokens/Token.swift:37:23: warning: static property 'tokenMatch' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
35 | extension Kind {
36 |
37 | public static let tokenMatch: Kind = "token.match"
| `- warning: static property 'tokenMatch' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
38 |
39 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Tokens/Token.swift:3:12: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
1 |
2 | import Foundation
3 | @_exported import SyntaxTree
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
4 |
5 | struct Token: Parser, Hashable {
:
35 | extension Kind {
36 |
37 | public static let tokenMatch: Kind = "token.match"
| |- note: add '@MainActor' to make static property 'tokenMatch' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 |
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Tokens/Word.swift:38:23: warning: static property 'wordMatch' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
36 | extension Kind {
37 |
38 | public static let wordMatch: Kind = "word.match"
| `- warning: static property 'wordMatch' is not concurrency-safe because non-'Sendable' type 'Kind' may have shared mutable state; this is an error in the Swift 6 language mode
39 |
40 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SyntaxTree/Sources/SyntaxTree/Kind.swift:4:15: note: struct 'Kind' does not conform to the 'Sendable' protocol
2 | import Foundation
3 |
4 | public struct Kind: RawRepresentable, Encodable, Equatable {
| `- note: struct 'Kind' does not conform to the 'Sendable' protocol
5 | public enum CombinationStrategy {
6 | case higher
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Tokens/Word.swift:3:12: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
1 |
2 | import Foundation
3 | @_exported import SyntaxTree
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SyntaxTree'
4 |
5 | public struct Word: Parser, Hashable {
:
36 | extension Kind {
37 |
38 | public static let wordMatch: Kind = "word.match"
| |- note: add '@MainActor' to make static property 'wordMatch' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Internals/ScannerState.swift:442:16: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
400 | }
401 |
402 | private final class ScanningStorage<T>: ScannerStateStorage, ScanningStorageProtocol {
| `- note: 'T' previously declared here
403 | typealias Annotation = AnnotatedString<T>.Annotation
404 |
:
440 | }
441 |
442 | func store<T>(value: T) {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
443 | // No-op
444 | }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Internals/ScannerState.swift:450:14: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
400 | }
401 |
402 | private final class ScanningStorage<T>: ScannerStateStorage, ScanningStorageProtocol {
| `- note: 'T' previously declared here
403 | typealias Annotation = AnnotatedString<T>.Annotation
404 |
:
448 | }
449 |
450 | func pop<T>(of type: T.Type) throws -> T? {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
451 | return annotations.last?.value as? T
452 | }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Internals/ScannerState.swift:600:16: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
566 | }
567 |
568 | private class StackedScanningStateStorage<T>: ScannerStateStorage {
| `- note: 'T' previously declared here
569 | let scanning: ScanningStorage<T>
570 | let inplace: InPlaceStorage
:
598 | }
599 |
600 | func store<T>(value: T) {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
601 | current.store(value: value)
602 | }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Internals/ScannerState.swift:608:14: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
566 | }
567 |
568 | private class StackedScanningStateStorage<T>: ScannerStateStorage {
| `- note: 'T' previously declared here
569 | let scanning: ScanningStorage<T>
570 | let inplace: InPlaceStorage
:
606 | }
607 |
608 | func pop<T>(of type: T.Type) throws -> T? {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
609 | return try current.pop(of: type)
610 | }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Parser.swift:5:13: warning: var 'computedKinds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 | @_exported import SyntaxTree
4 |
5 | private var computedKinds = [Int : Kind]()
| |- warning: var 'computedKinds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'computedKinds' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'computedKinds' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 |
7 | public protocol Parser {
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/ParserOption.swift:10:23: warning: static property 'allowWhiteSpaces' is not concurrency-safe because non-'Sendable' type 'ParserOption' may have shared mutable state; this is an error in the Swift 6 language mode
2 | import Foundation
3 |
4 | public struct ParserOption {
| `- note: consider making struct 'ParserOption' conform to the 'Sendable' protocol
5 | let errorHandler: ScannerErrorHandler?
6 | }
:
8 | extension ParserOption {
9 |
10 | public static let allowWhiteSpaces = ParserOption(errorHandler: WhitespaceConsumer())
| |- warning: static property 'allowWhiteSpaces' is not concurrency-safe because non-'Sendable' type 'ParserOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'allowWhiteSpaces' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |
12 | }
[73/79] Compiling Syntax ScannerErrorHandler.swift
[74/79] Compiling Syntax WhiteSpaceConsumer.swift
[75/79] Compiling Syntax ExpressionMatch.swift
[76/79] Compiling Syntax EitherParserBuilder.swift
[77/79] Compiling Syntax ParserBuilder.swift
[78/79] Compiling Syntax PartialEmptyParserResult.swift
[79/79] Compiling Syntax PartialParserResult.swift
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/8] Compiling SyntaxTree SyntaxTreeFactory.swift
[3/8] Compiling SyntaxTree Location.swift
[4/8] Compiling SyntaxTree MutableSyntaxTree.swift
[5/8] Compiling SyntaxTree LineColumnIndex.swift
[6/8] Compiling SyntaxTree SyntaxTree.swift
[7/8] Compiling SyntaxTree Kind.swift
[8/8] Emitting module SyntaxTree
[9/71] Compiling Syntax AnnotatedString.swift
[10/71] Compiling Syntax Cache.swift
[11/71] Compiling Syntax OrderedSet.swift
[12/71] Compiling Syntax AnnotatedError.swift
[13/71] Compiling Syntax DiagnosticError.swift
[14/71] Compiling Syntax ParserError.swift
[15/71] Compiling Syntax ScannerError.swift
[16/77] Compiling Syntax MemoizationStorage.swift
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Internals/ScannerState.swift:442:16: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
400 | }
401 |
402 | private final class ScanningStorage<T>: ScannerStateStorage, ScanningStorageProtocol {
| `- note: 'T' previously declared here
403 | typealias Annotation = AnnotatedString<T>.Annotation
404 |
:
440 | }
441 |
442 | func store<T>(value: T) {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
443 | // No-op
444 | }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Internals/ScannerState.swift:450:14: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
400 | }
401 |
402 | private final class ScanningStorage<T>: ScannerStateStorage, ScanningStorageProtocol {
| `- note: 'T' previously declared here
403 | typealias Annotation = AnnotatedString<T>.Annotation
404 |
:
448 | }
449 |
450 | func pop<T>(of type: T.Type) throws -> T? {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
451 | return annotations.last?.value as? T
452 | }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Internals/ScannerState.swift:600:16: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
566 | }
567 |
568 | private class StackedScanningStateStorage<T>: ScannerStateStorage {
| `- note: 'T' previously declared here
569 | let scanning: ScanningStorage<T>
570 | let inplace: InPlaceStorage
:
598 | }
599 |
600 | func store<T>(value: T) {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
601 | current.store(value: value)
602 | }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Internals/ScannerState.swift:608:14: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
566 | }
567 |
568 | private class StackedScanningStateStorage<T>: ScannerStateStorage {
| `- note: 'T' previously declared here
569 | let scanning: ScanningStorage<T>
570 | let inplace: InPlaceStorage
:
606 | }
607 |
608 | func pop<T>(of type: T.Type) throws -> T? {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
609 | return try current.pop(of: type)
610 | }
[17/77] Compiling Syntax Memoized.swift
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Internals/ScannerState.swift:442:16: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
400 | }
401 |
402 | private final class ScanningStorage<T>: ScannerStateStorage, ScanningStorageProtocol {
| `- note: 'T' previously declared here
403 | typealias Annotation = AnnotatedString<T>.Annotation
404 |
:
440 | }
441 |
442 | func store<T>(value: T) {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
443 | // No-op
444 | }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Internals/ScannerState.swift:450:14: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
400 | }
401 |
402 | private final class ScanningStorage<T>: ScannerStateStorage, ScanningStorageProtocol {
| `- note: 'T' previously declared here
403 | typealias Annotation = AnnotatedString<T>.Annotation
404 |
:
448 | }
449 |
450 | func pop<T>(of type: T.Type) throws -> T? {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
451 | return annotations.last?.value as? T
452 | }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Internals/ScannerState.swift:600:16: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
566 | }
567 |
568 | private class StackedScanningStateStorage<T>: ScannerStateStorage {
| `- note: 'T' previously declared here
569 | let scanning: ScanningStorage<T>
570 | let inplace: InPlaceStorage
:
598 | }
599 |
600 | func store<T>(value: T) {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
601 | current.store(value: value)
602 | }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Internals/ScannerState.swift:608:14: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
566 | }
567 |
568 | private class StackedScanningStateStorage<T>: ScannerStateStorage {
| `- note: 'T' previously declared here
569 | let scanning: ScanningStorage<T>
570 | let inplace: InPlaceStorage
:
606 | }
607 |
608 | func pop<T>(of type: T.Type) throws -> T? {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
609 | return try current.pop(of: type)
610 | }
[18/77] Compiling Syntax Node.swift
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Internals/ScannerState.swift:442:16: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
400 | }
401 |
402 | private final class ScanningStorage<T>: ScannerStateStorage, ScanningStorageProtocol {
| `- note: 'T' previously declared here
403 | typealias Annotation = AnnotatedString<T>.Annotation
404 |
:
440 | }
441 |
442 | func store<T>(value: T) {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
443 | // No-op
444 | }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Internals/ScannerState.swift:450:14: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
400 | }
401 |
402 | private final class ScanningStorage<T>: ScannerStateStorage, ScanningStorageProtocol {
| `- note: 'T' previously declared here
403 | typealias Annotation = AnnotatedString<T>.Annotation
404 |
:
448 | }
449 |
450 | func pop<T>(of type: T.Type) throws -> T? {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
451 | return annotations.last?.value as? T
452 | }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Internals/ScannerState.swift:600:16: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
566 | }
567 |
568 | private class StackedScanningStateStorage<T>: ScannerStateStorage {
| `- note: 'T' previously declared here
569 | let scanning: ScanningStorage<T>
570 | let inplace: InPlaceStorage
:
598 | }
599 |
600 | func store<T>(value: T) {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
601 | current.store(value: value)
602 | }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Internals/ScannerState.swift:608:14: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
566 | }
567 |
568 | private class StackedScanningStateStorage<T>: ScannerStateStorage {
| `- note: 'T' previously declared here
569 | let scanning: ScanningStorage<T>
570 | let inplace: InPlaceStorage
:
606 | }
607 |
608 | func pop<T>(of type: T.Type) throws -> T? {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
609 | return try current.pop(of: type)
610 | }
[19/77] Compiling Syntax Parser+internalParser.swift
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Internals/ScannerState.swift:442:16: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
400 | }
401 |
402 | private final class ScanningStorage<T>: ScannerStateStorage, ScanningStorageProtocol {
| `- note: 'T' previously declared here
403 | typealias Annotation = AnnotatedString<T>.Annotation
404 |
:
440 | }
441 |
442 | func store<T>(value: T) {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
443 | // No-op
444 | }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Internals/ScannerState.swift:450:14: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
400 | }
401 |
402 | private final class ScanningStorage<T>: ScannerStateStorage, ScanningStorageProtocol {
| `- note: 'T' previously declared here
403 | typealias Annotation = AnnotatedString<T>.Annotation
404 |
:
448 | }
449 |
450 | func pop<T>(of type: T.Type) throws -> T? {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
451 | return annotations.last?.value as? T
452 | }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Internals/ScannerState.swift:600:16: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
566 | }
567 |
568 | private class StackedScanningStateStorage<T>: ScannerStateStorage {
| `- note: 'T' previously declared here
569 | let scanning: ScanningStorage<T>
570 | let inplace: InPlaceStorage
:
598 | }
599 |
600 | func store<T>(value: T) {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
601 | current.store(value: value)
602 | }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Internals/ScannerState.swift:608:14: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
566 | }
567 |
568 | private class StackedScanningStateStorage<T>: ScannerStateStorage {
| `- note: 'T' previously declared here
569 | let scanning: ScanningStorage<T>
570 | let inplace: InPlaceStorage
:
606 | }
607 |
608 | func pop<T>(of type: T.Type) throws -> T? {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
609 | return try current.pop(of: type)
610 | }
[20/77] Compiling Syntax Scanner.swift
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Internals/ScannerState.swift:442:16: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
400 | }
401 |
402 | private final class ScanningStorage<T>: ScannerStateStorage, ScanningStorageProtocol {
| `- note: 'T' previously declared here
403 | typealias Annotation = AnnotatedString<T>.Annotation
404 |
:
440 | }
441 |
442 | func store<T>(value: T) {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
443 | // No-op
444 | }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Internals/ScannerState.swift:450:14: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
400 | }
401 |
402 | private final class ScanningStorage<T>: ScannerStateStorage, ScanningStorageProtocol {
| `- note: 'T' previously declared here
403 | typealias Annotation = AnnotatedString<T>.Annotation
404 |
:
448 | }
449 |
450 | func pop<T>(of type: T.Type) throws -> T? {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
451 | return annotations.last?.value as? T
452 | }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Internals/ScannerState.swift:600:16: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
566 | }
567 |
568 | private class StackedScanningStateStorage<T>: ScannerStateStorage {
| `- note: 'T' previously declared here
569 | let scanning: ScanningStorage<T>
570 | let inplace: InPlaceStorage
:
598 | }
599 |
600 | func store<T>(value: T) {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
601 | current.store(value: value)
602 | }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Internals/ScannerState.swift:608:14: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
566 | }
567 |
568 | private class StackedScanningStateStorage<T>: ScannerStateStorage {
| `- note: 'T' previously declared here
569 | let scanning: ScanningStorage<T>
570 | let inplace: InPlaceStorage
:
606 | }
607 |
608 | func pop<T>(of type: T.Type) throws -> T? {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
609 | return try current.pop(of: type)
610 | }
[21/77] Compiling Syntax ScannerState.swift
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Internals/ScannerState.swift:442:16: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
400 | }
401 |
402 | private final class ScanningStorage<T>: ScannerStateStorage, ScanningStorageProtocol {
| `- note: 'T' previously declared here
403 | typealias Annotation = AnnotatedString<T>.Annotation
404 |
:
440 | }
441 |
442 | func store<T>(value: T) {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
443 | // No-op
444 | }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Internals/ScannerState.swift:450:14: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
400 | }
401 |
402 | private final class ScanningStorage<T>: ScannerStateStorage, ScanningStorageProtocol {
| `- note: 'T' previously declared here
403 | typealias Annotation = AnnotatedString<T>.Annotation
404 |
:
448 | }
449 |
450 | func pop<T>(of type: T.Type) throws -> T? {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
451 | return annotations.last?.value as? T
452 | }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Internals/ScannerState.swift:600:16: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
566 | }
567 |
568 | private class StackedScanningStateStorage<T>: ScannerStateStorage {
| `- note: 'T' previously declared here
569 | let scanning: ScanningStorage<T>
570 | let inplace: InPlaceStorage
:
598 | }
599 |
600 | func store<T>(value: T) {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
601 | current.store(value: value)
602 | }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Internals/ScannerState.swift:608:14: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
566 | }
567 |
568 | private class StackedScanningStateStorage<T>: ScannerStateStorage {
| `- note: 'T' previously declared here
569 | let scanning: ScanningStorage<T>
570 | let inplace: InPlaceStorage
:
606 | }
607 |
608 | func pop<T>(of type: T.Type) throws -> T? {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
609 | return try current.pop(of: type)
610 | }
[22/77] Compiling Syntax RegularExpression.swift
[23/77] Compiling Syntax String+Parser.swift
[24/77] Compiling Syntax Token.swift
[25/77] Compiling Syntax Word.swift
[26/77] Compiling Syntax neverBody.swift
[27/77] Compiling Syntax InternalParser.swift
[28/77] Compiling Syntax MemoizationKey.swift
[29/77] Compiling Syntax SwiftEscapeStrategy.swift
[30/77] Compiling Syntax Maybe.swift
[31/77] Compiling Syntax Parser+annotate.swift
[32/77] Compiling Syntax Parser+ignoreOutput.swift
[33/77] Compiling Syntax Parser+kind.swift
[34/77] Compiling Syntax Parser+map+location.swift
[35/77] Compiling Syntax Parser+map.swift
[36/77] Compiling Syntax PartialResult.swift
[37/77] Compiling Syntax AnyParser.swift
[38/77] Compiling Syntax Associativity.swift
[39/77] Compiling Syntax BinaryOperation.swift
[40/77] Compiling Syntax BinaryOperationParser.swift
[41/77] Compiling Syntax BinaryOperationParserError.swift
[42/77] Compiling Syntax BinaryOperator.swift
[43/77] Compiling Syntax Either.swift
[44/77] Compiling Syntax Group.swift
[45/77] Compiling Syntax Leaf.swift
[46/77] Compiling Syntax Recursive.swift
[47/77] Compiling Syntax TupleParser.swift
[48/77] Compiling Syntax EmptyParser.swift
[49/77] Compiling Syntax RegexBuilder+support.swift
[50/77] Compiling Syntax Parser+optimize.swift
[51/77] Compiling Syntax Parser+preventRecursion.swift
[52/77] Compiling Syntax Parser+repeatUntil.swift
[53/77] Compiling Syntax Parser+separated.swift
[54/77] Compiling Syntax Repeat.swift
[55/77] Compiling Syntax Annotated.swift
[56/77] Compiling Syntax AnnotatedUntil.swift
[57/77] Compiling Syntax Stack.swift
[58/77] Compiling Syntax StandardScanner.swift
[59/77] Compiling Syntax String+casing.swift
[60/77] Compiling Syntax Located.swift
[61/77] Compiling Syntax Parser.swift
[62/77] Compiling Syntax ParserOption.swift
[63/77] Compiling Syntax MemberOfBinaryOperation.swift
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:23:30: error: contextual closure type '(Substring, String) throws -> Substring' expects 2 arguments, but 1 was used in closure body
21 | }
22 | .map { annotated in
23 | annotated.string { $0 }
| `- error: contextual closure type '(Substring, String) throws -> Substring' expects 2 arguments, but 1 was used in closure body
24 | }
25 | .kind(.stringContent)
[64/77] Compiling Syntax BooleanLiteral.swift
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:23:30: error: contextual closure type '(Substring, String) throws -> Substring' expects 2 arguments, but 1 was used in closure body
21 | }
22 | .map { annotated in
23 | annotated.string { $0 }
| `- error: contextual closure type '(Substring, String) throws -> Substring' expects 2 arguments, but 1 was used in closure body
24 | }
25 | .kind(.stringContent)
[65/77] Compiling Syntax DoubleLiteral.swift
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:23:30: error: contextual closure type '(Substring, String) throws -> Substring' expects 2 arguments, but 1 was used in closure body
21 | }
22 | .map { annotated in
23 | annotated.string { $0 }
| `- error: contextual closure type '(Substring, String) throws -> Substring' expects 2 arguments, but 1 was used in closure body
24 | }
25 | .kind(.stringContent)
[66/77] Compiling Syntax IntLiteral.swift
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:23:30: error: contextual closure type '(Substring, String) throws -> Substring' expects 2 arguments, but 1 was used in closure body
21 | }
22 | .map { annotated in
23 | annotated.string { $0 }
| `- error: contextual closure type '(Substring, String) throws -> Substring' expects 2 arguments, but 1 was used in closure body
24 | }
25 | .kind(.stringContent)
[67/77] Compiling Syntax JavaScriptEscapeStrategy.swift
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:23:30: error: contextual closure type '(Substring, String) throws -> Substring' expects 2 arguments, but 1 was used in closure body
21 | }
22 | .map { annotated in
23 | annotated.string { $0 }
| `- error: contextual closure type '(Substring, String) throws -> Substring' expects 2 arguments, but 1 was used in closure body
24 | }
25 | .kind(.stringContent)
[68/77] Compiling Syntax StringEscapeStrategy.swift
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:23:30: error: contextual closure type '(Substring, String) throws -> Substring' expects 2 arguments, but 1 was used in closure body
21 | }
22 | .map { annotated in
23 | annotated.string { $0 }
| `- error: contextual closure type '(Substring, String) throws -> Substring' expects 2 arguments, but 1 was used in closure body
24 | }
25 | .kind(.stringContent)
[69/77] Compiling Syntax StringLiteral.swift
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Implementations/Common/StringLiterals/StringLiteral.swift:23:30: error: contextual closure type '(Substring, String) throws -> Substring' expects 2 arguments, but 1 was used in closure body
21 | }
22 | .map { annotated in
23 | annotated.string { $0 }
| `- error: contextual closure type '(Substring, String) throws -> Substring' expects 2 arguments, but 1 was used in closure body
24 | }
25 | .kind(.stringContent)
[70/77] Emitting module Syntax
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Internals/ScannerState.swift:442:16: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
400 | }
401 |
402 | private final class ScanningStorage<T>: ScannerStateStorage, ScanningStorageProtocol {
| `- note: 'T' previously declared here
403 | typealias Annotation = AnnotatedString<T>.Annotation
404 |
:
440 | }
441 |
442 | func store<T>(value: T) {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
443 | // No-op
444 | }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Internals/ScannerState.swift:450:14: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
400 | }
401 |
402 | private final class ScanningStorage<T>: ScannerStateStorage, ScanningStorageProtocol {
| `- note: 'T' previously declared here
403 | typealias Annotation = AnnotatedString<T>.Annotation
404 |
:
448 | }
449 |
450 | func pop<T>(of type: T.Type) throws -> T? {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
451 | return annotations.last?.value as? T
452 | }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Internals/ScannerState.swift:600:16: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
566 | }
567 |
568 | private class StackedScanningStateStorage<T>: ScannerStateStorage {
| `- note: 'T' previously declared here
569 | let scanning: ScanningStorage<T>
570 | let inplace: InPlaceStorage
:
598 | }
599 |
600 | func store<T>(value: T) {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
601 | current.store(value: value)
602 | }
/Users/admin/builder/spi-builder-workspace/Sources/Syntax/Internals/ScannerState.swift:608:14: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
566 | }
567 |
568 | private class StackedScanningStateStorage<T>: ScannerStateStorage {
| `- note: 'T' previously declared here
569 | let scanning: ScanningStorage<T>
570 | let inplace: InPlaceStorage
:
606 | }
607 |
608 | func pop<T>(of type: T.Type) throws -> T? {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
609 | return try current.pop(of: type)
610 | }
[71/77] Compiling Syntax ScannerErrorHandler.swift
[72/77] Compiling Syntax WhiteSpaceConsumer.swift
[73/77] Compiling Syntax ExpressionMatch.swift
[74/77] Compiling Syntax EitherParserBuilder.swift
[75/77] Compiling Syntax ParserBuilder.swift
[76/77] Compiling Syntax PartialEmptyParserResult.swift
[77/77] Compiling Syntax PartialParserResult.swift
BUILD FAILURE 6.1 macosSpm