Skip to content

Commit f035b77

Browse files
rename
1 parent 9966278 commit f035b77

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Range } from "@cursorless/common";
22

3-
export class RangeNode<T extends { range: Range }> {
4-
children: RangeNode<T>[] = [];
3+
export class RangeTreeNode<T extends { range: Range }> {
4+
children: RangeTreeNode<T>[] = [];
55

66
constructor(private item: T) {}
77

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { Range } from "@cursorless/common";
2-
import { RangeNode } from "./RangeNode";
2+
import { RangeTreeNode } from "./RangeTreeNode";
33

44
/**
55
* Creates a tree of ranges from a list of ranges. This improves containing lookup time.
@@ -8,12 +8,12 @@ import { RangeNode } from "./RangeNode";
88
*/
99
export function createRangeTree<T extends { range: Range }>(
1010
items: T[],
11-
): RangeNode<T>[] {
12-
const results: RangeNode<T>[] = [];
13-
const parents: RangeNode<T>[] = [];
11+
): RangeTreeNode<T>[] {
12+
const results: RangeTreeNode<T>[] = [];
13+
const parents: RangeTreeNode<T>[] = [];
1414

1515
for (const item of items) {
16-
const node = new RangeNode(item);
16+
const node = new RangeTreeNode(item);
1717

1818
while (
1919
parents.length > 0 &&

0 commit comments

Comments
 (0)