(line: string)
| 286 | const itemMap = new Map<string, ItemDatum>(); |
| 287 | |
| 288 | const parseLine = (line: string) => { |
| 289 | if (!RELATION_TOKEN.test(line)) return; |
| 290 | const parsed = parseRelationLine(line); |
| 291 | parsed.nodes.forEach((nodeItem) => { |
| 292 | ensureItemLabel(itemMap, items, nodeItem.id, nodeItem.label); |
| 293 | }); |
| 294 | relations.push(...parsed.relations); |
| 295 | }; |
| 296 | |
| 297 | if (node.kind === 'array') { |
| 298 | node.items.forEach((item, index) => { |
no test coverage detected