Skip to main content

Module named_flags

Module named_flags 

Source
Expand description

Helpers for signature-aware named flag handling (null omit/pass-through and long-key record flag spreads).

Used by IR evaluation before dispatch and by const evaluation when building IR-shaped calls.

Functions§

can_rest_spread
Whether this signature can accept a list rest spread.
data_from_name_and_short
expand_flag_record
Expand a record into named/flag arguments for a call.
find_signature_flag
flag_type_accepts_nothing
Whether a named flag’s value type accepts nothing/null.
list_spread_before_required_error
Error when a list (or null rest-mode) is spread while required positionals remain unbound.
normalize_engine_arguments
Apply signature-aware null handling and expand record spreads for engine Arguments.