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

Function sharedNames

graph-ui/src/twin/render-model.ts:754–765  ·  view source on GitHub ↗

Type references whose declaration lies outside the focused symbol.

(ir: SemanticIR)

Source from the content-addressed store, hash-verified

752
753/** Type references whose declaration lies outside the focused symbol. */
754function sharedNames(ir: SemanticIR): string[] {
755 const start = ir.symbol.range.start.line + 1;
756 const end = ir.symbol.range.end.line;
757 const names = (ir.typeRefs?.value ?? [])
758 .filter((entry) => entry.file !== ir.symbol.uri
759 || entry.line === undefined
760 || entry.line < start
761 || entry.line > end)
762 .map((entry) => entry.name)
763 .filter((name) => name.length > 0);
764 return [...new Set(names)];
765}
766
767/** Facts whose impact is useful before any level-specific shape begins. */
768function contextLines(ir: SemanticIR, facets: ReadonlySet<Facet>): string[] {

Callers 2

overviewClausesFunction · 0.85
contextLinesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected