Lemma.PathSegment (lemma_engine v0.11.2)

Copy Markdown View Source

One hop on a Show data or rule path: a uses alias, or (with row) a row written in the data list named uses.

uses is the import alias, or the data list name when row is set. row is the 1-based position of the row written in that list; nil for a uses hop. repository is nil for the unnamed workspace; otherwise the interned repository name of the target.

Summary

Functions

Builds a Lemma.PathSegment from one element of a Show path array.

Types

t()

@type t() :: %Lemma.PathSegment{
  repository: String.t() | nil,
  row: pos_integer() | nil,
  spec: String.t(),
  uses: String.t()
}

Functions

from_map(map)

@spec from_map(map()) :: t()

Builds a Lemma.PathSegment from one element of a Show path array.