Index: utils/pub/yaml/visitor.dart |
diff --git a/utils/pub/yaml/visitor.dart b/utils/pub/yaml/visitor.dart |
index 1d6282ae9c638713312659dc295f3c328ef0337c..b5c14c9490d073a08556763e591c0d8294eac4ec 100644 |
--- a/utils/pub/yaml/visitor.dart |
+++ b/utils/pub/yaml/visitor.dart |
@@ -13,7 +13,8 @@ class _Visitor { |
visitScalar(_ScalarNode scalar) => scalar; |
/// Visits each node in [seq] and returns a list of the results. |
- visitSequence(_SequenceNode seq) => seq.content.map((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) { |