Table of Contents

Struct ParserRawNamedArgumentParameterMapping

Namespace
Utils.Parser.Runtime
Assembly
Utils.Parser.dll

Describes a single named mapping from a raw call-site argument entry to a child-rule parameter seed. Used with generated SetNextRuleParametersFromNamedRawArguments helpers.

public readonly record struct ParserRawNamedArgumentParameterMapping : IEquatable<ParserRawNamedArgumentParameterMapping>
Implements
Inherited Members
Extension Methods

Remarks

Mapping is explicit and requires a caller-supplied delegate. No argument is evaluated automatically. No parameter is bound without an explicit call to the generated helper.

Properties

ArgumentName

Gets the name of the raw argument entry to look up in the named argument dictionary. Must not be null. When absent from the dictionary, no seed is set and the helper returns false.

public required string ArgumentName { get; init; }

Property Value

string

Map

Gets the caller-supplied delegate that converts the raw argument text to an untyped seed value. Must not be null. Exceptions from the delegate propagate to the caller.

public required Func<string, object?> Map { get; init; }

Property Value

Func<string, object>

ParameterName

Gets the child-rule parameter metadata name that will receive the seeded value. Must not be null.

public required string ParameterName { get; init; }

Property Value

string