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

Function xmlDocComment

scripts/codegen/csharp.ts:96–108  ·  view source on GitHub ↗
(description: string | undefined, indent: string)

Source from the content-addressed store, hash-verified

94}
95
96function 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
110function xmlDocElement(tagName: string, description: string | undefined, indent: string): string[] {
111 if (!description) return [];

Callers 8

pushRpcMethodXmlDocsFunction · 0.85
xmlDocPropertyCommentFunction · 0.85
xmlDocEnumCommentFunction · 0.85
xmlDocEnumMemberCommentFunction · 0.85
generateDataClassFunction · 0.85
emitRpcClassFunction · 0.85

Calls 2

escapeXmlFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…