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

Method add_named_decl

scope.go:39–41  ·  view source on GitHub ↗

adds declaration or returns an existing one

(d *decl)

Source from the content-addressed store, hash-verified

37
38// adds declaration or returns an existing one
39func (s *scope) add_named_decl(d *decl) *decl {
40 return s.add_decl(d.name, d)
41}
42
43func (s *scope) add_decl(name string, d *decl) *decl {
44 decl, ok := s.entities[name]

Callers 8

process_declMethod · 0.80
process_select_stmtMethod · 0.80
process_range_stmtMethod · 0.80
process_assign_stmtMethod · 0.80
process_field_listMethod · 0.80
check_for_anon_typeFunction · 0.80
initFunction · 0.80

Calls 1

add_declMethod · 0.95

Tested by

no test coverage detected