Skip to content

Commit 440b6da

Browse files
natikgadzhiMatejkob
andcommitted
Provides release notes entries for new APIs
Provides release notes entries for: - `ClosureCaptureSyntax.init` #2127 - `EnumCaseParameterSyntax.init` #2112 Co-authored-by: Mateusz Bąk <[email protected]>
1 parent 8fb3713 commit 440b6da

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

Release Notes/510.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,19 @@
33
## New APIs
44

55
- `SyntaxStringInterpolation.appendInterpolation(_: (some SyntaxProtocol)?)`
6-
- Descriptions: Allows optional syntax nodes to be used inside string interpolation of syntax nodes. If the node is `nil`, nothing will get added to the string interpolation.
6+
- Description: Allows optional syntax nodes to be used inside string interpolation of syntax nodes. If the node is `nil`, nothing will get added to the string interpolation.
77
- Pull Request: https://github.com/apple/swift-syntax/pull/2085
88
- `SyntaxCollection.index(at:)`
99
- Description: Returns the index of the n-th element in a `SyntaxCollection`. This computation is in O(n) and `SyntaxCollection` is not subscriptable by an integer.
10+
- Issue: https://github.com/apple/swift-syntax/issues/1984
1011
- Pull Request: https://github.com/apple/swift-syntax/pull/2014
12+
- Convenience initializer `ClosureCaptureSyntax.init()`
13+
- Description: Provides a convenience initializer for `ClosureCaptureSyntax` that takes a concrete `name` argument and automatically adds `equal = TokenSyntax.equalToken()` to it.
14+
- Pull Request: https://github.com/apple/swift-syntax/pull/2127
15+
- Convenience initializer `EnumCaseParameterSyntax.init()`
16+
- Description: Provides a convenience initializer for `EnumCaseParameterSyntax` that takes a concrete `firstName` value and adds `colon = TokenSyntax.colonToken()` automatically to it.
17+
- Issue: https://github.com/apple/swift-syntax/issues/1984
18+
- Pull Request: https://github.com/apple/swift-syntax/pull/2112
1119

1220
## API Behavior Changes
1321

Sources/SwiftSyntax/Convenience.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
extension ClosureCaptureSyntax {
1414

15-
/// Creates a `ClosureCaptureSyntax` with a `name`, and automatically adds an `equal` token to it since the name is non-optional.
15+
/// Creates a ``ClosureCaptureSyntax`` with a `name`, and automatically adds an `equal` token to it since the name is non-optional.
1616
///
1717
/// - SeeAlso: ``ClosureCaptureSyntax/init(leadingTrivia:_:specifier:_:name:_:equal:_:expression:_:trailingComma:_:trailingTrivia:)``.
1818
///
@@ -39,7 +39,7 @@ extension ClosureCaptureSyntax {
3939

4040
extension EnumCaseParameterSyntax {
4141

42-
/// Creates an `EnumCaseParameterSyntax` with a `firstName`, and automatically adds a `colon` to it.
42+
/// Creates an ``EnumCaseParameterSyntax`` with a `firstName`, and automatically adds a `colon` to it.
4343
///
4444
/// - SeeAlso: For more information on the arguments, see ``EnumCaseParameterSyntax/init(leadingTrivia:_:modifiers:_:firstName:_:secondName:_:colon:_:type:_:defaultArgument:_:trailingComma:_:trailingTrivia:)``
4545
///

0 commit comments

Comments
 (0)