Whether a routine takes exactly a call's argument count, none of them left to a default.
(routine: Node, ref: UnresolvedRef, context: ResolutionContext)
| 405 | |
| 406 | /** Whether a routine takes exactly a call's argument count, none of them left to a default. */ |
| 407 | function takesExactly(routine: Node, ref: UnresolvedRef, context: ResolutionContext): boolean { |
| 408 | const count = pascalCallArgumentCount(ref, context); |
| 409 | const range = pascalParameterRange(routine.signature); |
| 410 | return count !== null && range !== null && range[0] === count && range[1] === count; |
| 411 | } |
| 412 | |
| 413 | /** |
| 414 | * Whether two routine nodes are the same routine, or overloads of it: the |
no test coverage detected