-
Notifications
You must be signed in to change notification settings - Fork 446
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
When unit testing macro expansions using SwiftSyntaxMacroExpansion, there's no way for it to expand fully qualified attached macro
let attributeName = attribute.attributeName.as(IdentifierTypeSyntax.self)?.name.text, |
Steps to Reproduce
Try to write a unit test that expands a fully qualified attached macro:
@MyModule.MyMacro var hello = "world"
Neither of the following in the dictionary works with the SyntaxProtocol.expand
function
[
"MyMacro": MyMacro.self,
"MyModule.MyMacro": MyMacro.self,
]
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
ApolloZhu commentedon Oct 6, 2024
Tracked in Apple’s issue tracker as rdar://137364509