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

Struct auto_complete_context

autocompletecontext.go:149–156  ·  view source on GitHub ↗

------------------------------------------------------------------------- auto_complete_context Context that holds cache structures for autocompletion needs. It includes cache for packages and for main package files. -------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

147//-------------------------------------------------------------------------
148
149type auto_complete_context struct {
150 current *auto_complete_file // currently edited file
151 others []*decl_file_cache // other files of the current package
152 pkg *scope
153
154 pcache package_cache // packages cache
155 declcache *decl_cache // top-level declarations cache
156}
157
158func new_auto_complete_context(pcache package_cache, declcache *decl_cache) *auto_complete_context {
159 c := new(auto_complete_context)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected