Diagnostic
Class in Yarn.Compiler
Inherits from System.Object
Summary
A diagnostic message that describes an error, warning or informational message that the user can take action on.
public sealed class DiagnosticRemarks
Diagnostics are presented to the user as the result of compilation, through the CompilationResult class’s Diagnostics property.
Constructors
| Name | Description |
|---|---|
| Diagnostic(string,IToken,string,DiagnosticSeverity) | Initializes a new instance of the Diagnostic class. |
| Diagnostic(string,ParserRuleContext?,string,DiagnosticSeverity) | Initializes a new instance of the Diagnostic class. |
| Diagnostic(string,string,DiagnosticSeverity) | Initializes a new instance of the Diagnostic class. |
| Diagnostic(string,DiagnosticSeverity) | Initializes a new instance of the Diagnostic class. |
| Diagnostic(string,Range,string,DiagnosticSeverity) | Initializes a new instance of the Diagnostic class. |
Enums
| Name | Description |
|---|---|
| DiagnosticSeverity | The severity of the issue. |
Methods
| Name | Description |
|---|---|
| Equals(object) | |
| GetHashCode() | |
| ToString() |
Properties
| Name | Description |
|---|---|
| Column | Gets the zero-indexed character number in FileName at which the issue begins. |
| Context | Gets or sets the source text of FileName containing the issue. |
| FileName | Gets or sets the path, URI or file-name that the issue occurred in. |
| Line | Gets the zero-indexed line number in FileName at which the issue begins. |
| Message | Gets or sets the description of the issue. |
| Range | Gets or sets the range of the file indicated by FileName that the issue occurred in. |
| Severity | Gets or sets the severity of the issue. |