def loc.of

ezx@1.11.0.0 · src/tool/plan.bend:194

import ezx@1.11.0.0/src/tool/plan.bend as Plan
import Base
import ezx@1.11.0.0/src/tool/world.bend as TW

194# what git said of a path, looked up
195def loc.of(got: TW.Heard, ask: TW.Ask) -> Loc:
196  match got:
197    case TW.Open{}:
198      LocWait{ask}
199    case TW.Heard{answer}:
200      match answer:
201        case TW.Located{abs, top, head, ok, status}:
202          Loc{abs, top, head, ok, status}
203        case TW.Miss{why}:
204          LocNo{why}
205        case _:
206          LocNo{"ez: a path was not answered with what git says of it"}

Uses (4)

Used by (1)