Skip to content

Commit 9ed1837

Browse files
committed
release notes for the breaking change
1 parent 55b23f2 commit 9ed1837

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
@@ -67,6 +67,11 @@
6767

6868
## API-Incompatible Changes
6969

70+
- `MacroDefinition` used for expanding macros:
71+
- 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])`
72+
- Pull request: https://github.com/apple/swift-syntax/pull/2450
73+
- 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: [])`).
74+
7075
- Effect specifiers:
7176
- Description: The `unexpectedAfterThrowsSpecifier` node of the various effect specifiers has been removed.
7277
- Pull request: https://github.com/apple/swift-syntax/pull/2219

0 commit comments

Comments
 (0)