DiagnosticSeverity

public enum DiagnosticSeverity

Describes the severity of a particular diagnostic.

  • A diagnostic that has been suppressed, e.g., by a command-line option.

    Declaration

    Swift

    case ignored
  • This diagnostic is a note that should be attached to the previous (non-note) diagnostic.

    Declaration

    Swift

    case note
  • This diagnostic indicates suspicious code that may not be wrong.

    Declaration

    Swift

    case warning
  • This diagnostic indicates that the code is ill-formed.

    Declaration

    Swift

    case error
  • This diagnostic indicates that the code is ill-formed such that future parser recovery is unlikely to produce useful results.

    Declaration

    Swift

    case fatal