MCPcopy Create free account
hub / github.com/Marus/cortex-debug / addToFileMap

Method addToFileMap

src/backend/symbols.ts:746–754  ·  view source on GitHub ↗
(key: string, newMap: string)

Source from the content-addressed store, hash-verified

744 }
745
746 private addToFileMap(key: string, newMap: string): string[] {
747 newMap = SymbolTable.NormalizePath(newMap);
748 const value = this.fileMap[key] || [];
749 if (value.indexOf(newMap) === -1) {
750 value.push(newMap);
751 }
752 this.fileMap[key] = value;
753 return value;
754 }
755
756 private addPathVariations(fileString: string) {
757 const curName = SymbolTable.NormalizePath(fileString);

Callers 1

addPathVariationsMethod · 0.95

Calls 1

NormalizePathMethod · 0.80

Tested by

no test coverage detected