commands/set#
Type Aliases#
Setter#
Setter<
T> = (view,target,value,path,changes) =>View|CommandError
Defined in: commands/set.ts:122
Set one property of target to value: the new view, or the refusal at
path ([address, property]). A setter that changes something records
path in changes.
Type Parameters#
T#
T extends Target
Parameters#
view#
target#
T
value#
unknown
path#
readonly PathSegment[]
changes#
Returns#
Variables#
BLOCK_PROPERTIES#
constBLOCK_PROPERTIES: readonlystring[]
Defined in: commands/set.ts:441
The names of a block’s own members a set may give, in the order a new
block’s are applied; name, statements and provenance are its
manifest’s.
SETTABLE#
constSETTABLE:{ readonly [kind in TargetKind]: Setters<TargetOfKind[kind]> }
Defined in: commands/set.ts:1271
What a set may give each kind of target, by property.
Functions#
changeProblem()#
changeProblem(
view,change):Problem|undefined
Defined in: commands/set.ts:1155
Why one change of a set, its values all set, leaves its target refused,
if it does: an elision whose end does not lie after its start
(stretchProblem), at the change’s end where it gives one, else at its
start. Checked once per change, so that one change may move both ends
of an elision past the other’s old value.
Parameters#
view#
change#
Returns#
Problem | undefined
readBlockManifest()#
Defined in: commands/set.ts:224
A whole manifest for block id, its segment lines covered
(withSegmentLinesCovered, each new segment’s ID given by mint) and the tree of every line covered given the
locks its places decide (withPlaceLocks), as set is_segment_line
gives them; its problems located below [id, "manifest"].
Parameters#
value#
unknown
id#
string
mint#
Returns#
setProperty()#
Defined in: commands/set.ts:1338
Set property of the target at address to value, recording the change in changes.
Parameters#
view#
address#
property#
string
value#
unknown