Skip to content

InputDiagnostic

A validation message associated with the original input when its range is known.

public sealed record InputDiagnostic : IEquatable<InputDiagnostic>
  • IEquatable<InputDiagnostic>

InputDiagnostic(InputValidationState, string, InputSourceRange?)

Section titled “InputDiagnostic(InputValidationState, string, InputSourceRange?)”

A validation message associated with the original input when its range is known.

public InputDiagnostic(InputValidationState State, string Message, InputSourceRange? Range = null)
  • State (InputValidationState): Validation state reported by this diagnostic.
  • Message (string): Message suitable for a live hint or an execution diagnostic.
  • Range (InputSourceRange): Optional range in the original text; null denotes the whole invocation.

Message suitable for a live hint or an execution diagnostic.

public string Message { get; init; }

string

Optional range in the original text; null denotes the whole invocation.

public InputSourceRange? Range { get; init; }

InputSourceRange

Validation state reported by this diagnostic.

public InputValidationState State { get; init; }

InputValidationState