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

Method parseArrayOrSet

runtime/sam/expr/function/defuse.go:107–113  ·  view source on GitHub ↗
(typ super.Type, bytes scode.Bytes)

Source from the content-addressed store, hash-verified

105}
106
107func (d *defuse) parseArrayOrSet(typ super.Type, bytes scode.Bytes) []super.Value {
108 var elems []super.Value
109 for it := bytes.Iter(); !it.Done(); {
110 elems = append(elems, d.eval(super.NewValue(typ, it.Next())))
111 }
112 return elems
113}
114
115func (d *defuse) unify(elems []super.Value) (super.Type, scode.Bytes) {
116 seen := make(map[super.Type]struct{})

Callers 1

evalMethod · 0.95

Calls 5

evalMethod · 0.95
NewValueFunction · 0.92
IterMethod · 0.80
DoneMethod · 0.45
NextMethod · 0.45

Tested by

no test coverage detected