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 Diagnostic

Remarks

Diagnostics are presented to the user as the result of compilation, through the CompilationResult class’s Diagnostics property.

Constructors

NameDescription
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

NameDescription
DiagnosticSeverityThe severity of the issue.

Methods

Properties

NameDescription
ColumnGets the zero-indexed character number in FileName at which the issue begins.
ContextGets or sets the source text of FileName containing the issue.
FileNameGets or sets the path, URI or file-name that the issue occurred in.
LineGets the zero-indexed line number in FileName at which the issue begins.
MessageGets or sets the description of the issue.
RangeGets or sets the range of the file indicated by FileName that the issue occurred in.
SeverityGets or sets the severity of the issue.