max method

Return the severity constant that represents the greatest severity.

Implementation

DiagnosticSeverity max(DiagnosticSeverity severity) =>
    this.ordinal >= severity.ordinal ? this : severity;