AiDiagnostic

References
public sealed class AiDiagnostic
A single diagnostic produced while compiling LLM-generated source.

Constructors

AiDiagnostic

#
public AiDiagnostic(AiDiagnosticSeverity severity, string id, string message, int line, int column)
severity (AiDiagnosticSeverity)
id (string)
message (string)
line (int)
column (int)

Properties

Column

#
public int Column { get; }
1-based column number, or 0 if not applicable.

Id

#
public string Id { get; }
Roslyn diagnostic id, e.g. "CS0103".

Line

#
public int Line { get; }
1-based line number in the LLM source, or 0 if not applicable.

Message

#
public string Message { get; }

Severity

#
public AiDiagnosticSeverity Severity { get; }