interface Deno.Diagnostic

Properties

optional
messageText: string

A string message summarizing the diagnostic.

optional
messageChain: DiagnosticMessageChain

An ordered array of further diagnostics.

optional
relatedInformation: Diagnostic[]

Information related to the diagnostic. This is present when there is a suggestion or other additional diagnostic information

optional
sourceLine: string

The text of the source line related to the diagnostic.

optional
source: string
optional
start: { line: number; character: number; }

The start position of the error. Zero based index.

optional
end: { line: number; character: number; }

The end position of the error. Zero based index.

optional
fileName: string

The filename of the resource related to the diagnostic message.

category: DiagnosticCategory

The category of the diagnostic.

code: number

A number identifier.