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

Function moduleQnFromFileQn

graph-ui/src/app/module-qn.ts:83–90  ·  view source on GitHub ↗
(fileQualifiedNameValue: string)

Source from the content-addressed store, hash-verified

81 * des Servers gehalten werden kann, statt gegen eine zweite Ableitung.
82 */
83export function moduleQnFromFileQn(fileQualifiedNameValue: string): string | undefined {
84 if (!fileQualifiedNameValue.endsWith(FILE_NODE_SUFFIX)) {
85 return undefined;
86 }
87 const withExtension = fileQualifiedNameValue.slice(0, -FILE_NODE_SUFFIX.length);
88 const dot = withExtension.lastIndexOf('.');
89 return dot <= 0 ? withExtension : withExtension.slice(0, dot);
90}
91
92/** Die Segmente eines Pfades, wie die Breadcrumb sie zeigt. */
93export function pathSegments(filePath: string): string[] {

Callers 2

lookupModuleNodeFunction · 0.90
module-qn.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected