max method

ErrorSeverity max(
  1. ErrorSeverity severity
)

Return the severity constant that represents the greatest severity.

Implementation

ErrorSeverity max(ErrorSeverity severity) =>
    weight >= severity.weight ? this : severity;