def visit.have

ezx@1.11.0.0 · src/pkg/pkg.bend:937

import ezx@1.11.0.0/src/pkg/pkg.bend as Pkg
import Base

937# a module that is imported and not there stops the walk, since a package
938# missing a file is not the package bend would publish. One the walk was not
939# given stops it too, as a question, with the module still queued.
940def visit.have(
941  got: Look,
942  +tree: Tree,
943  +file: String,
944  +ns: String,
945  eb: String,
946  seen: List<&2, String>,
947  out: List<&2, Hit>,
948  rest: List<&2, Task>
949) -> State:
950  match got:
951    case Absent{}:
952      State{seen, out, Missing{file}, rest}
953    case Unasked{}:
954      State{seen, out, Asking{file}, Task{file, ns} <> rest}
955    case Here{text}:
956      visit.found(tree, text, file, ns, eb, seen, out, rest)

Uses (9)

Used by (1)