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

Function getGroup

scripts/codegen/go.ts:1493–1500  ·  view source on GitHub ↗
(parentPath: string[])

Source from the content-addressed store, hash-verified

1491function 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);

Callers 1

groupGoJSONMatchTermsFunction · 0.85

Calls 3

goJSONMatchPathKeyFunction · 0.85
getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…