(narg int, argmin int, argmax int)
| 193 | } |
| 194 | |
| 195 | func 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 |
no outgoing calls
no test coverage detected