def visit.found

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

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

919# a file that is in the tree, scanned, with the LICENSE beside it, its named
920# imports and its foreign bodies checked first
921def visit.found(
922  +tree: Tree,
923  +text: String,
924  +file: String,
925  +ns: String,
926  eb: String,
927  seen: List<&2, String>,
928  out: List<&2, Hit>,
929  rest: List<&2, Task>
930) -> State:
931  +sc = scan(text)
932  visit.put(asked(find(tree, beside(file)), beside(file),
933      _u => named.check(unnamed(scan.mods(sc)),
934        _v => foreign.check(tree, P.dir(file), nsdir(ns), scan.foreign(sc)))),
935    tree, sc, text, file, ns, eb, seen, out, rest)

Uses (18)

Used by (1)