8000 Provides release notes entries for new APIs · swiftlang/swift-syntax@23c2098 · GitHub
[go: up one dir, main page]

Skip to content

Commit 23c2098

Browse files
committed
Provides release notes entries for new APIs
Provides release notes entries for: - `ClosureCaptureSyntax.init` #2127 - `EnumCaseParameterSyntax.init` #2112
1 parent 269c036 commit 23c2098

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Release Notes/510.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,17 @@
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.
1010
- Pull Request: https://github.com/apple/swift-syntax/pull/2014
11+
- `ClosureCaptureSyntax.init(leadingTrivia: Trivia? = nil, specifier: ClosureCaptureSpecifierSyntax? = nil, name: TokenSyntax, equal: TokenSyntax = TokenSyntax.equalToken(), expression: some ExprSyntaxProtocol, trailingComma: TokenSyntax? = nil, trailingTrivia: Trivia? = nil)`
12+
- Description: Provides a convenience initializer for `ClosureCaptureSyntax` that takes a concrete `name` argument and automatically adds `equal = TokenSyntax.equalToken()` to it.
13+
- Pull Request: https://github.com/apple/swift-syntax/pull/2127
14+
- `EnumCaseParameterSyntax.init(leadingTrivia: Trivia? = nil, modifiers: DeclModifierListSyntax = [], firstName: TokenSyntax, secondName: TokenSyntax? = nil, colon: TokenSyntax = TokenSyntax.colonToken(), type: some TypeSyntaxProtocol, defaultValue: InitializerClauseSyntax? = nil, trailingComma: TokenSyntax? = nil, trailingTrivia: Trivia? = nil)`
15+
- Description: Provides a convenience initializer for `EnumCaseParameterSyntax` that takes a concrete `firstName` value and adds `colon = TokenSyntax.colonToken()` automatically to it.
16+
- Pull Request: https://github.com/apple/swift-syntax/pull/2112
1117

1218
## API Behavior Changes
1319

0 commit comments

Comments
 (0)
0