Skip to content

Commit d5acd46

Browse files
authored
Merge pull request #586 from fwcd/explicit-child-array
Use explicit return type in Node initializer's flatMap
2 parents 32a6aa4 + bb91878 commit d5acd46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftSyntaxBuilderGeneration/Node.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class Node {
9292
} else {
9393
// Add implicitly generated GarbageNodes children between
9494
// any two defined children
95-
self.children = children.enumerated().flatMap { (i, child) in
95+
self.children = children.enumerated().flatMap { (i, child) -> [Child] in
9696
let garbageName: String
9797
if i == 0 {
9898
garbageName = "GarbageBefore\(child.name)"

0 commit comments

Comments
 (0)