Skip to content

Commit f04885f

Browse files
committed
Fix build for older compilers
1 parent 902bdf7 commit f04885f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/_SwiftSyntaxMacros/MacroSystem.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ class MacroApplication: SyntaxRewriter {
110110
}
111111

112112
if newAttributes.isEmpty {
113-
return Syntax(visitedNode.withAttributes(nil))
113+
return Syntax(fromProtocol: visitedNode.withAttributes(nil))
114114
}
115115

116-
return Syntax(visitedNode.withAttributes(AttributeListSyntax(newAttributes)))
116+
return Syntax(fromProtocol: visitedNode.withAttributes(AttributeListSyntax(newAttributes)))
117117
}
118118

119119
return nil

0 commit comments

Comments
 (0)