Skip to content

Commit 1710601

Browse files
committed
Formatting
1 parent 1856087 commit 1710601

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

CodeGeneration/Sources/SyntaxSupport/TypeNodes.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,12 @@ public let TYPE_NODES: [Node] = [
5959
),
6060
Child(
6161
name: "lateSpecifiers",
62-
kind: .collection(kind: .typeSpecifierList, collectionElementName: "Specifier", defaultsToEmpty: true,
63-
generateDeprecatedAddFunction: false),
62+
kind: .collection(
63+
kind: .typeSpecifierList,
64+
collectionElementName: "Specifier",
65+
defaultsToEmpty: true,
66+
generateDeprecatedAddFunction: false
67+
),
6468
documentation:
6569
"A list of specifiers that can be attached to the type after the attributes, such as 'nonisolated'."
6670
),

CodeGeneration/Sources/generate-swift-syntax/templates/swiftsyntax/SyntaxNodesFile.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ func syntaxNode(nodesStartingWith: [Character]) -> SourceFileSyntax {
176176
// If needed, this could be added in the future, but for now withUnexpected should be sufficient.
177177
if let childNode = SYNTAX_NODE_MAP[child.syntaxNodeKind]?.collectionNode,
178178
!child.isUnexpectedNodes,
179-
case .collection(_, collectionElementName: let childElt?, _, _, generateDeprecatedAddFunction: true) = child.kind
179+
case .collection(_, collectionElementName: let childElt?, _, _, generateDeprecatedAddFunction: true) = child
180+
.kind
180181
{
181182
let childEltType = childNode.collectionElementType.syntaxBaseName
182183

Sources/SwiftParser/Types.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,8 +1264,7 @@ extension Parser {
12641264

12651265
// Only handle `nonisolated` as a late specifier.
12661266
var lateSpecifiers: [RawTypeSpecifierListSyntax.Element] = []
1267-
if self.at(.keyword(.nonisolated)) &&
1268-
!(self.peek(isAt: .leftParen) && self.peek().isAtStartOfLine) {
1267+
if self.at(.keyword(.nonisolated)) && !(self.peek(isAt: .leftParen) && self.peek().isAtStartOfLine) {
12691268
lateSpecifiers.append(parseNonisolatedTypeSpecifier())
12701269
}
12711270

0 commit comments

Comments
 (0)