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

Function isNodeFullyDeprecated

scripts/codegen/utils.ts:579–591  ·  view source on GitHub ↗
(node: Record<string, unknown>)

Source from the content-addressed store, hash-verified

577
578/** Returns true when every leaf RPC method inside `node` is marked deprecated. */
579export function isNodeFullyDeprecated(node: Record<string, unknown>): boolean {
580 const methods: RpcMethod[] = [];
581 (function collect(n: Record<string, unknown>) {
582 for (const value of Object.values(n)) {
583 if (isRpcMethod(value)) {
584 methods.push(value);
585 } else if (typeof value === "object" && value !== null) {
586 collect(value as Record<string, unknown>);
587 }
588 }
589 })(node);
590 return methods.length > 0 && methods.every(m => m.deprecated === true);
591}
592
593/**
594 * Returns a filtered copy of an API tree containing only methods whose visibility

Callers 15

emitGroupFunction · 0.85
emitServerApiClassFunction · 0.85
emitSessionApiClassFunction · 0.85
emitApiGroupFunction · 0.85
emitRpcWrapperFunction · 0.85
emitPyApiGroupFunction · 0.85

Calls 2

isRpcMethodFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…