Emits a summary (from description or fallback) and, when a real description exists, a remarks line with the fallback.
(description: string | undefined, fallback: string, indent: string)
| 189 | |
| 190 | /** Emits a summary (from description or fallback) and, when a real description exists, a remarks line with the fallback. */ |
| 191 | function xmlDocCommentWithFallback(description: string | undefined, fallback: string, indent: string): string[] { |
| 192 | if (description) { |
| 193 | return [ |
| 194 | ...xmlDocComment(description, indent), |
| 195 | `${indent}/// <remarks>${ensureTrailingPunctuation(fallback)}</remarks>`, |
| 196 | ]; |
| 197 | } |
| 198 | return rawXmlDocSummary(fallback, indent); |
| 199 | } |
| 200 | |
| 201 | /** Emits a summary from the schema description, or a fallback naming the property by its JSON key. */ |
| 202 | function xmlDocPropertyComment(description: string | undefined, jsonPropName: string, indent: string): string[] { |
no test coverage detected
searching dependent graphs…