Skip to content

Fix build warnings in the Examples package #2913

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ extension DictionaryStorageMacro: MemberMacro {
public static func expansion(
of node: AttributeSyntax,
providingMembersOf declaration: some DeclGroupSyntax,
conformingTo: [TypeSyntax],
in context: some MacroExpansionContext
) throws -> [DeclSyntax] {
return ["\n var _storage: [String: Any] = [:]"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public struct ObservableMacro: MemberMacro, MemberAttributeMacro {
public static func expansion(
of node: AttributeSyntax,
providingMembersOf declaration: some DeclGroupSyntax,
conformingTo: [TypeSyntax],
in context: some MacroExpansionContext
) throws -> [DeclSyntax] {
guard let identified = declaration.asProtocol(NamedDeclSyntax.self) else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ extension OptionSetMacro: MemberMacro {
public static func expansion(
of attribute: AttributeSyntax,
providingMembersOf decl: some DeclGroupSyntax,
conformingTo: [TypeSyntax],
in context: some MacroExpansionContext
) throws -> [DeclSyntax] {
// Decode the expansion arguments.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public enum CaseDetectionMacro: MemberMacro {
public static func expansion(
of node: AttributeSyntax,
providingMembersOf declaration: some DeclGroupSyntax,
conformingTo: [TypeSyntax],
in context: some MacroExpansionContext
) throws -> [DeclSyntax] {
declaration.memberBlock.members
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public enum CustomCodable: MemberMacro {
public static func expansion(
of node: AttributeSyntax,
providingMembersOf declaration: some DeclGroupSyntax,
conformingTo: [TypeSyntax],
in context: some MacroExpansionContext
) throws -> [DeclSyntax] {
let memberList = declaration.memberBlock.members
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ extension MetaEnumMacro: MemberMacro {
public static func expansion(
of node: AttributeSyntax,
providingMembersOf declaration: some DeclGroupSyntax,
conformingTo: [TypeSyntax],
in context: some MacroExpansionContext
) throws -> [DeclSyntax] {
let macro = try MetaEnumMacro(node: node, declaration: declaration, context: context)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ extension NewTypeMacro: MemberMacro {
public static func expansion<Declaration, Context>(
of node: AttributeSyntax,
providingMembersOf declaration: Declaration,
conformingTo: [TypeSyntax],
in context: Context
) throws -> [DeclSyntax] where Declaration: DeclGroupSyntax, Context: MacroExpansionContext {
do {
Expand Down