MCPcopy Create free account
hub / github.com/brimdata/super / BindSymbol

Method BindSymbol

compiler/semantic/scope.go:35–41  ·  view source on GitHub ↗
(name string, e any)

Source from the content-addressed store, hash-verified

33}
34
35func (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
43func (s *Scope) lookupOp(name string) (*opDecl, error) {
44 if entry := s.lookupEntry(name); entry != nil {

Callers 8

constDeclMethod · 0.80
queryDeclMethod · 0.80
typeDeclMethod · 0.80
funcDeclMethod · 0.80
opDeclMethod · 0.80
userOpMethod · 0.80
resolveVariantMethod · 0.80
resolveFixedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected