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

Method lookupVariant

compiler/semantic/resolver.go:175–183  ·  view source on GitHub ↗
(id string, lambdas []lambda)

Source from the content-addressed store, hash-verified

173}
174
175func (r *resolver) lookupVariant(id string, lambdas []lambda) *funcDef {
176 d := r.decls[id]
177 for _, variant := range d.variants {
178 if ok := matchVariant(variant, lambdas); ok {
179 return variant
180 }
181 }
182 return nil
183}
184
185func (r *resolver) getVariant(id string, params []string, lambdas []lambda, inType super.Type) *funcDef {
186 if variant := r.lookupVariant(id, lambdas); variant != nil {

Callers 1

getVariantMethod · 0.95

Calls 1

matchVariantFunction · 0.85

Tested by

no test coverage detected