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

Function CheckArgCount

runtime/sam/expr/function/function.go:195–203  ·  view source on GitHub ↗
(narg int, argmin int, argmax int)

Source from the content-addressed store, hash-verified

193}
194
195func CheckArgCount(narg int, argmin int, argmax int) error {
196 if argmin != -1 && narg < argmin {
197 return ErrTooFewArgs
198 }
199 if argmax != -1 && narg > argmax {
200 return ErrTooManyArgs
201 }
202 return nil
203}
204
205// HasBoolResult returns true if the function name returns a Boolean value.
206// XXX This is a hack so the semantic compiler can determine if a single call

Callers 4

semCallByNameMethod · 0.92
maybeConvertAggMethod · 0.92
NewFunction · 0.92
NewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected