def roots

ezx@1.11.0.0 · src/lock/plan.bend:204

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

204# every hub package the committed sources import. Every committed `.bend`
205# file is a root, so no local import has to be followed, and a file that is
206# not committed is never read.
207def roots(fs: List<&2, W.Source>) -> List<&2, String>:
208  match fs:
209    case []:
210      []
211    case +h <> t:
212      List.append(&2, String, roots.one(h), roots(t))

Uses (5)

Used by (2)