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

Function xmlDocPropertyComment

scripts/codegen/csharp.ts:202–205  ·  view source on GitHub ↗

Emits a summary from the schema description, or a fallback naming the property by its JSON key.

(description: string | undefined, jsonPropName: string, indent: string)

Source from the content-addressed store, hash-verified

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[] {
203 if (description) return xmlDocComment(description, indent);
204 return rawXmlDocSummary(`Gets or sets the <c>${escapeXml(jsonPropName)}</c> value.`, indent);
205}
206
207/** Emits a summary from the schema description, or a generic fallback. */
208function xmlDocEnumComment(description: string | undefined, indent: string): string[] {

Callers 6

generateDerivedClassFunction · 0.85
generateNestedClassFunction · 0.85
generateDataClassFunction · 0.85
emitRpcClassFunction · 0.85

Calls 3

xmlDocCommentFunction · 0.85
rawXmlDocSummaryFunction · 0.85
escapeXmlFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…