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

Unified Diff: utils/pub/yaml/visitor.dart

Issue 11414069: Make mappedBy lazy. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Reupload due to error. Created 8 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
Index: utils/pub/yaml/visitor.dart
diff --git a/utils/pub/yaml/visitor.dart b/utils/pub/yaml/visitor.dart
index 96eed59d522a64204af872098265a3545d74da2f..d504a62f8524b5aa74bf739bd667e582b430c57f 100644
--- a/utils/pub/yaml/visitor.dart
+++ b/utils/pub/yaml/visitor.dart
@@ -11,7 +11,8 @@ class _Visitor {
visitScalar(_ScalarNode scalar) => scalar;
/** Visits each node in [seq] and returns a list of the results. */
- visitSequence(_SequenceNode seq) => seq.content.mappedBy((e) => e.visit(this));
+ visitSequence(_SequenceNode seq)
+ => seq.content.mappedBy((e) => e.visit(this)).toList();
/** Visits each key and value in [map] and returns a map of the results. */
visitMapping(_MappingNode map) {

Powered by Google App Engine
This is Rietveld 408576698