MCPcopy Create free account
hub / github.com/JordanCoin/codemap / HubFiles

Method HubFiles

scanner/filegraph.go:351–359  ·  view source on GitHub ↗

HubFiles returns all files that are imported by 3+ other files

()

Source from the content-addressed store, hash-verified

349
350// HubFiles returns all files that are imported by 3+ other files
351func (fg *FileGraph) HubFiles() []string {
352 var hubs []string
353 for path, importers := range fg.Importers {
354 if len(importers) >= 3 {
355 hubs = append(hubs, path)
356 }
357 }
358 return hubs
359}
360
361// ConnectedFiles returns all files connected to the given file (imports + importers)
362func (fg *FileGraph) ConnectedFiles(path string) []string {

Callers 7

getHubInfoWithFallbackFunction · 0.80
handleGetStructureFunction · 0.80
handleGetHubsFunction · 0.80
computeDepsMethod · 0.80
writeStateMethod · 0.80

Calls

no outgoing calls