Skip to content

Commit a0943e6

Browse files
authored
Merge pull request #40 from loopwerk/main
Fix Swift 5.6 compatibility
2 parents e9f4c99 + 52b9ecc commit a0943e6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Sources/Swim/Visitor.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,24 +76,31 @@ public extension Visitor where Result == Void {
7676
if let child = child {
7777
visitNode(child)
7878
}
79+
return
7980
}
8081

8182
func visitText(text: String) -> Result {
83+
return
8284
}
8385

8486
func visitRaw(raw: String) -> Result {
87+
return
8588
}
8689

8790
func visitComment(text: String) -> Result {
91+
return
8892
}
8993

9094
func visitDocumentType(name: String) -> Result {
95+
return
9196
}
9297

9398
func visitFragment(children: [Node]) -> Result {
9499
children.forEach(visitNode)
100+
return
95101
}
96102

97103
func visitTrim() -> Result {
104+
return
98105
}
99106
}

0 commit comments

Comments
 (0)