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

Method LookupTypeError

context.go:335–351  ·  view source on GitHub ↗
(inner Type)

Source from the content-addressed store, hash-verified

333}
334
335func (c *Context) LookupTypeError(inner Type) *TypeError {
336 c.mu.Lock()
337 defer c.mu.Unlock()
338 if c.errors == nil {
339 c.errors = make(map[Type]*TypeError)
340 }
341 if typ, ok := c.errors[inner]; ok {
342 return typ
343 }
344 typ := NewTypeError(c.nextIDWithLock(), inner)
345 c.enterWithLock(typ)
346 c.errors[inner] = typ
347 if inner == TypeString {
348 c.stringErr.Store(typ)
349 }
350 return typ
351}
352
353func (c *Context) LookupTypeFusion(inner Type) *TypeFusion {
354 c.mu.Lock()

Callers 15

DecodeTypeValueMethod · 0.95
StringTypeErrorMethod · 0.95
WrapErrorMethod · 0.95
NewStringErrorFunction · 0.80
NewVecWrappedErrorFunction · 0.80
semOpMethod · 0.80
newCheckerFunction · 0.80
convertErrorMethod · 0.80
convertTypeMethod · 0.80
projectMethod · 0.80
NewDequietFunction · 0.80
CallMethod · 0.80

Calls 3

nextIDWithLockMethod · 0.95
enterWithLockMethod · 0.95
NewTypeErrorFunction · 0.85

Tested by

no test coverage detected