Table of Contents

Constructor LocatedDiagnostic

Namespace
DialogueDown.Diagnostics
Assembly
DialogueDown.dll

LocatedDiagnostic(string, DiagnosticSeverity, DiagnosticCategory, string, LinePosition, LinePosition, int, int)

The public, located view of one diagnostic: its Code, Severity, Category, the fully rendered Message, the one-based Start and End positions, and the half-open character range [StartOffset, EndOffset) the diagnostic points at. Line/column suit human display and editor (LSP) ranges; the offsets let a tool index the source directly — a rendered underline or an editor selection. Consumers — the CLI errata renderer today, the LSP and web overlays later — depend on this stable projection rather than the compiler's internal diagnostic, whose types are free to evolve. Built by projecting a DialogueDown.Diagnostics.Diagnostic through a DialogueDown.Diagnostics.LineMap: the message is composed once (invariant culture) and the offsets are resolved to line/column, so every consumer shares identical text and locations.

public LocatedDiagnostic(string Code, DiagnosticSeverity Severity, DiagnosticCategory Category, string Message, LinePosition Start, LinePosition End, int StartOffset, int EndOffset)

Parameters

Code string
Severity DiagnosticSeverity
Category DiagnosticCategory
Message string
Start LinePosition
End LinePosition
StartOffset int
EndOffset int