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

Function collectRpcMethodReferencedDefinitionNames

scripts/codegen/utils.ts:1368–1378  ·  view source on GitHub ↗
(
    methods: Iterable<RpcMethod>,
    definitionCollections: DefinitionCollections
)

Source from the content-addressed store, hash-verified

1366}
1367
1368export function collectRpcMethodReferencedDefinitionNames(
1369 methods: Iterable<RpcMethod>,
1370 definitionCollections: DefinitionCollections
1371): Set<string> {
1372 const schemas: Array<JSONSchema7 | null | undefined> = [];
1373 for (const method of methods) {
1374 schemas.push(method.params, method.result);
1375 }
1376
1377 return collectSchemaReferencedDefinitionNames(schemas, definitionCollections);
1378}
1379
1380export function collectExperimentalOnlyRpcReferencedDefinitionNames(
1381 methods: Iterable<RpcMethod>,

Callers 6

generateApiTypesCodeFunction · 0.85
generateRpcFunction · 0.85
generateRpcCodeFunction · 0.85
generateRpcFunction · 0.85
generateRpcFunction · 0.85

Calls 2

pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…