Table of Contents

Class Diagnostic

Namespace
Alternet.Common.TypeScript.Types
Assembly
Alternet.Common.TypeScript.v9.dll

Represents a diagnostic, such as a compiler error or a warning, along with the location where it occurred.

public class Diagnostic
Inheritance
Diagnostic

Constructors

Diagnostic(string, int, string, int?, int?, DiagnosticCategory, int?, int?)

Initializes a new instance of the Diagnostic class with specified parameters.

Properties

Category

Gets diagnostic category.

Code

Gets source code to which diagnostic is related.

ColumnIndex

Gets column index of the diagnostic position.

FilePath

Gets file name containing diagnostic.

Length

Gets diagnostic length.

LineIndex

Gets line index of the diagnostic position.

Message

Gets diagnostic description.

Start

Gets start position of the diagnostic.

Methods

FromJs(dynamic)

Gets Diagnostics from JS object.

WithCategory(DiagnosticCategory)

Creates a new Diagnostic that contains new category.