97
*/
98
export function lengthDiffNonNegative(length1: Length, length2: Length): Length {
99
>
// eslint-disable-next-line local/code-no-any-casts, @typescript-eslint/no-explicit-any
length.ts
100
>
const l1 = length1 as any as number;
101
>
// eslint-disable-next-line local/code-no-any-casts, @typescript-eslint/no-explicit-any
102
>
const l2 = length2 as any as number;
103
>
104
>
const diff = l2 - l1;
105
>
if (diff <= 0) {
106
// line-count of length1 is higher than line-count of length2
107
// or they are equal and column-count of length1 is higher than column-count of length2