X-Git-Url: http://nitlanguage.org diff --git a/lib/hash_debug.nit b/lib/hash_debug.nit index b618729..75d4160 100644 --- a/lib/hash_debug.nit +++ b/lib/hash_debug.nit @@ -29,8 +29,8 @@ # at callers of `HashCollection::gt_collide` and `HashCollection::st_collide`. module hash_debug -intrude import standard::collection::hash_collection -import standard +intrude import core::collection::hash_collection +import core redef class Sys # Number of calls of `HashCollection::node_at_idx` @@ -121,7 +121,7 @@ do super end -redef class HashCollection[K,N] +redef class HashCollection[K] redef fun node_at_idx(i,k) do sys.gt_count += 1 @@ -136,7 +136,7 @@ redef class HashCollection[K,N] # Count and update length of collisions for `node_at_idx` # Note for dynamic call-graph analysis: callers of this functions are # responsible of collisions. - private fun gt_collide(i: Int, k: K) + fun gt_collide(i: Int, k: K) do var c = _array[i] sys.gt_coll += 1 @@ -159,7 +159,7 @@ redef class HashCollection[K,N] # Count and update length of collisions for `store` # Note for dynamic call-graph analysis: callers of this functions are # responsible of collisions. - private fun st_collide(i: Int, n: N) + fun st_collide(i: Int, n: N) do var c = _array[i] sys.st_coll += 1