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

Method TranslateType

context.go:395–397  ·  view source on GitHub ↗

TranslateType takes a type from another context and creates and returns that type in this context.

(ext Type)

Source from the content-addressed store, hash-verified

393// TranslateType takes a type from another context and creates and returns that
394// type in this context.
395func (c *Context) TranslateType(ext Type) (Type, error) {
396 return c.LookupByValue(EncodeTypeValue(ext))
397}
398
399func (c *Context) enterWithLock(typ Type) {
400 c.byID = append(c.byID, typ)

Callers 7

TestTranslateNamedFunction · 0.95
encodeAnyMethod · 0.80
projectMethod · 0.80
TypeMethod · 0.80
TransformMethod · 0.80

Calls 2

LookupByValueMethod · 0.95
EncodeTypeValueFunction · 0.85

Tested by 3

TestTranslateNamedFunction · 0.76