465
let curOffset = nodeOffsetStart;
466
for (const child of node.children) {
468
>
curOffset = lengthAdd(curOffset, child.length);
469
>
470
>
if (
471
>
lengthLessThanEqual(childOffset, endOffset) &&
472
>
lengthLessThanEqual(startOffset, curOffset)
473
>
) {
474
>
shouldContinue = collectBracketPairs(
475
>
child,
476
>
childOffset,
477
>
curOffset,
478
>
startOffset,
479
>
endOffset,
480
>
context,
481
>
level,
482
>
levelPerBracketType
483
>
);
484
>
if (!shouldContinue) {
485
return false;
486
}
488
>
}
489
}
490
return shouldContinue;