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

Name
Description

Initializes a new instance of the Diagnostic class.

Initializes a new instance of the Diagnostic class.

Initializes a new instance of the Diagnostic class.

Enums

Name
Description

The severity of the issue.

Methods

Properties

Name
Description

Gets the zero-indexed character number in FileName at which the issue begins.

Gets or sets the source text of FileName containing the issue.

Gets or sets the path, URI or file-name that the issue occurred in.

Gets the zero-indexed line number in FileName at which the issue begins.

Gets or sets the description of the issue.

Gets or sets the range of the file indicated by FileName that the issue occurred in.

Gets or sets the severity of the issue.

Last updated

Yarn Spinner® and Secret Lab® are trade marks of Secret Lab Pty. Ltd., and are used by Yarn Spinner Pty. Ltd. under license.