mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add support for freestanding declaration macros. - Parse `@declaration` attribute. - Type check and expand `MacroExpansionDecl`. Known issues: - Generic macros are not yet handled. - Expansion does not work when the parent decl context is `BraceStmt`. Need to parse freestanding declaration macro expansions in `BraceStmt` as `MacroExpansionDecl`, and add expanded decls to name lookup.
73 KiB
73 KiB