collectDurableTokens
collectDurableTokens(
value):Set<string>
Collect the bare canonical durable ids referenced anywhere in value —
bare, @vN|@HEAD|@ALL-pinned, and wh:-prefixed spellings alike, deduped
by identity (pins select versions; they don’t change identity, and labels
always carry the current name).
Skip rule (structural metadata only): the durableId entry of a
metadata envelope is an id-typed field whose label already rides the
item’s own top-level wref — looking it up would add one self-lookup per
list item. The check is path-aware (metadata → durableId) and
fenced to structural positions: a metadata.durableId pair anywhere
under a data key is arbitrary user body content and is decorated —
structural envelopes never live inside data, thing bodies always do.
The skip exists for economy only, so when in doubt the walk decorates:
over-skipping hides a user reference, under-skipping merely enlarges one
batched lookup.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”Set<string>