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

Method merge_decl

scope.go:56–65  ·  view source on GitHub ↗
(d *decl)

Source from the content-addressed store, hash-verified

54}
55
56func (s *scope) merge_decl(d *decl) {
57 decl, ok := s.entities[d.name]
58 if !ok {
59 s.entities[d.name] = d
60 } else {
61 decl := decl.deep_copy()
62 decl.expand_or_replace(d)
63 s.entities[d.name] = decl
64 }
65}
66
67func (s *scope) lookup(name string) *decl {
68 decl, ok := s.entities[name]

Callers 2

merge_declsFunction · 0.80

Calls 2

deep_copyMethod · 0.80
expand_or_replaceMethod · 0.80

Tested by

no test coverage detected