File tree Expand file tree Collapse file tree 5 files changed +4
-2
lines changed Expand file tree Collapse file tree 5 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,6 @@ extension ASTGenVisitor {
141
141
return self . generate ( nilLiteralExpr: node) . asExpr
142
142
case . optionalChainingExpr( let node) :
143
143
return self . generate ( optionalChainingExpr: node) . asExpr
144
- break
145
144
case . packElementExpr( let node) :
146
145
return self . generate ( packElementExpr: node) . asExpr
147
146
case . packExpansionExpr( let node) :
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ extension AttributeListSyntax.Element {
86
86
if let availability = ifConfig. availability {
87
87
return . ifConfigDecl( availability)
88
88
}
89
- default :
89
+ @ unknown default :
90
90
break
91
91
}
92
92
return nil
Original file line number Diff line number Diff line change @@ -196,6 +196,7 @@ extension ObservableMacro: MemberMacro {
196
196
> (
197
197
of node: AttributeSyntax ,
198
198
providingMembersOf declaration: Declaration ,
199
+ conformingTo protocols: [ TypeSyntax ] ,
199
200
in context: Context
200
201
) throws -> [ DeclSyntax ] {
201
202
guard let identified = declaration. asProtocol ( NamedDeclSyntax . self) else {
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ extension DebugDescriptionMacro: MemberMacro {
24
24
public static func expansion(
25
25
of node: AttributeSyntax ,
26
26
providingMembersOf declaration: some DeclGroupSyntax ,
27
+ conformingTo protocols: [ TypeSyntax ] ,
27
28
in context: some MacroExpansionContext
28
29
)
29
30
throws -> [ DeclSyntax ]
Original file line number Diff line number Diff line change @@ -152,6 +152,7 @@ extension OptionSetMacro: MemberMacro {
152
152
> (
153
153
of attribute: AttributeSyntax ,
154
154
providingMembersOf decl: Decl ,
155
+ conformingTo protocols: [ TypeSyntax ] ,
155
156
in context: Context
156
157
) throws -> [ DeclSyntax ] {
157
158
// Decode the expansion arguments.
You can’t perform that action at this time.
0 commit comments