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

Function pushRpcMethodXmlDocs

scripts/codegen/csharp.ts:158–179  ·  view source on GitHub ↗
(
    lines: string[],
    method: RpcMethod,
    indent: string,
    parameterDescriptions: Array<{ name: string; description?: string; escapeDescription?: boolean }>,
    resultSchema: JSONSchema7 | undefined,
    summaryFallback?: string
)

Source from the content-addressed store, hash-verified

156}
157
158function pushRpcMethodXmlDocs(
159 lines: string[],
160 method: RpcMethod,
161 indent: string,
162 parameterDescriptions: Array<{ name: string; description?: string; escapeDescription?: boolean }>,
163 resultSchema: JSONSchema7 | undefined,
164 summaryFallback?: string
165): void {
166 lines.push(...xmlDocComment(method.description ?? summaryFallback ?? `Calls "${method.rpcMethod}".`, indent));
167 for (const parameter of parameterDescriptions) {
168 lines.push(
169 ...xmlDocNamedElement(
170 "param",
171 parameter.name,
172 parameter.description ?? fallbackParameterDescription(parameter.name),
173 indent,
174 parameter.escapeDescription
175 )
176 );
177 }
178 lines.push(...xmlDocElement("returns", rpcResultDescription(method, resultSchema), indent));
179}
180
181const CANCELLATION_TOKEN_DESCRIPTION =
182 'The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.';

Callers 4

emitServerInstanceMethodFunction · 0.85
emitSessionMethodFunction · 0.85

Calls 6

xmlDocCommentFunction · 0.85
xmlDocNamedElementFunction · 0.85
xmlDocElementFunction · 0.85
rpcResultDescriptionFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…