@@ -308,12 +308,8 @@ export function targetGetLowerBound(
308308 for ( const segment of fieldIndexGetDirectionalSegments ( fieldIndex ) ) {
309309 const segmentBound =
310310 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 ) ;
317313
318314 if ( ! segmentBound . value ) {
319315 // No lower bound exists
@@ -342,8 +338,8 @@ export function targetGetUpperBound(
342338 for ( const segment of fieldIndexGetDirectionalSegments ( fieldIndex ) ) {
343339 const segmentBound =
344340 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 ) ;
347343
348344 if ( ! segmentBound . value ) {
349345 // No upper bound exists
@@ -360,7 +356,7 @@ export function targetGetUpperBound(
360356 * Returns the value to use as the lower bound for ascending index segment at
361357 * the provided `fieldPath` (or the upper bound for an descending segment).
362358 */
363- function targetGetLowerBoundForField (
359+ function targetGetAscendingBound (
364360 target : Target ,
365361 fieldPath : FieldPath ,
366362 bound : Bound | null
@@ -422,9 +418,9 @@ function targetGetLowerBoundForField(
422418
423419/**
424420 * 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).
426422 */
427- function targetGetUpperBoundForField (
423+ function targetGetDescendingBound (
428424 target : Target ,
429425 fieldPath : FieldPath ,
430426 bound : Bound | null
0 commit comments