We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc52823 commit a791a3dCopy full SHA for a791a3d
test/SwiftSyntax/Inputs/nested-blocks.swift
@@ -1,8 +1,8 @@
1
-struct {
+struct Foo {
2
func foo() {
3
print("hello")
4
func bar() {
5
print("goodbye")
6
}
7
8
-}
+}
test/SwiftSyntax/VisitorTest.swift
@@ -83,6 +83,7 @@ VisitorTests.test("SyntaxRewriter.visitCollection") {
83
84
override func visit(_ items: CodeBlockItemListSyntax) {
85
numberOfCodeBlockItems += items.count
86
+ super.visit(items)
87
88
89
@@ -92,7 +93,7 @@ VisitorTests.test("SyntaxRewriter.visitCollection") {
92
93
)
94
let visitor = VisitCollections()
95
visitor.visit(parsed)
- expectEqual(3, visitor.numberOfCodeBlockItems)
96
+ expectEqual(4, visitor.numberOfCodeBlockItems)
97
})
98
99
0 commit comments