Whether a call's argument count fits a routine's parameters; true when either can't be read.
(routine: Node, ref: UnresolvedRef, context: ResolutionContext)
| 398 | |
| 399 | /** Whether a call's argument count fits a routine's parameters; true when either can't be read. */ |
| 400 | function fitsArguments(routine: Node, ref: UnresolvedRef, context: ResolutionContext): boolean { |
| 401 | const count = pascalCallArgumentCount(ref, context); |
| 402 | const range = pascalParameterRange(routine.signature); |
| 403 | return count === null || range === null || (count >= range[0] && count <= range[1]); |
| 404 | } |
| 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 { |
no test coverage detected