| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 part of _js_helper; | 5 part of "js_helper.dart"; |
| 6 | 6 |
| 7 class ConstantMapView<K, V> extends UnmodifiableMapView implements ConstantMap { | 7 class ConstantMapView<K, V> extends UnmodifiableMapView implements ConstantMap { |
| 8 ConstantMapView(Map base) : super(base); | 8 ConstantMapView(Map base) : super(base); |
| 9 } | 9 } |
| 10 | 10 |
| 11 abstract class ConstantMap<K, V> implements Map<K, V> { | 11 abstract class ConstantMap<K, V> implements Map<K, V> { |
| 12 // Used to create unmodifiable maps from other maps. | 12 // Used to create unmodifiable maps from other maps. |
| 13 factory ConstantMap.from(Map other) { | 13 factory ConstantMap.from(Map other) { |
| 14 List keys = other.keys.toList(); | 14 List keys = other.keys.toList(); |
| 15 bool allStrings = true; | 15 bool allStrings = true; |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 Iterable<K> get keys { | 182 Iterable<K> get keys { |
| 183 return _getMap().keys; | 183 return _getMap().keys; |
| 184 } | 184 } |
| 185 | 185 |
| 186 Iterable<V> get values { | 186 Iterable<V> get values { |
| 187 return _getMap().values; | 187 return _getMap().values; |
| 188 } | 188 } |
| 189 | 189 |
| 190 int get length => _getMap().length; | 190 int get length => _getMap().length; |
| 191 } | 191 } |
| OLD | NEW |