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

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

Issue 17825002: Remove support for 'argument definitions test' from dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove SentinelConstant. Created 7 years, 6 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 72b05b9fcd181d763a5e8cbb3933dc9e6b4b94dc..db94f02395a2117878960146db6af3e9d84934d5 100644
--- a/sdk/lib/_internal/compiler/implementation/mirrors/util.dart
+++ b/sdk/lib/_internal/compiler/implementation/mirrors/util.dart
@@ -10,10 +10,10 @@ library util;
* [:operator []:], [:forEach:] and [:length:] methods to provide a fully
* implemented immutable map.
*/
-abstract class AbstractMap<K,V> implements Map<K,V> {
+abstract class AbstractMap<K, V> implements Map<K, V> {
AbstractMap();
- AbstractMap.from(Map<K,V> other) {
+ AbstractMap.from(Map<K, V> other) {
other.forEach((k,v) => this[k] = v);
}
@@ -24,6 +24,10 @@ 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');
+ }
bool containsKey(K key) {
var found = false;
@@ -77,8 +81,8 @@ abstract class AbstractMap<K,V> implements Map<K,V> {
* [ImmutableMapWrapper] wraps a (mutable) map as an immutable map where all
* mutating operations throw [UnsupportedError] upon invocation.
*/
-class ImmutableMapWrapper<K,V> extends AbstractMap<K,V> {
- final Map<K,V> _map;
+class ImmutableMapWrapper<K, V> extends AbstractMap<K, V> {
+ final Map<K, V> _map;
ImmutableMapWrapper(this._map);
@@ -104,10 +108,10 @@ typedef bool Filter<V>(V value);
/**
* An immutable map wrapper capable of filtering the input map.
*/
-class FilteredImmutableMap<K,V> extends ImmutableMapWrapper<K,V> {
+class FilteredImmutableMap<K, V> extends ImmutableMapWrapper<K, V> {
final Filter<V> _filter;
- FilteredImmutableMap(Map<K,V> map, this._filter) : super(map);
+ FilteredImmutableMap(Map<K, V> map, this._filter) : super(map);
int get length {
var count = 0;

Powered by Google App Engine
This is Rietveld 408576698