csharp
public static class DiagnosticFormatterRenders a Diagnostic for a human: the Roslyn-style path(line,col): severity ID: message header, and under it the source line with the span underlined. Shader.rvn(6,16): error RVN2003: The name 'nrmalize' could not be found 6 | return nrmalize(v) | ^^^^^^^^
No guide page documents this yet — the page shows what the code says about itself.
Methods (2)
public static string Format(Diagnostic diagnostic, DiagnosticFormatterOptions? options = null)Renders one diagnostic, with the source line and caret when the location is backed by text.
public static string Format(IEnumerable<Diagnostic> diagnostics, DiagnosticFormatterOptions? options = null)Formats a run of diagnostics, one blank line between them.
Used by (2)
- CompileDriverVixen.Raven.Cli
- DiagnosticFormatterTestsVixen.Raven.Tests