Table of Contents

Class LrcDiagnostic

Namespace
ModernLrc.Diagnostics
Assembly
ModernLrc.dll

A single diagnostic emitted during parsing or writing. Line is 1-based; Column is 1-based; Length covers the offending source span (in chars). All locations refer to the original input/output, not any normalized form.

public sealed record LrcDiagnostic : IEquatable<LrcDiagnostic>
Inheritance
LrcDiagnostic
Implements
Inherited Members

Properties

Code

Stable identifier from LrcDiagnosticIds.

public required string Code { get; init; }

Property Value

string

Column

1-based column number.

public required int Column { get; init; }

Property Value

int

Length

Length of the offending span, in chars.

public required int Length { get; init; }

Property Value

int

Line

1-based source line number.

public required int Line { get; init; }

Property Value

int

Message

Human-readable description.

public required string Message { get; init; }

Property Value

string

Severity

Severity (Info / Warning / Error).

public required LrcDiagnosticSeverity Severity { get; init; }

Property Value

LrcDiagnosticSeverity