Merge: Set HashMapIterator as a private class.
authorJean Privat <jean@pryen.org>
Fri, 16 Oct 2015 12:19:43 +0000 (08:19 -0400)
committerJean Privat <jean@pryen.org>
Fri, 16 Oct 2015 12:19:43 +0000 (08:19 -0400)
Other specific iterators are private. So this PR uniformize with HashMapIterator.

@privat you should check this.

Pull-Request: #1753
Reviewed-by: Jean Privat <jean@pryen.org>

lib/core/collection/hash_collection.nit

index 1c9c17c..8ee3491 100644 (file)
@@ -376,7 +376,7 @@ private class HashMapNode[K, V]
 end
 
 # A `MapIterator` over a `HashMap`.
-class HashMapIterator[K, V]
+private class HashMapIterator[K, V]
        super MapIterator[K, V]
        redef fun is_ok do return _node != null
 
@@ -405,10 +405,10 @@ class HashMapIterator[K, V]
        end
 
        # The map to iterate on
-       private var map: HashMap[K, V]
+       var map: HashMap[K, V]
 
        # The current node
-       private var node: nullable HashMapNode[K, V] = null
+       var node: nullable HashMapNode[K, V] = null
 
        init
        do