def remove.next
import ezx@1.11.0.0/src/ws/relock.bend as Relockimport Base
import ezx@1.11.0.0/src/relock/relock.bend as R
import ezx@1.11.0.0/src/remove/plan.bend as RP
import ezx@1.11.0.0/src/remove/relock.bend as RR
412# what the interpreter does next for `ez remove`: in a project of its own,
413# what remove/relock.bend says; in a workspace, the remove, then the root's
414# lock
415def remove.next(ws: Ws, +world: RR.World) -> RR.Next:
416 match ws:
417 case Own{}:
418 RR.next(world)
419 case Inside{+root}:
420 remove.next.made(R.refuses(RP.plan(RR.remove(world))), root, world)