Skip to content

Commit e7c90be

Browse files
committed
[swiftSyntax] Add test cases for the SyntaxClassifier
1 parent 4776caf commit e7c90be

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

SwiftSyntax.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,6 @@ public enum SyntaxTreeParser {
9595
public static func parse(_ url: URL) throws -> SourceFileSyntax {
9696
let swiftcRunner = try SwiftcRunner(sourceFile: url)
9797
let result = try swiftcRunner.invoke()
98-
guard result.wasSuccessful else {
99-
throw ParserError.swiftcFailed(result.exitCode, result.stderr)
100-
}
10198
let syntaxTreeData = result.stdoutData
10299
let deserializer = SyntaxTreeDeserializer()
103100
return try deserializer.deserialize(syntaxTreeData)

0 commit comments

Comments
 (0)