Skip to content

Commit b9798b4

Browse files
committed
Re-record generated snippets
1 parent 293e15e commit b9798b4

19 files changed

+80
-80
lines changed

codegen/snippet-tests/output/Classes.pkl.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// Code generated from Pkl module `Classes`. DO NOT EDIT.
2-
import PklSwift
2+
@preconcurrency import PklSwift
33

4-
public enum Classes {}
4+
public enum Classes: Sendable {}
55

6-
public protocol Classes_Animal: PklRegisteredType, DynamicallyEquatable, Hashable {
6+
public protocol Classes_Animal: PklRegisteredType, DynamicallyEquatable, Hashable, Sendable {
77
var name: String { get }
88
}
99

1010
extension Classes {
11-
public struct Module: PklRegisteredType, Decodable, Hashable {
11+
public struct Module: PklRegisteredType, Decodable, Hashable, Sendable {
1212
public static let registeredIdentifier: String = "Classes"
1313

1414
public var animals: [any Animal]

codegen/snippet-tests/output/EmptyOpenModule.pkl.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// Code generated from Pkl module `EmptyOpenModule`. DO NOT EDIT.
2-
import PklSwift
2+
@preconcurrency import PklSwift
33

4-
public enum EmptyOpenModule {}
4+
public enum EmptyOpenModule: Sendable {}
55

6-
public protocol EmptyOpenModule_Module: PklRegisteredType, DynamicallyEquatable, Hashable {
6+
public protocol EmptyOpenModule_Module: PklRegisteredType, DynamicallyEquatable, Hashable, Sendable {
77
}
88

99
extension EmptyOpenModule {

codegen/snippet-tests/output/Enums.pkl.swift

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
// Code generated from Pkl module `Enums`. DO NOT EDIT.
2-
import PklSwift
2+
@preconcurrency import PklSwift
33

4-
public enum Enums {}
4+
public enum Enums: Sendable {}
55

66
extension Enums {
77
/// City is one of these four fantastic cities
8-
public enum City: String, CaseIterable, CodingKeyRepresentable, Decodable, Hashable {
8+
public enum City: String, CaseIterable, CodingKeyRepresentable, Decodable, Hashable, Sendable {
99
case sanFrancisco = "San Francisco"
1010
case london = "London"
1111
case zurich = "Zurich"
1212
case cupertino = "Cupertino"
1313
}
1414

1515
/// Animal is either a horse, monkey, or zebra
16-
public enum Animal: Decodable, Hashable {
16+
public enum Animal: Decodable, Hashable, Sendable {
1717
case horse(Horse)
1818
case zebra(Zebra)
1919
case monkey(Monkey)
@@ -41,7 +41,7 @@ extension Enums {
4141
}
4242

4343
/// Either a dictionary or an array.
44-
public enum DictOrArray: Decodable, Hashable {
44+
public enum DictOrArray: Decodable, Hashable, Sendable {
4545
case dictionaryStringString([String: String])
4646
case arrayString([String])
4747

@@ -65,7 +65,7 @@ extension Enums {
6565
}
6666
}
6767

68-
public enum HorseOrBug: Decodable, Hashable {
68+
public enum HorseOrBug: Decodable, Hashable, Sendable {
6969
case horse(Horse)
7070
case string(String)
7171
case string(String)
@@ -92,7 +92,7 @@ extension Enums {
9292
}
9393
}
9494

95-
public enum MaybeHorseOrDefinitelyZebra: Decodable, Hashable {
95+
public enum MaybeHorseOrDefinitelyZebra: Decodable, Hashable, Sendable {
9696
case horse(Horse?)
9797
case zebra(Zebra)
9898

@@ -116,7 +116,7 @@ extension Enums {
116116
}
117117
}
118118

119-
public struct Module: PklRegisteredType, Decodable, Hashable {
119+
public struct Module: PklRegisteredType, Decodable, Hashable, Sendable {
120120
public static let registeredIdentifier: String = "Enums"
121121

122122
/// City of tomorrow!
@@ -148,7 +148,7 @@ extension Enums {
148148
}
149149
}
150150

151-
public struct Horse: PklRegisteredType, Decodable, Hashable {
151+
public struct Horse: PklRegisteredType, Decodable, Hashable, Sendable {
152152
public static let registeredIdentifier: String = "Enums#Horse"
153153

154154
public var neigh: Bool
@@ -158,7 +158,7 @@ extension Enums {
158158
}
159159
}
160160

161-
public struct Zebra: PklRegisteredType, Decodable, Hashable {
161+
public struct Zebra: PklRegisteredType, Decodable, Hashable, Sendable {
162162
public static let registeredIdentifier: String = "Enums#Zebra"
163163

164164
public var stripes: String
@@ -168,7 +168,7 @@ extension Enums {
168168
}
169169
}
170170

171-
public struct Monkey: PklRegisteredType, Decodable, Hashable {
171+
public struct Monkey: PklRegisteredType, Decodable, Hashable, Sendable {
172172
public static let registeredIdentifier: String = "Enums#Monkey"
173173

174174
public var tail: String

codegen/snippet-tests/output/ExplicitlyCoolName.pkl.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
// Code generated from Pkl module `ExplicitName`. DO NOT EDIT.
2-
import PklSwift
2+
@preconcurrency import PklSwift
33

4-
public enum ExplicitlyCoolName {}
4+
public enum ExplicitlyCoolName: Sendable {}
55

66
extension ExplicitlyCoolName {
7-
public enum ConfigType: String, CaseIterable, CodingKeyRepresentable, Decodable, Hashable {
7+
public enum ConfigType: String, CaseIterable, CodingKeyRepresentable, Decodable, Hashable, Sendable {
88
case one = "one"
99
case two = "two"
1010
}
1111

12-
public struct Module: PklRegisteredType, Decodable, Hashable {
12+
public struct Module: PklRegisteredType, Decodable, Hashable, Sendable {
1313
public static let registeredIdentifier: String = "ExplicitName"
1414

1515
public var MyCoolProp: SomethingVeryFunny
@@ -23,7 +23,7 @@ extension ExplicitlyCoolName {
2323
}
2424
}
2525

26-
public struct SomethingVeryFunny: PklRegisteredType, Decodable, Hashable {
26+
public struct SomethingVeryFunny: PklRegisteredType, Decodable, Hashable, Sendable {
2727
public static let registeredIdentifier: String = "ExplicitName#SomethingFunny"
2828

2929
public init() {}

codegen/snippet-tests/output/ExtendModule.pkl.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Code generated from Pkl module `ExtendModule`. DO NOT EDIT.
2-
import PklSwift
2+
@preconcurrency import PklSwift
33

4-
public enum ExtendModule {}
4+
public enum ExtendModule: Sendable {}
55

66
extension ExtendModule {
77
public struct Module: MyModule.Module {

codegen/snippet-tests/output/ExtendingOpenClass.pkl.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// Code generated from Pkl module `ExtendingOpenClass`. DO NOT EDIT.
2-
import PklSwift
2+
@preconcurrency import PklSwift
33

4-
public enum ExtendingOpenClass {}
4+
public enum ExtendingOpenClass: Sendable {}
55

6-
public protocol ExtendingOpenClass_MyOpenClass: PklRegisteredType, DynamicallyEquatable, Hashable {
6+
public protocol ExtendingOpenClass_MyOpenClass: PklRegisteredType, DynamicallyEquatable, Hashable, Sendable {
77
var myStr: String { get }
88
}
99

1010
extension ExtendingOpenClass {
11-
public struct Module: PklRegisteredType, Decodable, Hashable {
11+
public struct Module: PklRegisteredType, Decodable, Hashable, Sendable {
1212
public static let registeredIdentifier: String = "ExtendingOpenClass"
1313

1414
public var res1: MyClass

codegen/snippet-tests/output/ExtendsAbstractClass.pkl.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// Code generated from Pkl module `ExtendsAbstractClass`. DO NOT EDIT.
2-
import PklSwift
2+
@preconcurrency import PklSwift
33

4-
public enum ExtendsAbstractClass {}
4+
public enum ExtendsAbstractClass: Sendable {}
55

6-
public protocol ExtendsAbstractClass_A: PklRegisteredType, DynamicallyEquatable, Hashable {
6+
public protocol ExtendsAbstractClass_A: PklRegisteredType, DynamicallyEquatable, Hashable, Sendable {
77
var b: String { get }
88
}
99

1010
extension ExtendsAbstractClass {
11-
public struct Module: PklRegisteredType, Decodable, Hashable {
11+
public struct Module: PklRegisteredType, Decodable, Hashable, Sendable {
1212
public static let registeredIdentifier: String = "ExtendsAbstractClass"
1313

1414
public var a: any A

codegen/snippet-tests/output/Foo.pkl.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
// Code generated from Pkl module `Foo`. DO NOT EDIT.
2-
import PklSwift
2+
@preconcurrency import PklSwift
33

4-
public enum Foo {}
4+
public enum Foo: Sendable {}
55

66
public protocol Foo_Animal: Foo_Being {
77
var name: String { get }
88
}
99

10-
public protocol Foo_Being: PklRegisteredType, DynamicallyEquatable, Hashable {
10+
public protocol Foo_Being: PklRegisteredType, DynamicallyEquatable, Hashable, Sendable {
1111
var exists: Bool { get }
1212
}
1313

1414
extension Foo {
15-
public struct Module: PklRegisteredType, Decodable, Hashable {
15+
public struct Module: PklRegisteredType, Decodable, Hashable, Sendable {
1616
public static let registeredIdentifier: String = "Foo"
1717

1818
public var animals: [any Animal]

codegen/snippet-tests/output/HiddenProperties.pkl.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Code generated from Pkl module `HiddenProperties`. DO NOT EDIT.
2-
import PklSwift
2+
@preconcurrency import PklSwift
33

4-
public enum HiddenProperties {}
4+
public enum HiddenProperties: Sendable {}
55

66
extension HiddenProperties {
7-
public struct Module: PklRegisteredType, Decodable, Hashable {
7+
public struct Module: PklRegisteredType, Decodable, Hashable, Sendable {
88
public static let registeredIdentifier: String = "HiddenProperties"
99

1010
public var propC: String

codegen/snippet-tests/output/Imports.pkl.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Code generated from Pkl module `Imports`. DO NOT EDIT.
2-
import PklSwift
2+
@preconcurrency import PklSwift
33

4-
public enum Imports {}
4+
public enum Imports: Sendable {}
55

66
extension Imports {
7-
public struct Module: PklRegisteredType, Decodable, Hashable {
7+
public struct Module: PklRegisteredType, Decodable, Hashable, Sendable {
88
public static let registeredIdentifier: String = "Imports"
99

1010
public var foo: Foo.Module

0 commit comments

Comments
 (0)