core/collection: set HashMapIterator as private
authorAlexandre Terrasa <alexandre@moz-code.org>
Thu, 15 Oct 2015 17:51:10 +0000 (13:51 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Thu, 15 Oct 2015 21:36:36 +0000 (17:36 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.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