(description: string | undefined, indent: string)
| 94 | } |
| 95 | |
| 96 | function xmlDocComment(description: string | undefined, indent: string): string[] { |
| 97 | if (!description) return []; |
| 98 | const escaped = ensureTrailingPunctuation(escapeXml(description.trim())); |
| 99 | const lines = escaped.split(/\r?\n/); |
| 100 | if (lines.length === 1) { |
| 101 | return [`${indent}/// <summary>${lines[0]}</summary>`]; |
| 102 | } |
| 103 | return [ |
| 104 | `${indent}/// <summary>`, |
| 105 | ...lines.map((l) => `${indent}/// ${l}`), |
| 106 | `${indent}/// </summary>`, |
| 107 | ]; |
| 108 | } |
| 109 | |
| 110 | function xmlDocElement(tagName: string, description: string | undefined, indent: string): string[] { |
| 111 | if (!description) return []; |
no test coverage detected
searching dependent graphs…