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

Unified Diff: corelib/src/map.dart

Issue 8989015: Updates the corelib to the new default specification for interfaces and new factory syntax (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years 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 | « corelib/src/list.dart ('k') | corelib/src/options.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: corelib/src/map.dart
diff --git a/corelib/src/map.dart b/corelib/src/map.dart
index 746a266dd042cfb6b2e28bb079ba94ce73db86b0..a1f200389a71a30bd31d378bfd2f146d07db63ab 100644
--- a/corelib/src/map.dart
+++ b/corelib/src/map.dart
@@ -6,9 +6,7 @@
* A [Map] is an associative container, mapping a key to a value.
* Null values are supported.
*/
-interface Map<K, V> factory HashMapImplementation/*<K extends Hashable, V>*/ {
-// See issue 417. Works in the vm, fails in dartc and frog.
-
+interface Map<K, V> default HashMapImplementation<K extends Hashable, V> {
/**
* Creates a map with the default implementation.
*/
@@ -95,9 +93,7 @@ interface Map<K, V> factory HashMapImplementation/*<K extends Hashable, V>*/ {
* and [getValues].
*/
interface HashMap<K extends Hashable, V> extends Map<K, V>
- factory HashMapImplementation {
-// See issue 417. Works in the vm, fails in dartc and frog.
-
+ default HashMapImplementation<K extends Hashable, V> {
/**
* Creates a map with the default implementation.
*/
@@ -114,9 +110,7 @@ interface HashMap<K extends Hashable, V> extends Map<K, V>
* order.
*/
interface LinkedHashMap<K extends Hashable, V> extends HashMap<K, V>
- factory LinkedHashMapImplementation {
-// See issue 417. Works in the vm, fails in dartc and frog.
-
+ default LinkedHashMapImplementation<K extends Hashable, V> {
/**
* Creates a map with the default implementation.
*/
« no previous file with comments | « corelib/src/list.dart ('k') | corelib/src/options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698