Diagnostic

data class Diagnostic(val from: DocPos, val to: DocPos, val severity: Severity, val message: String, val source: String? = null, val actions: List<Action> = emptyList())

A diagnostic message attached to a range in the document.

Parameters

from

Start of the problematic range.

to

End of the problematic range.

severity

The severity level.

message

Human-readable description of the issue.

source

Optional name of the lint source (e.g. "eslint").

actions

Optional quick-fix actions.

Constructors

Link copied to clipboard
constructor(from: DocPos, to: DocPos, severity: Severity, message: String, source: String? = null, actions: List<Action> = emptyList())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val to: DocPos