InputDiagnostic
A validation message associated with the original input when its range is known.
- Kind:
Class - Namespace: Repl
- Assembly:
Repl.Core - Source: src/Repl.Core/Input/InputDiagnostic.cs
Signature
Section titled “Signature”public sealed record InputDiagnostic : IEquatable<InputDiagnostic>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”IEquatable<InputDiagnostic>
Constructors
Section titled “Constructors”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)Parameters
Section titled “Parameters”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.
Properties
Section titled “Properties”Message
Section titled “Message”Message suitable for a live hint or an execution diagnostic.
public string Message { get; init; }Returns
Section titled “Returns”Optional range in the original text; null denotes the whole invocation.
public InputSourceRange? Range { get; init; }Returns
Section titled “Returns”Validation state reported by this diagnostic.
public InputValidationState State { get; init; }