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

Unified Diff: sdk/lib/_internal/js_runtime/lib/constant_map.dart

Issue 2754013002: Format all dart: library files (Closed)
Patch Set: Format all dart: library files Created 3 years, 9 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/js_runtime/lib/constant_map.dart
diff --git a/sdk/lib/_internal/js_runtime/lib/constant_map.dart b/sdk/lib/_internal/js_runtime/lib/constant_map.dart
index 693197b146da0b5eba108c1f871554f9ae8547dd..618dc9604047bc255086c47c4a7e164be8688c6d 100644
--- a/sdk/lib/_internal/js_runtime/lib/constant_map.dart
+++ b/sdk/lib/_internal/js_runtime/lib/constant_map.dart
@@ -4,8 +4,7 @@
part of _js_helper;
-class ConstantMapView<K, V> extends UnmodifiableMapView
- implements ConstantMap {
+class ConstantMapView<K, V> extends UnmodifiableMapView implements ConstantMap {
ConstantMapView(Map base) : super(base);
}
@@ -56,6 +55,7 @@ abstract class ConstantMap<K, V> implements Map<K, V> {
static _throwUnmodifiable() {
throw new UnsupportedError("Cannot modify unmodifiable Map");
}
+
void operator []=(K key, V val) => _throwUnmodifiable();
V putIfAbsent(K key, V ifAbsent()) => _throwUnmodifiable();
V remove(K key) => _throwUnmodifiable();
@@ -64,7 +64,6 @@ abstract class ConstantMap<K, V> implements Map<K, V> {
}
class ConstantStringMap<K, V> extends ConstantMap<K, V> {
-
// This constructor is not used for actual compile-time constants.
// The instantiation of constant maps is shortcut by the compiler.
const ConstantStringMap._(this._length, this._jsObject, this._keys)
« no previous file with comments | « sdk/lib/_internal/js_runtime/lib/collection_patch.dart ('k') | sdk/lib/_internal/js_runtime/lib/convert_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698