mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Macros] Implement attached extension macros.
This commit is contained in:
@@ -59,6 +59,8 @@ void SwiftLangSupport::expandMacroSyntactically(
|
||||
macroRoles |= swift::MacroRole::Peer;
|
||||
if (req.roles.contains(SourceKit::MacroRole::Conformance))
|
||||
macroRoles |= swift::MacroRole::Conformance;
|
||||
if (req.roles.contains(SourceKit::MacroRole::Extension))
|
||||
macroRoles |= swift::MacroRole::Extension;
|
||||
|
||||
MacroDefinition definition = [&] {
|
||||
if (auto *expanded =
|
||||
|
||||
Reference in New Issue
Block a user