CommandDiagnostic(CommandDiagnosticSource, String?, CommandNode?, IReadOnlyList?, Nullable) Constructor

Definition

Assembly XenoAtom.CommandLine.dll

Provides optional structured diagnostic context for rich error rendering.

public CommandDiagnostic(CommandDiagnosticSource Source, string? SourceName, CommandNode? Node, IReadOnlyList<string>? Tokens, CommandTokenSpan? TokenSpan)

Parameters

Source
CommandDiagnosticSource

The origin of the diagnostic value.

SourceName
String

An optional source name (for example environment variable name or response-file name).

Node
CommandNode

The associated command node, when available.

Tokens
IReadOnlyList<String>

The original invocation tokens, when available.

TokenSpan
Nullable<CommandTokenSpan>

The location of the relevant token span, when available.

Remarks

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