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

Method lookup

scope.go:67–77  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

65}
66
67func (s *scope) lookup(name string) *decl {
68 decl, ok := s.entities[name]
69 if !ok {
70 if s.parent != nil {
71 return s.parent.lookup(name)
72 } else {
73 return nil
74 }
75 }
76 return decl
77}

Callers 3

lookup_pathFunction · 0.80
lookup_pkgFunction · 0.80
infer_typeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected