Class ParserDiagnosticSeverityMapper
- Namespace
- Utils.Parser.Diagnostics
- Assembly
- Utils.Parser.Diagnostics.dll
Provides severity mapping from diagnostic code prefixes.
public static class ParserDiagnosticSeverityMapper
- Inheritance
-
ParserDiagnosticSeverityMapper
- Inherited Members
Methods
FromCode(string)
Resolves severity from a code using the first digit after UP.
Codes using the PARSERxxx convention map to warning severity.
public static DiagnosticSeverity FromCode(string code)
Parameters
codestringDiagnostic code in the form
UPxxxxorPARSERxxx.
Returns
- DiagnosticSeverity
Mapped diagnostic severity.
Exceptions
- ArgumentException
Thrown when the code prefix is invalid.