src/remove/relock.bend checks
raw source on the hub · import ezx@1.18.0.0/src/remove/relock.bend as Relock
remove/relock: ez remove as it runs, the remove and the lock in one plan
(laws/AddRemoveRelock.bend). The remove is planned as before (RP.plan,
remove/plan.bend); once it is known to succeed, the plain ez lock
planner is run over the World it leaves (R.world, relock/relock.bend):
the ledger the remove writes, the .bend files git lists, and the lock's
answers, which the lock's interpreter gives as ez lock gives them.
The plan, when both succeed: the remove's effects, then the lock's, the
lock last. When either refuses, a refusal with no effect at all. A .bend
file git lists that still imports the dependency removed makes the lock
refuse, since ez.toml no longer names it, and so the remove.
5 imports
import Base import ./plan.bend as RP import ../lock/plan.bend as P import ../lock/world.bend as W import ../relock/relock.bend as R
Types
type World source · line 20 · raw
Data
what ez remove reads: the remove's World, the directory it runs in, the
.bend files git lists, and the answers to the lock's questions
World@remove:0x2414c9622cab2353684d02a392804eb1/src/remove/plan.World -> @here:String -> @listing:0x2414c9622cab2353684d02a392804eb1/src/lock/world.Listing -> @locks:List<&2, 0x2414c9622cab2353684d02a392804eb1/src/lock/world.Reply> -> World
type Next source · line 57 · raw
Data
what the interpreter does next: answer the lock's questions, or run the plan
AskLock@asks:List<&2, 0x2414c9622cab2353684d02a392804eb1/src/lock/world.Ask> -> Next
Planned@plan:0x2414c9622cab2353684d02a392804eb1/src/lock/plan.Plan -> Next
Definitions
def remove source · line 24 · raw
@world:World -> 0x2414c9622cab2353684d02a392804eb1/src/remove/plan.World
the remove's World
def ledger.was source · line 29 · raw
@rw:0x2414c9622cab2353684d02a392804eb1/src/remove/plan.World -> Maybe<&2, String>
the ledger's text the remove read
def lock.world source · line 34 · raw
@world:World -> 0x2414c9622cab2353684d02a392804eb1/src/lock/world.World
the World a plain ez lock reads once the remove has run
def lock source · line 39 · raw
@world:World -> 0x2414c9622cab2353684d02a392804eb1/src/lock/plan.Plan
the plan of that lock
def tail source · line 43 · raw
String
what is added after the lock's reason when the lock refuses
def plan source · line 48 · raw
@world:World -> 0x2414c9622cab2353684d02a392804eb1/src/lock/plan.Plan
ez remove over a World: the remove, then the lock over what it leaves
def refuses source · line 53 · raw
@world:World -> Bool
whether ez remove refuses on a World
def next.lock source · line 62 · raw
@st:0x2414c9622cab2353684d02a392804eb1/src/lock/plan.Step -> @+world:World -> Next
the lock's step, once the remove succeeds
def next.made source · line 70 · raw
@refused:Bool -> @+world:World -> Next
the remove refused is the plan; otherwise the lock is next
def next source · line 78 · raw
@+world:World -> Next
what the interpreter does next on a World
def more source · line 82 · raw
@world:World -> @rs:List<&2, 0x2414c9622cab2353684d02a392804eb1/src/lock/world.Reply> -> World
the World with more of the lock's answers in it