Table of Contents

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

code string

Diagnostic code in the form UPxxxx or PARSERxxx.

Returns

DiagnosticSeverity

Mapped diagnostic severity.

Exceptions

ArgumentException

Thrown when the code prefix is invalid.