Class Diagnostic<T>
Diagnostic message with strongly-typed classification, likely attached to the output of some call to a 'Parse' method.
Inherited Members
Namespace: Mangrove.Parsing.Models
Assembly: Mangrove.Parsing.dll
Syntax
public class Diagnostic<T>
where T : Enum
Type Parameters
Name | Description |
---|---|
T | Could be WarningKind or ErrorKind. |
Constructors
View SourceDiagnostic(T, String)
Declaration
public Diagnostic(T type, string message)
Parameters
Type | Name | Description |
---|---|---|
T | type | |
String | message |
Properties
View SourceMessage
The raw message underlying this diagnostic.
Declaration
public string Message { get; }
Property Value
Type | Description |
---|---|
String |
Type
The type of diagnostic that this is.
Declaration
public T Type { get; }
Property Value
Type | Description |
---|---|
T |