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

Function visitDefinition

scripts/codegen/utils.ts:1291–1300  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

1289 const visiting = new Set<string>();
1290
1291 const visitDefinition = (name: string): void => {
1292 if (reachable.has(name) || visiting.has(name)) return;
1293 const definition = definitions[name];
1294 if (definition === undefined) return;
1295
1296 visiting.add(name);
1297 reachable.add(name);
1298 visitSchema(definition);
1299 visiting.delete(name);
1300 };
1301
1302 const visitSchema = (value: unknown): void => {
1303 if (!value || typeof value !== "object") return;

Callers 2

visitSchemaFunction · 0.85

Calls 4

visitSchemaFunction · 0.85
resolveRefFunction · 0.70
addMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…