Skip to content

Commit 41bde9e

Browse files
authored
Merge pull request #2914 from ahoppen/6.1/fix-example-warnings
[6.1] Fix build warnings in the `Examples` package
2 parents 1cd3534 + 287bd69 commit 41bde9e

File tree

7 files changed

+7
-0
lines changed

7 files changed

+7
-0
lines changed

Examples/Sources/MacroExamples/Implementation/ComplexMacros/DictionaryIndirectionMacro.swift

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ extension DictionaryStorageMacro: MemberMacro {
1919
public static func expansion(
2020
of node: AttributeSyntax,
2121
providingMembersOf declaration: some DeclGroupSyntax,
22+
conformingTo: [TypeSyntax],
2223
in context: some MacroExpansionContext
2324
) throws -> [DeclSyntax] {
2425
return ["\n var _storage: [String: Any] = [:]"]

Examples/Sources/MacroExamples/Implementation/ComplexMacros/ObservableMacro.swift

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public struct ObservableMacro: MemberMacro, MemberAttributeMacro {
3535
public static func expansion(
3636
of node: AttributeSyntax,
3737
providingMembersOf declaration: some DeclGroupSyntax,
38+
conformingTo: [TypeSyntax],
3839
in context: some MacroExpansionContext
3940
) throws -> [DeclSyntax] {
4041
guard let identified = declaration.asProtocol(NamedDeclSyntax.self) else {

Examples/Sources/MacroExamples/Implementation/ComplexMacros/OptionSetMacro.swift

+1
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ extension OptionSetMacro: MemberMacro {
177177
public static func expansion(
178178
of attribute: AttributeSyntax,
179179
providingMembersOf decl: some DeclGroupSyntax,
180+
conformingTo: [TypeSyntax],
180181
in context: some MacroExpansionContext
181182
) throws -> [DeclSyntax] {
182183
// Decode the expansion arguments.

Examples/Sources/MacroExamples/Implementation/Member/CaseDetectionMacro.swift

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public enum CaseDetectionMacro: MemberMacro {
1717
public static func expansion(
1818
of node: AttributeSyntax,
1919
providingMembersOf declaration: some DeclGroupSyntax,
20+
conformingTo: [TypeSyntax],
2021
in context: some MacroExpansionContext
2122
) throws -> [DeclSyntax] {
2223
declaration.memberBlock.members

Examples/Sources/MacroExamples/Implementation/Member/CustomCodable.swift

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public enum CustomCodable: MemberMacro {
1717
public static func expansion(
1818
of node: AttributeSyntax,
1919
providingMembersOf declaration: some DeclGroupSyntax,
20+
conformingTo: [TypeSyntax],
2021
in context: some MacroExpansionContext
2122
) throws -> [DeclSyntax] {
2223
let memberList = declaration.memberBlock.members

Examples/Sources/MacroExamples/Implementation/Member/MetaEnumMacro.swift

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ extension MetaEnumMacro: MemberMacro {
8282
public static func expansion(
8383
of node: AttributeSyntax,
8484
providingMembersOf declaration: some DeclGroupSyntax,
85+
conformingTo: [TypeSyntax],
8586
in context: some MacroExpansionContext
8687
) throws -> [DeclSyntax] {
8788
let macro = try MetaEnumMacro(node: node, declaration: declaration, context: context)

Examples/Sources/MacroExamples/Implementation/Member/NewTypeMacro.swift

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ extension NewTypeMacro: MemberMacro {
2020
public static func expansion<Declaration, Context>(
2121
of node: AttributeSyntax,
2222
providingMembersOf declaration: Declaration,
23+
conformingTo: [TypeSyntax],
2324
in context: Context
2425
) throws -> [DeclSyntax] where Declaration: DeclGroupSyntax, Context: MacroExpansionContext {
2526
do {

0 commit comments

Comments
 (0)