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

Function pushRustDoc

scripts/codegen/rust.ts:455–464  ·  view source on GitHub ↗
(lines: string[], text: string | undefined, indent = "")

Source from the content-addressed store, hash-verified

453}
454
455function pushRustDoc(lines: string[], text: string | undefined, indent = ""): void {
456 if (!text) return;
457 for (const paragraph of text.trim().split(/\r?\n/)) {
458 if (paragraph.trim().length === 0) {
459 lines.push(`${indent}///`);
460 } else {
461 lines.push(`${indent}/// ${paragraph.trim()}`);
462 }
463 }
464}
465
466function isRustMapSchema(schema: JSONSchema7): boolean {
467 const hasProperties =

Callers 3

emitRustTypeAliasFunction · 0.85
rustRpcMethodDocsFunction · 0.85
emitRustStringEnumFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…