Index: pkg/compiler/lib/src/helpers/track_map.dart |
diff --git a/pkg/compiler/lib/src/helpers/track_map.dart b/pkg/compiler/lib/src/helpers/track_map.dart |
index b57be3ad0dcafaf2941f3e0bd8808637fd66f733..8445efe76d7fca825d0c42c28367f5e0d44c6681 100644 |
--- a/pkg/compiler/lib/src/helpers/track_map.dart |
+++ b/pkg/compiler/lib/src/helpers/track_map.dart |
@@ -2,7 +2,6 @@ |
// 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 track map is a simple wrapper around a map that keeps track |
* of the 'final' size of maps grouped by description. It allows |
@@ -22,7 +21,7 @@ class TrackMap<K, V> implements Map<K, V> { |
TrackMap._internal(this._counts) : _map = new Map<K, V>(); |
factory TrackMap(String description) { |
- List counts = _countsMap.putIfAbsent(description, () => [ 0 ]); |
+ List counts = _countsMap.putIfAbsent(description, () => [0]); |
Map result = new TrackMap<K, V>._internal(counts); |
counts[0]++; |
return result; |
@@ -61,14 +60,14 @@ class TrackMap<K, V> implements Map<K, V> { |
bool containsKey(K key) => _map.containsKey(key); |
bool containsValue(V value) => _map.containsValue(value); |
- V operator[](K key) => _map[key]; |
+ V operator [](K key) => _map[key]; |
String toString() => _map.toString(); |
void forEach(void action(K key, V value)) { |
_map.forEach(action); |
} |
- void operator[]=(K key, V value) { |
+ void operator []=(K key, V value) { |
if (!_map.containsKey(key)) { |
_notifyLengthChanged(1); |
_map[key] = value; |