Structure_RegexParser5.9.0
Diagnostics
A collection of diagnostics to emit.
struct Diagnostics
Citizens in _RegexParser
Conformances
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.
Members
init(
) init([Diagnostic]
) var diags: [Diagnostic]
var hasAnyError: Bool
Whether any error is present. This includes fatal errors.
var hasFatalError: Bool
Whether any fatal error is present.
func append(Diagnostic
) Add a new diagnostic to emit.
func append(contentsOf: Diagnostics
) Add all the diagnostics of another diagnostic collection.
func appendNewFatalErrors(from: Diagnostics
) Add all the new fatal error diagnostics of another diagnostic collection. This assumes that
other
was the same asself
, but may have additional diagnostics added to it.