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

Unified Diff: sdk/lib/_internal/compiler/implementation/mirrors/util.dart

Issue 119913002: Align source mirrors with runtime mirrors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments + small fix. Created 6 years, 11 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
Index: sdk/lib/_internal/compiler/implementation/mirrors/util.dart
diff --git a/sdk/lib/_internal/compiler/implementation/mirrors/util.dart b/sdk/lib/_internal/compiler/implementation/mirrors/util.dart
index db94f02395a2117878960146db6af3e9d84934d5..7d9ad7766f40ae5c940918c129ae3ff2c728c823 100644
--- a/sdk/lib/_internal/compiler/implementation/mirrors/util.dart
+++ b/sdk/lib/_internal/compiler/implementation/mirrors/util.dart
@@ -2,7 +2,9 @@
// 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.
-library util;
+library dart2js.mirrors.util;
+
+import 'dart:collection' show Maps;
/**
* An abstract map implementation. This class can be used as a superclass for
@@ -24,7 +26,7 @@ abstract class AbstractMap<K, V> implements Map<K, V> {
void clear() {
throw new UnsupportedError('clear() is not supported');
}
-
+
void addAll(Map<K, V> other) {
throw new UnsupportedError('addAll() is not supported');
}
@@ -75,6 +77,8 @@ abstract class AbstractMap<K, V> implements Map<K, V> {
V remove(K key) {
throw new UnsupportedError('V remove(K key) is not supported');
}
+
+ String toString() => Maps.mapToString(this);
}
/**

Powered by Google App Engine
This is Rietveld 408576698