MCPcopy Create free account
hub / github.com/github/copilot-sdk / goNullableResultTypeName

Function goNullableResultTypeName

scripts/codegen/go.ts:470–476  ·  view source on GitHub ↗
(method: RpcMethod, innerSchema: JSONSchema7)

Source from the content-addressed store, hash-verified

468}
469
470function goNullableResultTypeName(method: RpcMethod, innerSchema: JSONSchema7): string {
471 if (innerSchema.$ref) {
472 const refName = innerSchema.$ref.split("/").pop();
473 if (refName) return toPascalCase(refName);
474 }
475 return getRpcSchemaTypeName(innerSchema, toPascalCase(method.rpcMethod) + "Result");
476}
477
478function goParamsTypeName(method: RpcMethod): string {
479 const fallback = goRequestFallbackName(method);

Callers 3

emitMethodFunction · 0.85

Calls 3

getRpcSchemaTypeNameFunction · 0.85
popMethod · 0.80
toPascalCaseFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…