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 b1c437d + d4ed127 commit 093e5eeCopy full SHA for 093e5ee
Sources/SwiftParser/Diagnostics/ParseDiagnosticsGenerator.swift
@@ -89,6 +89,9 @@ public class ParseDiagnosticsGenerator: SyntaxAnyVisitor {
89
/// Whether the node should be skipped for diagnostic emission.
90
/// Every visit method must check this at the beginning.
91
func shouldSkip<T: SyntaxProtocol>(_ node: T) -> Bool {
92
+ if !node.hasError {
93
+ return true
94
+ }
95
return handledNodes.contains(node.id)
96
}
97
0 commit comments