@@ -308,12 +308,8 @@ export function targetGetLowerBound(
308
308
for ( const segment of fieldIndexGetDirectionalSegments ( fieldIndex ) ) {
309
309
const segmentBound =
310
310
segment . kind === IndexKind . ASCENDING
311
- ? targetGetLowerBoundForField ( target , segment . fieldPath , target . startAt )
312
- : targetGetUpperBoundForField (
313
- target ,
314
- segment . fieldPath ,
315
- target . startAt
316
- ) ;
311
+ ? targetGetAscendingBound ( target , segment . fieldPath , target . startAt )
312
+ : targetGetDescendingBound ( target , segment . fieldPath , target . startAt ) ;
317
313
318
314
if ( ! segmentBound . value ) {
319
315
// No lower bound exists
@@ -342,8 +338,8 @@ export function targetGetUpperBound(
342
338
for ( const segment of fieldIndexGetDirectionalSegments ( fieldIndex ) ) {
343
339
const segmentBound =
344
340
segment . kind === IndexKind . ASCENDING
345
- ? targetGetUpperBoundForField ( target , segment . fieldPath , target . endAt )
346
- : targetGetLowerBoundForField ( target , segment . fieldPath , target . endAt ) ;
341
+ ? targetGetDescendingBound ( target , segment . fieldPath , target . endAt )
342
+ : targetGetAscendingBound ( target , segment . fieldPath , target . endAt ) ;
347
343
348
344
if ( ! segmentBound . value ) {
349
345
// No upper bound exists
@@ -360,7 +356,7 @@ export function targetGetUpperBound(
360
356
* Returns the value to use as the lower bound for ascending index segment at
361
357
* the provided `fieldPath` (or the upper bound for an descending segment).
362
358
*/
363
- function targetGetLowerBoundForField (
359
+ function targetGetAscendingBound (
364
360
target : Target ,
365
361
fieldPath : FieldPath ,
366
362
bound : Bound | null
@@ -422,9 +418,9 @@ function targetGetLowerBoundForField(
422
418
423
419
/**
424
420
* Returns the value to use as the upper bound for ascending index segment at
425
- * the provided `fieldPath` (or the lower bound for an descending segment).
421
+ * the provided `fieldPath` (or the lower bound for a descending segment).
426
422
*/
427
- function targetGetUpperBoundForField (
423
+ function targetGetDescendingBound (
428
424
target : Target ,
429
425
fieldPath : FieldPath ,
430
426
bound : Bound | null
0 commit comments