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