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

Function xmlDocElement

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

Source from the content-addressed store, hash-verified

108}
109
110function xmlDocElement(tagName: string, description: string | undefined, indent: string): string[] {
111 if (!description) return [];
112 const escaped = ensureTrailingPunctuation(escapeXml(description.trim()));
113 const lines = escaped.split(/\r?\n/);
114 if (lines.length === 1) {
115 return [`${indent}/// <${tagName}>${lines[0]}</${tagName}>`];
116 }
117 return [
118 `${indent}/// <${tagName}>`,
119 ...lines.map((line) => `${indent}/// ${line}`),
120 `${indent}/// </${tagName}>`,
121 ];
122}
123
124function xmlDocNamedElement(
125 tagName: string,

Callers 1

pushRpcMethodXmlDocsFunction · 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…