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

Function emitRpcResultType

scripts/codegen/csharp.ts:1699–1707  ·  view source on GitHub ↗
(typeName: string, schema: JSONSchema7, visibility: "public" | "internal", classes: string[])

Source from the content-addressed store, hash-verified

1697}
1698
1699function emitRpcResultType(typeName: string, schema: JSONSchema7, visibility: "public" | "internal", classes: string[]): string {
1700 if (isObjectSchema(schema)) {
1701 const resultClass = emitRpcClass(typeName, schema, visibility, classes);
1702 if (resultClass) classes.push(resultClass);
1703 return typeName;
1704 }
1705
1706 return resolveRpcType(schema, true, typeName, "", classes);
1707}
1708
1709/**
1710 * Emit ServerRpc as an instance class (like SessionRpc but without sessionId).

Callers 4

emitServerInstanceMethodFunction · 0.85
emitSessionMethodFunction · 0.85

Calls 4

isObjectSchemaFunction · 0.85
emitRpcClassFunction · 0.85
resolveRpcTypeFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…