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

Function try_autobuild

declcache.go:257–264  ·  view source on GitHub ↗

executes autobuild function if autobuild option is enabled, logs error and ignores it

(p *build.Package)

Source from the content-addressed store, hash-verified

255// executes autobuild function if autobuild option is enabled, logs error and
256// ignores it
257func try_autobuild(p *build.Package) {
258 if g_config.Autobuild {
259 err := autobuild(p)
260 if err != nil && *g_debug {
261 log.Printf("Autobuild error: %s\n", err)
262 }
263 }
264}
265
266func log_found_package_maybe(imp, pkgpath string) {
267 if *g_debug {

Callers 1

find_global_fileFunction · 0.85

Calls 1

autobuildFunction · 0.85

Tested by

no test coverage detected