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

Function xmlDocCommentWithFallback

scripts/codegen/csharp.ts:191–199  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

189
190/** Emits a summary (from description or fallback) and, when a real description exists, a remarks line with the fallback. */
191function 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. */
202function xmlDocPropertyComment(description: string | undefined, jsonPropName: string, indent: string): string[] {

Callers 5

generateDerivedClassFunction · 0.85
generateJsonUnionClassFunction · 0.85
generateNestedClassFunction · 0.85

Calls 3

xmlDocCommentFunction · 0.85
rawXmlDocSummaryFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…