(name string)
| 65 | } |
| 66 | |
| 67 | func (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 | } |
no outgoing calls
no test coverage detected