File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Sources/SpyableMacro/Factories Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -88,9 +88,11 @@ struct FunctionImplementationFactory {
8888 }
8989
9090 #if canImport(SwiftSyntax600)
91- let throwsSpecifier = protocolFunctionDeclaration. signature. effectSpecifiers? . throwsClause? . throwsSpecifier
91+ let throwsSpecifier = protocolFunctionDeclaration. signature. effectSpecifiers? . throwsClause?
92+ . throwsSpecifier
9293 #else
93- let throwsSpecifier = protocolFunctionDeclaration. signature. effectSpecifiers? . throwsSpecifier
94+ let throwsSpecifier = protocolFunctionDeclaration. signature. effectSpecifiers?
95+ . throwsSpecifier
9496 #endif
9597
9698 if throwsSpecifier != nil {
Original file line number Diff line number Diff line change @@ -157,9 +157,10 @@ struct SpyFactory {
157157 parameterList: parameterList
158158 )
159159 }
160-
160+
161161 #if canImport(SwiftSyntax600)
162- let throwsSpecifier = functionDeclaration. signature. effectSpecifiers? . throwsClause? . throwsSpecifier
162+ let throwsSpecifier = functionDeclaration. signature. effectSpecifiers? . throwsClause?
163+ . throwsSpecifier
163164 #else
164165 let throwsSpecifier = functionDeclaration. signature. effectSpecifiers? . throwsSpecifier
165166 #endif
You can’t perform that action at this time.
0 commit comments