refactor!: use IterableMixin where possible

This commit is contained in:
Aleksey Kulikov 2021-09-20 13:03:43 +03:00
parent 6845286af2
commit cf677e488a
8 changed files with 100 additions and 57 deletions

View file

@ -49,8 +49,7 @@ class Tree {
///
/// If string [value] is provided, lookup is done by entry filename.
///
/// If provided string [value] is a path to file, lookup is done by path. In that case
/// returned object should be freed explicitly.
/// If provided string [value] is a path to file, lookup is done by path.
TreeEntry operator [](Object value) {
if (value is int) {
return TreeEntry(bindings.getByIndex(_treePointer, value));