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
Column
1-based column number.
public required int Column { get; init; }
Property Value
Length
Length of the offending span, in chars.
public required int Length { get; init; }
Property Value
Line
1-based source line number.
public required int Line { get; init; }
Property Value
Message
Human-readable description.
public required string Message { get; init; }
Property Value
Severity
Severity (Info / Warning / Error).
public required LrcDiagnosticSeverity Severity { get; init; }