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 2a65025 commit d4ed127Copy full SHA for d4ed127
Sources/SwiftParser/Diagnostics/ParseDiagnosticsGenerator.swift
@@ -65,6 +65,9 @@ public class ParseDiagnosticsGenerator: SyntaxAnyVisitor {
65
/// Whether the node should be skipped for diagnostic emission.
66
/// Every visit method must check this at the beginning.
67
func shouldSkip<T: SyntaxProtocol>(_ node: T) -> Bool {
68
+ if !node.hasError {
69
+ return true
70
+ }
71
return handledNodes.contains(node.id)
72
}
73
0 commit comments