mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
'MacroExpansionDecl' and 'MacroExpansionExpr' have many common methods. Introduce a common base class 'FreestandingMacroExpansion' that holds 'MacroExpansionInfo'. Factor out common expansion logic to 'evaluateFreestandingMacro' function that resembles 'evaluateAttachedMacro'.
1.4 KiB
1.4 KiB