Index: pkg/compiler/lib/src/helpers/expensive_map.dart |
diff --git a/pkg/compiler/lib/src/helpers/expensive_map.dart b/pkg/compiler/lib/src/helpers/expensive_map.dart |
index 68d106eb631d93fc5f8873a7d1e710a43986225e..8b382d9943a86ded4e2ae98dec6cf9071edb3409 100644 |
--- a/pkg/compiler/lib/src/helpers/expensive_map.dart |
+++ b/pkg/compiler/lib/src/helpers/expensive_map.dart |
@@ -2,14 +2,12 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
- |
/** |
* The expensive map is a data structure useful for tracking down |
* excessive memory usage due to large maps. It acts as an ordinary |
* hash map, but it uses 10 times more memory (by default). |
*/ |
class ExpensiveMap<K, V> implements Map<K, V> { |
- |
final List _maps; |
ExpensiveMap([int copies = 10]) : _maps = new List(copies) { |
@@ -29,13 +27,13 @@ class ExpensiveMap<K, V> implements Map<K, V> { |
bool containsKey(K key) => _maps[0].containsKey(key); |
bool containsValue(V value) => _maps[0].containsValue(value); |
- V operator[](K key) => _maps[0][key]; |
+ V operator [](K key) => _maps[0][key]; |
void forEach(void action(K key, V value)) { |
_maps[0].forEach(action); |
} |
- void operator[]=(K key, V value) { |
+ void operator []=(K key, V value) { |
for (int i = 0; i < _maps.length; i++) { |
_maps[i][key] = value; |
} |