(
lines: string[],
methodName: string,
method: RpcMethod,
resultSchema: JSONSchema7 | undefined,
paramsDescription?: string,
indent = "",
fallbackVerb = "calls"
)
| 281 | } |
| 282 | |
| 283 | function pushGoRpcMethodComment( |
| 284 | lines: string[], |
| 285 | methodName: string, |
| 286 | method: RpcMethod, |
| 287 | resultSchema: JSONSchema7 | undefined, |
| 288 | paramsDescription?: string, |
| 289 | indent = "", |
| 290 | fallbackVerb = "calls" |
| 291 | ): void { |
| 292 | const paragraphs = [goMethodDocSummary(methodName, method, fallbackVerb), `RPC method: ${method.rpcMethod}.`]; |
| 293 | if (paramsDescription) { |
| 294 | paragraphs.push(`Parameters: ${paramsDescription}`); |
| 295 | } |
| 296 | const resultDescription = goRpcResultDescription(method, resultSchema); |
| 297 | if (resultDescription) { |
| 298 | paragraphs.push(`Returns: ${resultDescription}`); |
| 299 | } |
| 300 | pushGoComment(lines, paragraphs.join("\n\n"), indent); |
| 301 | } |
| 302 | |
| 303 | function goCommentLines(text: string, indent = "", wrap = true): string[] { |
| 304 | const prefix = `${indent}//`; |
no test coverage detected
searching dependent graphs…