MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / declarationsInFiles

Function declarationsInFiles

graph-ui/src/provider/cypher.ts:466–476  ·  view source on GitHub ↗
(
    label: string,
    filePaths: readonly string[],
    limit = DECLARATION_BATCH_LIMIT
)

Source from the content-addressed store, hash-verified

464 * files is two round trips this way and eighty the other.
465 */
466export function declarationsInFiles(
467 label: string,
468 filePaths: readonly string[],
469 limit = DECLARATION_BATCH_LIMIT
470): string | undefined {
471 const predicate = anyOf('n', NODE_PROPS.filePath, filePaths);
472 if (predicate === undefined) {
473 return undefined;
474 }
475 return `MATCH (n:${label}) WHERE ${predicate} ${ret(COLUMNS.declarations)} LIMIT ${safeLimit(limit)}`;
476}
477
478/** How many callers one batched inbound read returns. */
479export const CALLER_BATCH_LIMIT = 500;

Callers 3

loadFileSymbolsFunction · 0.90
declarationNamesFunction · 0.90
declarationsOfMethod · 0.90

Calls 3

anyOfFunction · 0.85
retFunction · 0.85
safeLimitFunction · 0.85

Tested by

no test coverage detected