From 5ef95cf8095aaa833540b1657b39f06b17bb503f Mon Sep 17 00:00:00 2001 From: Ruslan Alikhamov Date: Sun, 29 Dec 2024 15:25:08 +0500 Subject: [PATCH] update internal boilerplate code. --- .../Sources/Generated/Coding.generated.swift | 2 +- .../Sources/Generated/JSExport.generated.swift | 2 +- .../Sources/Generated/Typed.generated.swift | 2 +- .../Sources/SourceryRuntime.content.generated.swift | 6 +++--- .../SourceryRuntime_Linux.content.generated.swift | 10 ++++++---- SourceryTests/Models/TypedSpec.generated.swift | 2 +- 6 files changed, 13 insertions(+), 11 deletions(-) diff --git a/SourceryRuntime/Sources/Generated/Coding.generated.swift b/SourceryRuntime/Sources/Generated/Coding.generated.swift index da809f3bb..f84175945 100644 --- a/SourceryRuntime/Sources/Generated/Coding.generated.swift +++ b/SourceryRuntime/Sources/Generated/Coding.generated.swift @@ -1,4 +1,4 @@ -// Generated using Sourcery 2.2.5 — https://github.com/krzysztofzablocki/Sourcery +// Generated using Sourcery 2.2.6 — https://github.com/krzysztofzablocki/Sourcery // DO NOT EDIT // swiftlint:disable vertical_whitespace trailing_newline diff --git a/SourceryRuntime/Sources/Generated/JSExport.generated.swift b/SourceryRuntime/Sources/Generated/JSExport.generated.swift index a9209f03a..16402bfbb 100644 --- a/SourceryRuntime/Sources/Generated/JSExport.generated.swift +++ b/SourceryRuntime/Sources/Generated/JSExport.generated.swift @@ -1,4 +1,4 @@ -// Generated using Sourcery 2.2.5 — https://github.com/krzysztofzablocki/Sourcery +// Generated using Sourcery 2.2.6 — https://github.com/krzysztofzablocki/Sourcery // DO NOT EDIT // swiftlint:disable vertical_whitespace trailing_newline diff --git a/SourceryRuntime/Sources/Generated/Typed.generated.swift b/SourceryRuntime/Sources/Generated/Typed.generated.swift index 6b463bc54..d27f5726f 100644 --- a/SourceryRuntime/Sources/Generated/Typed.generated.swift +++ b/SourceryRuntime/Sources/Generated/Typed.generated.swift @@ -1,4 +1,4 @@ -// Generated using Sourcery 2.2.5 — https://github.com/krzysztofzablocki/Sourcery +// Generated using Sourcery 2.2.6 — https://github.com/krzysztofzablocki/Sourcery // DO NOT EDIT // swiftlint:disable vertical_whitespace diff --git a/SourcerySwift/Sources/SourceryRuntime.content.generated.swift b/SourcerySwift/Sources/SourceryRuntime.content.generated.swift index 1fd936d30..56e117323 100644 --- a/SourcerySwift/Sources/SourceryRuntime.content.generated.swift +++ b/SourcerySwift/Sources/SourceryRuntime.content.generated.swift @@ -7754,7 +7754,7 @@ public final class Variable: NSObject, SourceryModel, Typed, Annotated, Document """), .init(name: "Coding.generated.swift", content: """ -// Generated using Sourcery 2.2.5 — https://github.com/krzysztofzablocki/Sourcery +// Generated using Sourcery 2.2.6 — https://github.com/krzysztofzablocki/Sourcery // DO NOT EDIT // swiftlint:disable vertical_whitespace trailing_newline @@ -7860,7 +7860,7 @@ extension Variable: NSCoding {} """), .init(name: "JSExport.generated.swift", content: """ -// Generated using Sourcery 2.2.5 — https://github.com/krzysztofzablocki/Sourcery +// Generated using Sourcery 2.2.6 — https://github.com/krzysztofzablocki/Sourcery // DO NOT EDIT // swiftlint:disable vertical_whitespace trailing_newline @@ -8599,7 +8599,7 @@ extension Variable: VariableAutoJSExport {} """), .init(name: "Typed.generated.swift", content: """ -// Generated using Sourcery 2.2.5 — https://github.com/krzysztofzablocki/Sourcery +// Generated using Sourcery 2.2.6 — https://github.com/krzysztofzablocki/Sourcery // DO NOT EDIT // swiftlint:disable vertical_whitespace diff --git a/SourcerySwift/Sources/SourceryRuntime_Linux.content.generated.swift b/SourcerySwift/Sources/SourceryRuntime_Linux.content.generated.swift index 81b2888a0..dc63ad258 100644 --- a/SourcerySwift/Sources/SourceryRuntime_Linux.content.generated.swift +++ b/SourcerySwift/Sources/SourceryRuntime_Linux.content.generated.swift @@ -1005,7 +1005,7 @@ public enum Composer { if baseType is Class { type.inherits[baseType.name] = baseType } else if let `protocol` = baseType as? SourceryProtocol { - type.implements[baseType.name] = baseType + type.implements[baseType.globalName] = baseType if let extendingProtocol = type as? SourceryProtocol { `protocol`.associatedTypes.forEach { if extendingProtocol.associatedTypes[$0.key] == nil { @@ -5128,6 +5128,8 @@ public class MethodParameter: NSObject, SourceryModel, Typed, Annotated, Diffabl return asSource case "index": return index + case "isOptional": + return isOptional default: fatalError("unable to lookup: \\(member) in \\(self)") } @@ -8337,7 +8339,7 @@ public final class Variable: NSObject, SourceryModel, Typed, Annotated, Document """), .init(name: "Coding.generated.swift", content: """ -// Generated using Sourcery 2.2.5 — https://github.com/krzysztofzablocki/Sourcery +// Generated using Sourcery 2.2.6 — https://github.com/krzysztofzablocki/Sourcery // DO NOT EDIT // swiftlint:disable vertical_whitespace trailing_newline @@ -8443,7 +8445,7 @@ extension Variable: NSCoding {} """), .init(name: "JSExport.generated.swift", content: """ -// Generated using Sourcery 2.2.5 — https://github.com/krzysztofzablocki/Sourcery +// Generated using Sourcery 2.2.6 — https://github.com/krzysztofzablocki/Sourcery // DO NOT EDIT // swiftlint:disable vertical_whitespace trailing_newline @@ -9182,7 +9184,7 @@ extension Variable: VariableAutoJSExport {} """), .init(name: "Typed.generated.swift", content: """ -// Generated using Sourcery 2.2.5 — https://github.com/krzysztofzablocki/Sourcery +// Generated using Sourcery 2.2.6 — https://github.com/krzysztofzablocki/Sourcery // DO NOT EDIT // swiftlint:disable vertical_whitespace diff --git a/SourceryTests/Models/TypedSpec.generated.swift b/SourceryTests/Models/TypedSpec.generated.swift index a45c29fef..2448c7f7f 100644 --- a/SourceryTests/Models/TypedSpec.generated.swift +++ b/SourceryTests/Models/TypedSpec.generated.swift @@ -1,4 +1,4 @@ -// Generated using Sourcery 2.2.5 — https://github.com/krzysztofzablocki/Sourcery +// Generated using Sourcery 2.2.6 — https://github.com/krzysztofzablocki/Sourcery // DO NOT EDIT import Quick import Nimble