(relation: WireRelation)
| 76 | |
| 77 | /** The distinct edge words for a relation, in first-seen order, blanks dropped. */ |
| 78 | export function relationWords(relation: WireRelation): string[] { |
| 79 | const words: string[] = []; |
| 80 | for (const edge of relation.edges) { |
| 81 | const word = edgeWord(edge); |
| 82 | if (word && !words.includes(word)) words.push(word); |
| 83 | } |
| 84 | return words; |
| 85 | } |
| 86 | |
| 87 | /** The distinct branch conditions across a relation's edges, at most three. */ |
| 88 | export function relationWhens(relation: WireRelation): string[] { |
no test coverage detected