Skip to content

Commit 706127e

Browse files
rename
1 parent 3dcac4f commit 706127e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/cursorless-engine/src/processTargets/modifiers/scopeHandlers/SurroundingPairScopeHandler/getDelimiterOccurrences.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ export function getDelimiterOccurrences(
2626
"disqualifyDelimiter",
2727
"textFragment",
2828
]);
29-
const disqualifyDelimitersIterator = createRangeIterator(
29+
const disqualifyDelimiters = createRangeIterator(
3030
captures?.disqualifyDelimiter,
3131
);
32-
const textFragmentsIterator = createRangeIterator(captures?.textFragment);
32+
const textFragments = createRangeIterator(captures?.textFragment);
3333

3434
const delimiterTextToDelimiterInfoMap = Object.fromEntries(
3535
individualDelimiters.map((individualDelimiter) => [
@@ -52,13 +52,13 @@ export function getDelimiterOccurrences(
5252
document.positionAt(match.index! + text.length),
5353
);
5454

55-
const delimiter = disqualifyDelimitersIterator.getContaining(range);
55+
const delimiter = disqualifyDelimiters.getContaining(range);
5656
const isDisqualified = delimiter != null && !delimiter.hasError();
5757

5858
if (!isDisqualified) {
5959
results.push({
6060
delimiterInfo: delimiterTextToDelimiterInfoMap[text],
61-
textFragmentRange: textFragmentsIterator.getContaining(range)?.range,
61+
textFragmentRange: textFragments.getContaining(range)?.range,
6262
range,
6363
});
6464
}

0 commit comments

Comments
 (0)