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.
2 parents cb15ec6 + fb3fa81 commit 470a819Copy full SHA for 470a819
Tests/SwiftParserTest/Assertions.swift
@@ -337,7 +337,7 @@ func AssertParse<S: SyntaxProtocol>(
337
) {
338
AssertParse(
339
markedSource,
340
- { source in
+ { (source: String) -> S in
341
var parser = Parser(source)
342
return parse(&parser)
343
},
Tests/SwiftParserTest/Parser+EntryTests.swift
@@ -20,7 +20,7 @@ public class EntryTests: XCTestCase {
20
}
21
22
func testTopLevelBufferParse() throws {
23
- AssertParse("func test() {}", { source in
+ AssertParse("func test() {}", { (source: String) -> SourceFileSyntax in
24
var source = source
25
source.makeContiguousUTF8()
26
return source.withUTF8 { Parser.parse(source: $0) }
0 commit comments