Skip to content

Commit c384d6c

Browse files
committed
Rename class alias to VTree for clarity
1 parent 65b72dc commit c384d6c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/Terminal/Widgets/Volatile/DirTree.rakumod

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ unit module Terminal::Widgets::Volatile::DirTree;
44

55
use Terminal::Widgets::Volatile::Tree;
66

7-
constant Tree = Terminal::Widgets::Volatile::Tree;
7+
constant VTree = Terminal::Widgets::Volatile::Tree;
88

99

1010
role PathContainer {
@@ -16,9 +16,9 @@ role PathContainer {
1616
}
1717
}
1818

19-
role Node does Tree::Node does PathContainer { }
20-
role Leaf does Tree::Leaf does PathContainer { }
21-
role Parent does Tree::Parent does PathContainer { }
19+
role Node does VTree::Node does PathContainer { }
20+
role Leaf does VTree::Leaf does PathContainer { }
21+
role Parent does VTree::Parent does PathContainer { }
2222

2323
class Misc does Node { }
2424
class File does Leaf { }
@@ -35,8 +35,8 @@ class SymLink does Node {
3535
}
3636

3737
class Dir does Parent {
38-
has Tree::Node:D @!children is built;
39-
has Instant:D $.cache-time .= from-posix-nanos(0);
38+
has VTree::Node:D @!children is built;
39+
has Instant:D $.cache-time .= from-posix-nanos(0);
4040

4141

4242
#| Lazily find (and cache) children, forcing a refresh if requested

0 commit comments

Comments
 (0)