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

Function matchVariant

compiler/semantic/resolver.go:206–217  ·  view source on GitHub ↗
(def *funcDef, lambdas []lambda)

Source from the content-addressed store, hash-verified

204}
205
206func matchVariant(def *funcDef, lambdas []lambda) bool {
207 // find match or detect change and error or false/nil
208 if len(def.lambdas) != len(lambdas) {
209 return false
210 }
211 for k, lambda := range lambdas {
212 if lambda.pos != def.lambdas[k].pos || lambda.id != def.lambdas[k].id {
213 return false
214 }
215 }
216 return true
217}
218
219type funcDecl struct {
220 id string

Callers 1

lookupVariantMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected