Skip to content

Commit 3413b19

Browse files
committed
Remove dependency on implicit opening of existentials
1 parent 6eb1701 commit 3413b19

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/SwiftParser/Diagnostics/ParseDiagnosticsGenerator.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ public class ParseDiagnosticsGenerator: SyntaxAnyVisitor {
5353
super.init(viewMode: .all)
5454
}
5555

56-
public static func diagnostics(for tree: SyntaxProtocol) -> [Diagnostic] {
56+
public static func diagnostics<SyntaxType: SyntaxProtocol>(
57+
for tree: SyntaxType
58+
) -> [Diagnostic] {
5759
let diagProducer = ParseDiagnosticsGenerator()
5860
diagProducer.walk(tree)
5961
return diagProducer.diagnostics

0 commit comments

Comments
 (0)