def names.why
ezx@1.11.0.0 · src/lock/plan.bend:571
import ezx@1.11.0.0/src/lock/plan.bend as Plan
import Base
import ezx@1.11.0.0/src/lock/world.bend as W
import ezx@1.11.0.0/src/lock/lock.bend as L
import ezx@1.11.0.0/src/pkg/pkg.bend as K
571
572
573
574
575def names.why(
576 +lns: List<&2, L.Name>,
577 +ns: List<&2, L.Name>,
578 +js: List<&2, W.Judged>,
579 +roots: List<&2, String>,
580 +need: List<&2, String>
581) -> String:
582 +bad = names.ruled(need)
583 why.then(why.missing(bad, _u => K.unnamed.why(bad)), _v =>
584 why.then(why.missing(names.missing(lns, roots), _w =>
585 names.unledgered.why(names.missing(lns, roots))), _x =>
586 why.missing(names.missing(ns, need), _y =>
587 names.open.why(look(js, names.missing(ns, need)), names.missing(ns, need)))))