def made.go

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

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

1239# the walk's end judged: a walk that is over is the package, one that asks is
1240# a question, and every other stop is a refusal naming what stopped it
1241def made.go(stop: Stop, +entry: String, +out: List<&2, Hit>) -> Walked:
1242  match stop:
1243    case Going{}:
1244      made.climb(climb(out), P.dir(entry), out)
1245    case Missing{at}:
1246      Refused{"ez: " ++ at ++ " is imported but not there"}
1247    case Climbs{at}:
1248      Refused{"ez: the import " ++ at ++ " climbs out of the checkout"}
1249    case Asking{at}:
1250      Asks{at}
1251    case Spent{}:
1252      Refused{"ez: the walk from " ++ entry ++ " ran out of fuel"}
1253    case Unnamed{nv}:
1254      Refused{unnamed.why(nv)}

Uses (10)

Used by (1)