(term: GoJSONMatchTerm)
| 1364 | } |
| 1365 | |
| 1366 | function goJSONMatchTermKey(term: GoJSONMatchTerm): string { |
| 1367 | const base = `${term.kind}:${goJSONMatchPathKey(term.path)}`; |
| 1368 | if (term.kind === "stringValue") { |
| 1369 | return `${base}:${[...new Set(term.values)].sort().join("\0")}`; |
| 1370 | } |
| 1371 | return base; |
| 1372 | } |
| 1373 | |
| 1374 | function dedupeGoJSONMatchTerms(terms: GoJSONMatchTerm[]): GoJSONMatchTerm[] { |
| 1375 | const seen = new Set<string>(); |
no test coverage detected
searching dependent graphs…