Testable Swift Macros: Separating Generation Logic from Compiler Plugins Aug 21, 2025 Split a Swift macro into a thin plugin entry point, pure generation rules, syntax construction, and deliberate diagnostics for smaller and more stable tests.