def visit.go

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

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

981# a file already visited keeps the name it was first reached through, the way
982# bend's own walk does
983def visit.go(
984  hit: Bool,
985  +tree: Tree,
986  +file: String,
987  ns: String,
988  eb: String,
989  seen: List<&2, String>,
990  out: List<&2, Hit>,
991  rest: List<&2, Task>
992) -> State:
993  match hit:
994    case True{}:
995      State{seen, out, Going{}, rest}
996    case False{}:
997      visit.in(outside(file), tree, file, ns, eb, seen, out, rest)

Uses (10)

Used by (1)