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

Method LookupTypeDef

context.go:292–299  ·  view source on GitHub ↗

LookupTypeDef returns the named type last bound to name by LookupTypeNamed. It returns nil if name is unbound.

(name string)

Source from the content-addressed store, hash-verified

290// LookupTypeDef returns the named type last bound to name by LookupTypeNamed.
291// It returns nil if name is unbound.
292func (c *Context) LookupTypeDef(name string) *TypeNamed {
293 c.mu.Lock()
294 defer c.mu.Unlock()
295 if c.typedefs == nil {
296 return nil
297 }
298 return c.typedefs[name]
299}
300
301// LookupTypeNamed returns the named type for name and inner. It also binds
302// name to that named type. LookupTypeNamed returns an error if name is not a

Callers 5

DecodeTypeValueMethod · 0.95
convertTypeMethod · 0.80
CallMethod · 0.80
CallMethod · 0.80

Calls

no outgoing calls