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

Unified Diff: lib/html/templates/html/impl/impl_Storage.darttemplate

Issue 11267018: Make getKeys, getValues getters (keys, values). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status files with co19 issue number. Created 8 years, 2 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
« no previous file with comments | « lib/html/templates/html/impl/impl_Element.darttemplate ('k') | pkg/args/lib/args.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/templates/html/impl/impl_Storage.darttemplate
diff --git a/lib/html/templates/html/impl/impl_Storage.darttemplate b/lib/html/templates/html/impl/impl_Storage.darttemplate
index 67f370bc7bd329349aee60b4a9a0698e4fa09282..38c83f2bbb4b9c87bd93d21d0228078ed9a39434 100644
--- a/lib/html/templates/html/impl/impl_Storage.darttemplate
+++ b/lib/html/templates/html/impl/impl_Storage.darttemplate
@@ -5,7 +5,7 @@
class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
// TODO(nweiz): update this when maps support lazy iteration
- bool containsValue(String value) => getValues().some((e) => e == value);
+ bool containsValue(String value) => values.some((e) => e == value);
bool containsKey(String key) => $dom_getItem(key) != null;
@@ -35,13 +35,13 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
}
}
- Collection<String> getKeys() {
+ Collection<String> get keys {
final keys = [];
forEach((k, v) => keys.add(k));
return keys;
}
- Collection<String> getValues() {
+ Collection<String> get values {
final values = [];
forEach((k, v) => values.add(v));
return values;
« no previous file with comments | « lib/html/templates/html/impl/impl_Element.darttemplate ('k') | pkg/args/lib/args.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698