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 6eb1701 commit 3413b19Copy full SHA for 3413b19
Sources/SwiftParser/Diagnostics/ParseDiagnosticsGenerator.swift
@@ -53,7 +53,9 @@ public class ParseDiagnosticsGenerator: SyntaxAnyVisitor {
53
super.init(viewMode: .all)
54
}
55
56
- public static func diagnostics(for tree: SyntaxProtocol) -> [Diagnostic] {
+ public static func diagnostics<SyntaxType: SyntaxProtocol>(
57
+ for tree: SyntaxType
58
+ ) -> [Diagnostic] {
59
let diagProducer = ParseDiagnosticsGenerator()
60
diagProducer.walk(tree)
61
return diagProducer.diagnostics
0 commit comments