CommandDiagnostic Struct

Definition

Provides optional structured diagnostic context for rich error rendering.

public readonly record struct CommandDiagnostic(CommandDiagnosticSource Source, string? SourceName, CommandNode? Node, IReadOnlyList<string>? Tokens, CommandTokenSpan? TokenSpan) : IEquatable<CommandDiagnostic>

Remarks

This data is intended for presentation only (for example re-printing the invocation and underlining a token). It must not include secret values.

Tip: use kind:method, kind:property, kind:ctor. Press Esc to clear.

Constructors (1)

Properties (5)