(name string, d *decl)
| 41 | } |
| 42 | |
| 43 | func (s *scope) add_decl(name string, d *decl) *decl { |
| 44 | decl, ok := s.entities[name] |
| 45 | if !ok { |
| 46 | s.entities[name] = d |
| 47 | return d |
| 48 | } |
| 49 | return decl |
| 50 | } |
| 51 | |
| 52 | func (s *scope) replace_decl(name string, d *decl) { |
| 53 | s.entities[name] = d |
no outgoing calls
no test coverage detected