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

Function pushRustExperimentalDocs

scripts/codegen/rust.ts:436–453  ·  view source on GitHub ↗
(
	lines: string[],
	experimental: boolean,
	indent = "",
)

Source from the content-addressed store, hash-verified

434}
435
436function pushRustExperimentalDocs(
437 lines: string[],
438 experimental: boolean,
439 indent = "",
440): void {
441 if (!experimental) return;
442 lines.push(`${indent}///`);
443 lines.push(`${indent}/// <div class="warning">`);
444 lines.push(`${indent}///`);
445 lines.push(
446 `${indent}/// **Experimental.** This type is part of an experimental wire-protocol surface`,
447 );
448 lines.push(
449 `${indent}/// and may change or be removed in future SDK or CLI releases.`,
450 );
451 lines.push(`${indent}///`);
452 lines.push(`${indent}/// </div>`);
453}
454
455function pushRustDoc(lines: string[], text: string | undefined, indent = ""): void {
456 if (!text) return;

Callers 5

tryEmitRustUnionFunction · 0.85
emitRustTypeAliasFunction · 0.85
emitRustStructFunction · 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…