Skip to content

Commit e0f14b9

Browse files
committed
Add release notes
1 parent 60f60ec commit e0f14b9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Release Notes/601.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
- Added a new library `SwiftIfConfig`.
2323
- Description: This new library provides facilities for evaluating `#if` conditions and determining which regions of a syntax tree are active according to a given build configuration.
2424
- Pull Request: https://github.com/swiftlang/swift-syntax/pull/1816
25+
26+
- `SwiftBasicFormat` adds a method `indented(by:)` to all syntax node types.
27+
- Description: This method indents a node’s contents using a provided piece of `Trivia`, optionally including the first line.
28+
- Pull Request: https://github.com/swiftlang/swift-syntax/pull/2843
2529

2630
## API Behavior Changes
2731

@@ -44,6 +48,10 @@
4448
- Description: `ClosureCaptureSyntax` now has an `initializer` property instead of `equal` and `expression`. Additionally, the `name` property is no longer optional.
4549
- Pull request: https://github.com/swiftlang/swift-syntax/pull/2763
4650

51+
- `Indenter` in `SwiftSyntaxBuilder` has been deprecated in favor of the new `indented(by:)` in `SwiftBasicFormat`.
52+
- Description: Indenting is really more of a formatting operation than a syntax-building operation. Additionally, the `indented(by:)` method is more intuitive to use than a `SyntaxRewriter`. Aside from `BasicFormat`, there are no other public `SyntaxRewriter` classes in the package.
53+
- Pull Request: https://github.com/swiftlang/swift-syntax/pull/2843
54+
4755
## API-Incompatible Changes
4856

4957
- Moved `Radix` and `IntegerLiteralExprSyntax.radix` from `SwiftRefactor` to `SwiftSyntax`.

0 commit comments

Comments
 (0)