ArgumentPreprocessingResult
An explicit adapter decision: continue, replace arguments, or handle the invocation.
- Kind:
Class - Namespace: Repl
- Assembly:
Repl.Core - Source: src/Repl.Core/Input/ArgumentPreprocessingResult.cs
Signature
Section titled “Signature”public sealed class ArgumentPreprocessingResultInheritance
Section titled “Inheritance”Methods
Section titled “Methods”Continue(InputValidationResult?)
Section titled “Continue(InputValidationResult?)”Passes the effective arguments to the next adapter.
public static ArgumentPreprocessingResult Continue(InputValidationResult? validation = null)Parameters
Section titled “Parameters”validation(InputValidationResult): Optional diagnostics from this adapter.
Returns
Section titled “Returns”Handled(object?, InputValidationResult?)
Section titled “Handled(object?, InputValidationResult?)”Stops adapters and normal dispatch. Preview modes never render or exit on this result.
public static ArgumentPreprocessingResult Handled(object? result = null, InputValidationResult? validation = null)Parameters
Section titled “Parameters”result(object): A normal Repl result; use Results.Exit for an explicit exit.validation(InputValidationResult): Optional diagnostics from this adapter.
Returns
Section titled “Returns”Replace(IReadOnlyList<string>, IReadOnlyList<InputSourceRange?>?, InputValidationResult?)
Section titled “Replace(IReadOnlyList<string>, IReadOnlyList<InputSourceRange?>?, InputValidationResult?)”Replaces arguments without restarting the adapter chain.
public static ArgumentPreprocessingResult Replace(IReadOnlyList<string> arguments, IReadOnlyList<InputSourceRange?>? origins = null, InputValidationResult? validation = null)Parameters
Section titled “Parameters”arguments(IReadOnlyList<string>): Arguments to pass to the next stage.origins(IReadOnlyList<InputSourceRange>): Optional original-text range for each replacement argument.validation(InputValidationResult): Optional diagnostics from this adapter.