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 f0197a5 commit ce003dcCopy full SHA for ce003dc
Sources/SwiftSyntaxMacros/MacroSystem.swift
@@ -437,10 +437,13 @@ extension MacroApplication {
437
let extendedTypeSyntax = TypeSyntax("\(extendedType.trimmed)")
438
for (attribute, extensionMacro) in extensionMacroAttrs {
439
do {
440
- let newExtensions = try extensionMacro.expansion(of: attribute,
441
- attachedTo: decl,
442
- providingExtensionsOf: extendedTypeSyntax,
443
- in: context)
+ let newExtensions = try extensionMacro.expansion(
+ of: attribute,
+ attachedTo: decl,
+ providingExtensionsOf: extendedTypeSyntax,
444
+ in: context
445
+ )
446
+
447
extensions.append(contentsOf: newExtensions.map(DeclSyntax.init))
448
} catch {
449
context.addDiagnostics(from: error, node: attribute)
0 commit comments