Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
10 changes: 5 additions & 5 deletions Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Sources/ComposableArchitectureMacros/Availability.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@
if let availability = ifConfig.availability {
return .ifConfigDecl(availability)
}
@unknown default:

Check warning on line 89 in Sources/ComposableArchitectureMacros/Availability.swift

View workflow job for this annotation

GitHub Actions / xcodebuild (15) (test, IOS, 15.4)

default will never be executed

Check warning on line 89 in Sources/ComposableArchitectureMacros/Availability.swift

View workflow job for this annotation

GitHub Actions / xcodebuild (15) (MACOS, 15.2)

default will never be executed
return nil
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could also fatalError here?

}
return nil
}
Expand Down
10 changes: 4 additions & 6 deletions Sources/ComposableArchitectureMacros/ObservableStateMacro.swift
Original file line number Diff line number Diff line change
Expand Up @@ -215,13 +215,11 @@ extension VariableDeclSyntax {
}

extension ObservableStateMacro: MemberMacro {
public static func expansion<
Declaration: DeclGroupSyntax,
Context: MacroExpansionContext
>(
public static func expansion(
of node: AttributeSyntax,
providingMembersOf declaration: Declaration,
in context: Context
providingMembersOf declaration: some DeclGroupSyntax,
conformingTo protocols: [TypeSyntax],
in context: some MacroExpansionContext
) throws -> [DeclSyntax] {
guard !declaration.isEnum
else {
Expand Down
2 changes: 1 addition & 1 deletion Sources/ComposableArchitectureMacros/PresentsMacro.swift
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
genericArgumentClause: GenericArgumentClauseSyntax(
arguments: [
GenericArgumentSyntax(
argument: self
argument: GenericArgumentSyntax.Argument(self)

Check failure on line 222 in Sources/ComposableArchitectureMacros/PresentsMacro.swift

View workflow job for this annotation

GitHub Actions / xcodebuild (16) (test, MACOS, 16.2)

type 'GenericArgumentSyntax' has no member 'Argument'

Check failure on line 222 in Sources/ComposableArchitectureMacros/PresentsMacro.swift

View workflow job for this annotation

GitHub Actions / xcodebuild (15) (test, IOS, 15.4)

type 'GenericArgumentSyntax' has no member 'Argument'

Check failure on line 222 in Sources/ComposableArchitectureMacros/PresentsMacro.swift

View workflow job for this annotation

GitHub Actions / xcodebuild (15) (MACOS, 15.2)

type 'GenericArgumentSyntax' has no member 'Argument'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This and the above are deprecation warning fixes.

)
]
)
Expand Down
Loading