MCPcopy Create free account
hub / github.com/nsf/gocode / update_packages

Function update_packages

autocompletecontext.go:444–466  ·  view source on GitHub ↗
(ps map[string]*package_file_cache)

Source from the content-addressed store, hash-verified

442}
443
444func update_packages(ps map[string]*package_file_cache) {
445 // initiate package cache update
446 done := make(chan bool)
447 for _, p := range ps {
448 go func(p *package_file_cache) {
449 defer func() {
450 if err := recover(); err != nil {
451 print_backtrace(err)
452 done <- false
453 }
454 }()
455 p.update_cache()
456 done <- true
457 }(p)
458 }
459
460 // wait for its completion
461 for _ = range ps {
462 if !<-done {
463 panic("One of the package cache updaters panicked")
464 }
465 }
466}
467
468func collect_type_alias_methods(d *decl) map[string]*decl {
469 if d == nil || d.is_visited() || !d.is_alias() {

Callers 1

update_cachesMethod · 0.85

Calls 2

print_backtraceFunction · 0.85
update_cacheMethod · 0.80

Tested by

no test coverage detected