SimpleDiagnostic

constructor(range: IntRange, cause: DiagnosticCause)

Creates a SimpleDiagnostic from a DiagnosticCause.

Parameters

range

the range of the diagnostic in the source text

cause

the cause of the diagnostic


constructor(range: IntRange, message: String, severity: DiagnosticSeverity)

Parameters

range

the range of the diagnostic in the source text

message

the message of the diagnostic

severity

the severity of the diagnostic