8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fe6997 commit d0a35c5Copy full SHA for d0a35c5
Examples/Sources/MacroExamples/Implementation/Peer/AddAsyncMacro.swift
@@ -127,7 +127,7 @@ public struct AddAsyncMacro: PeerMacro {
127
funcDecl.signature.effectSpecifiers = FunctionEffectSpecifiersSyntax(
128
leadingTrivia: .space,
129
asyncSpecifier: .keyword(.async),
130
- throwsSpecifier: isResultReturn ? .keyword(.throws) : nil
+ throwsClause: isResultReturn ? ThrowsClauseSyntax(throwsSpecifier: .keyword(.throws)) : nil
131
)
132
133
// add result type
0 commit comments