(
lines: string[],
method: RpcMethod,
indent: string,
parameterDescriptions: Array<{ name: string; description?: string; escapeDescription?: boolean }>,
resultSchema: JSONSchema7 | undefined,
summaryFallback?: string
)
| 156 | } |
| 157 | |
| 158 | function 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 | |
| 181 | const CANCELLATION_TOKEN_DESCRIPTION = |
| 182 | 'The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.'; |
no test coverage detected
searching dependent graphs…