Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: pkg/compiler/lib/src/helpers/track_map.dart

Issue 1859343004: dartfmt pkg/compiler (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/helpers/trace.dart ('k') | pkg/compiler/lib/src/inferrer/closure_tracer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « pkg/compiler/lib/src/helpers/trace.dart ('k') | pkg/compiler/lib/src/inferrer/closure_tracer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698