File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ ParseFile.test("ParseSingleFile") {
31
31
let currentFile = URL ( fileURLWithPath: #file)
32
32
expectDoesNotThrow ( {
33
33
let currentFileContents = try String ( contentsOf: currentFile)
34
- let parsed = SourceFileSyntax . decodeSourceFileSyntax ( try SourceKitdService .
35
- encodeSourceFileSyntax ( currentFile) )
34
+ let parsed = try SourceFileSyntax . decodeSourceFileSyntax ( try
35
+ SourceKitdService . encodeSourceFileSyntax ( currentFile) )
36
36
expectEqual ( " \( parsed) " , currentFileContents)
37
37
} )
38
38
}
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ VisitorTests.test("Basic") {
27
27
}
28
28
}
29
29
expectDoesNotThrow ( {
30
- let parsed = SourceFileSyntax . decodeSourceFileSyntax ( try SourceKitdService .
31
- encodeSourceFileSyntax ( getInput ( " visitor.swift " ) ) )
30
+ let parsed = try SourceFileSyntax . decodeSourceFileSyntax ( try
31
+ SourceKitdService . encodeSourceFileSyntax ( getInput ( " visitor.swift " ) ) )
32
32
let counter = FuncCounter ( )
33
33
let hashBefore = parsed. hashValue
34
34
counter. visit ( parsed)
You can’t perform that action at this time.
0 commit comments