ArgumentPreprocessingContext
Read-only input for an argument adapter. Callbacks must filter external actions by mode.
- Kind:
Class - Namespace: Repl
- Assembly:
Repl.Core - Source: src/Repl.Core/Input/ArgumentPreprocessingContext.cs
Signature
Section titled “Signature”public sealed class ArgumentPreprocessingContextInheritance
Section titled “Inheritance”Properties
Section titled “Properties”ArgumentOrigins
Section titled “ArgumentOrigins”Gets each effective argument’s range in the original text, or null for an unmapped argument.
public IReadOnlyList<InputSourceRange?> ArgumentOrigins { get; }Returns
Section titled “Returns”IReadOnlyList<InputSourceRange>
Arguments
Section titled “Arguments”Gets arguments produced by the preceding adapter.
public IReadOnlyList<string> Arguments { get; }Returns
Section titled “Returns”IReadOnlyList<string>
Cursor
Section titled “Cursor”Gets the cursor position in the original text when available.
public int? Cursor { get; }Returns
Section titled “Returns”int?
Gets the processing mode; only Execution denotes submission.
public InputProcessingMode Mode { get; }Returns
Section titled “Returns”OriginalArguments
Section titled “OriginalArguments”Gets arguments before any adapter ran.
public IReadOnlyList<string> OriginalArguments { get; }Returns
Section titled “Returns”IReadOnlyList<string>
Purpose
Section titled “Purpose”Gets the intent recognizable from the current arguments.
public InputPurpose Purpose { get; }Returns
Section titled “Returns”ScopeTokens
Section titled “ScopeTokens”Gets the interactive scope, which is separate from the editable arguments.
public IReadOnlyList<string> ScopeTokens { get; }Returns
Section titled “Returns”IReadOnlyList<string>
Gets original editor text when available.
public string? Text { get; }