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 8aae9cd commit 9f84c6bCopy full SHA for 9f84c6b
Sources/_SwiftSyntaxMacros/MacroSystem.swift
@@ -190,7 +190,8 @@ class MacroApplication: SyntaxRewriter {
190
// Visit the node first.
191
192
guard let visitedFunc = visitedNode.as(FunctionDeclSyntax.self),
193
- let attributes = visitedFunc.attributes else {
+ let attributes = visitedFunc.attributes
194
+ else {
195
return visitedNode
196
}
197
@@ -201,7 +202,8 @@ class MacroApplication: SyntaxRewriter {
201
202
203
204
guard let attributeName = customAttr.attributeName.as(SimpleTypeIdentifierSyntax.self)?.name.text,
- let macro = macroSystem.macros[attributeName] else {
205
+ let macro = macroSystem.macros[attributeName]
206
207
return true
208
209
0 commit comments