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

Unified Diff: utils/pub/pubspec.dart

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 | « utils/pub/pub.dart ('k') | utils/pub/version_solver.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/pubspec.dart
diff --git a/utils/pub/pubspec.dart b/utils/pub/pubspec.dart
index b796a83f07b5cbb19be432c35fb3e01598156b72..62a4dc56443ac7c89e9abf88a3ba05644ab7ee13 100644
--- a/utils/pub/pubspec.dart
+++ b/utils/pub/pubspec.dart
@@ -74,7 +74,7 @@ class Pubspec {
if (parsedPubspec.containsKey('dependencies')) {
var dependencyEntries = parsedPubspec['dependencies'];
if (dependencyEntries is! Map ||
- dependencyEntries.getKeys().some((e) => e is! String)) {
+ dependencyEntries.keys.some((e) => e is! String)) {
throw new FormatException(
'The pubspec dependencies should be a map of package names, but '
'was ${dependencyEntries}.');
@@ -96,7 +96,7 @@ class Pubspec {
spec.remove('version'));
}
- var sourceNames = spec.getKeys();
+ var sourceNames = spec.keys;
if (sourceNames.length > 1) {
throw new FormatException(
'Dependency $name may only have one source: $sourceNames.');
« no previous file with comments | « utils/pub/pub.dart ('k') | utils/pub/version_solver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698