419
);
420
}
422
>
shouldContinue = context.push(
423
>
new BracketPairWithMinIndentationInfo(
424
>
lengthsToRange(nodeOffsetStart, nodeOffsetEnd),
425
>
lengthsToRange(nodeOffsetStart, openingBracketEnd),
426
>
node.closingBracket
427
>
? lengthsToRange(
428
>
lengthAdd(openingBracketEnd, node.child?.length || lengthZero),
429
>
nodeOffsetEnd
430
>
)
431
: undefined,
433
>
levelPerBracket,
434
>
node,
435
>
minIndentation
436
>
)
437
>
);
438
>
439
>
nodeOffsetStart = openingBracketEnd;
440
>
if (shouldContinue && node.child) {
441
>
const child = node.child;
442
>
nodeOffsetEnd = lengthAdd(nodeOffsetStart, child.length);
443
>
if (
444
>
lengthLessThanEqual(nodeOffsetStart, endOffset) &&
445
lengthGreaterThanEqual(nodeOffsetEnd, startOffset)
447
shouldContinue = collectBracketPairs(
448
child,