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

Unified Diff: runtime/lib/core_patch.dart

Issue 752123003: Support enum keys in maps in messages. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 1 month 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 | « no previous file | runtime/vm/parser.cc » ('j') | tests/isolate/message_enum_test.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/core_patch.dart
===================================================================
--- runtime/lib/core_patch.dart (revision 41925)
+++ runtime/lib/core_patch.dart (working copy)
@@ -20,4 +20,5 @@
// below can access it because it uses the same name suffix.
static const List<String> _enum_names = null;
String toString() => _enum_names[index];
+ int get hashCode => _enum_names[index].hashCode;
}
« no previous file with comments | « no previous file | runtime/vm/parser.cc » ('j') | tests/isolate/message_enum_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698