StatifierBlocks.ViewModel.Slot (StatifierBlocks v0.2.0)

Copy Markdown View Source

One named slot: declared or raw, with its children and its own findings.

outcome_key is the container's slot_outcome_key declaration for this slot, normalized (ADR-0005 decision 10, proposed 10f) - the config key each child in this slot carries its outcome under, or nil when the type declared none. It is here as well as on the children so that a consumer can ask the question of the slot without walking into it.

Summary

Types

t()

@type t() :: %StatifierBlocks.ViewModel.Slot{
  arity: StatifierBlocks.BlockType.slot_arity() | nil,
  children: [StatifierBlocks.ViewModel.Node.t()],
  declared?: boolean(),
  findings: [StatifierBlocks.Finding.t()],
  label: String.t(),
  name: StatifierBlocks.Block.slot_name(),
  outcome_key: String.t() | nil,
  style: :primary | :secondary | :failure
}