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

Method decl_package_import_path

autocompletecontext.go:244–252  ·  view source on GitHub ↗
(decl *decl)

Source from the content-addressed store, hash-verified

242}
243
244func (c *auto_complete_context) decl_package_import_path(decl *decl) string {
245 if decl == nil || decl.scope == nil {
246 return ""
247 }
248 if pkg, ok := c.pcache[decl.scope.pkgname]; ok {
249 return pkg.import_name
250 }
251 return ""
252}
253
254func (c *auto_complete_context) get_candidates_from_decl(cc cursor_context, class decl_class, b *out_buffers) {
255 if cc.decl.is_alias() {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected