| 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) { |