(parentPath: string[])
| 1491 | function groupGoJSONMatchTerms(spec: GoVariantMatchSpec): GoJSONMatchTermGroup[] { |
| 1492 | const groups = new Map<string, GoJSONMatchTermGroup>(); |
| 1493 | const getGroup = (parentPath: string[]): GoJSONMatchTermGroup => { |
| 1494 | const key = goJSONMatchPathKey(parentPath); |
| 1495 | const existing = groups.get(key); |
| 1496 | if (existing) return existing; |
| 1497 | const group = { parentPath, positiveTerms: [], negativeProperties: [] }; |
| 1498 | groups.set(key, group); |
| 1499 | return group; |
| 1500 | }; |
| 1501 | |
| 1502 | for (const term of spec.positiveTerms) { |
| 1503 | getGroup(goJSONMatchTermParentPath(term)).positiveTerms.push(term); |
no test coverage detected
searching dependent graphs…