(name string, e any)
| 33 | } |
| 34 | |
| 35 | func (s *Scope) BindSymbol(name string, e any) error { |
| 36 | if _, ok := s.symbols[name]; ok { |
| 37 | return fmt.Errorf("symbol %q redefined", name) |
| 38 | } |
| 39 | s.symbols[name] = &entry{ref: e, order: len(s.symbols)} |
| 40 | return nil |
| 41 | } |
| 42 | |
| 43 | func (s *Scope) lookupOp(name string) (*opDecl, error) { |
| 44 | if entry := s.lookupEntry(name); entry != nil { |
no outgoing calls
no test coverage detected