MCPcopy Index your code
hub / github.com/github/copilot-sdk / goJSONMatchTermKey

Function goJSONMatchTermKey

scripts/codegen/go.ts:1366–1372  ·  view source on GitHub ↗
(term: GoJSONMatchTerm)

Source from the content-addressed store, hash-verified

1364}
1365
1366function 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
1374function dedupeGoJSONMatchTerms(terms: GoJSONMatchTerm[]): GoJSONMatchTerm[] {
1375 const seen = new Set<string>();

Callers 2

dedupeGoJSONMatchTermsFunction · 0.85

Calls 2

goJSONMatchPathKeyFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…