Skip to content

ArgumentPreprocessingResult

An explicit adapter decision: continue, replace arguments, or handle the invocation.

public sealed class ArgumentPreprocessingResult

Passes the effective arguments to the next adapter.

public static ArgumentPreprocessingResult Continue(InputValidationResult? validation = null)

ArgumentPreprocessingResult

Stops adapters and normal dispatch. Preview modes never render or exit on this result.

public static ArgumentPreprocessingResult Handled(object? result = null, InputValidationResult? validation = null)
  • result (object): A normal Repl result; use Results.Exit for an explicit exit.
  • validation (InputValidationResult): Optional diagnostics from this adapter.

ArgumentPreprocessingResult

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)
  • 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.

ArgumentPreprocessingResult