Skip to content

Commit 92ef2db

Browse files
committed
release notes for the breaking change
1 parent c2e0139 commit 92ef2db

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Release Notes/511.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@
6363

6464
## API-Incompatible Changes
6565

66+
- `MacroDefinition` used for expanding macros:
67+
- Description: The `MacroDefinition/expansion` enum case used to have two values (`(MacroExpansionExprSyntax, replacements: [Replacement])`), has now gained another value in order to support generic argument replacements in macro expansions: `(MacroExpansionExprSyntax, replacements: [Replacement], genericReplacements: [GenericArgumentReplacement])`
68+
- Pull request: https://github.com/apple/swift-syntax/pull/2450
69+
- Migration steps: Code which exhaustively checked over the enum should be changed to `case .expansion(let node, let replacements, let genericReplacements):`. Creating the `.extension` gained a compatibility shim, retaining the previous syntax source compatible (`return .expansion(node, replacements: [])`).
70+
6671
- Effect specifiers:
6772
- Description: The `unexpectedAfterThrowsSpecifier` node of the various effect specifiers has been removed.
6873
- Pull request: https://github.com/apple/swift-syntax/pull/2219

0 commit comments

Comments
 (0)