MCPcopy
hub / github.com/witheve/Eve / _link

Method _link

src/runtime/analyzer.ts:278–286  ·  view source on GitHub ↗
(context, aId, bId)

Source from the content-addressed store, hash-verified

276 //---------------------------------------------------------------------
277
278 _link(context, aId, bId) {
279 let changes = context.changes;
280 if(!aId || !bId) throw new Error("WAT");
281 let linkId = `${context.block.id}|link|${context.ScanId++}`;
282 changes.store("session", linkId, "tag", "link");
283 changes.store("session", linkId, "block", context.block.id);
284 changes.store("session", linkId, "a", aId);
285 changes.store("session", linkId, "b", bId);
286 }
287
288 _links(context: AnalysisContext, links) {
289 for(let ix = 0, len = links.length; ix < len; ix += 2) {

Callers 1

_linksMethod · 0.95

Calls 1

storeMethod · 0.45

Tested by

no test coverage detected