Index: packages/dart_style/test/regression/other/chains.stmt |
diff --git a/packages/dart_style/test/regression/other/chains.stmt b/packages/dart_style/test/regression/other/chains.stmt |
new file mode 100644 |
index 0000000000000000000000000000000000000000..85dc56c17f3866d991c4822021deca227fabc5d2 |
--- /dev/null |
+++ b/packages/dart_style/test/regression/other/chains.stmt |
@@ -0,0 +1,35 @@ |
+>>> (indent 2) |
+ document.onChange.listen(expectAsync((Delta delta) { |
+ observedDeltas.add(delta); |
+ if (++observedDeltaCount == 3) applyToNewDocument(); |
+ }, count: 3)); |
+<<< |
+ document.onChange.listen(expectAsync((Delta delta) { |
+ observedDeltas.add(delta); |
+ if (++observedDeltaCount == 3) applyToNewDocument(); |
+ }, count: 3)); |
+>>> (indent 4) |
+ return queryWith(fds, otype, whereClause, whereValues).toList() |
+ .catchError((ex, st) { |
+ _logger.warning( |
+ "Failed loadAllWith($fields, $whereClause, $whereValues)", ex, st); |
+ return new Future.error(ex, st); |
+ }).then((List<Row> rows) { |
+ ; |
+ }); |
+<<< |
+ return queryWith(fds, otype, whereClause, whereValues) |
+ .toList() |
+ .catchError((ex, st) { |
+ _logger.warning( |
+ "Failed loadAllWith($fields, $whereClause, $whereValues)", ex, st); |
+ return new Future.error(ex, st); |
+ }).then((List<Row> rows) { |
+ ; |
+ }); |
+>>> (indent 4) |
+ return _coll.update({"_id": doc["_id"]}, doc, upsert: true) |
+ .then((_) => doc); |
+<<< TODO(rnystrom): Should split before .then() but map literal splits chain. |
+ return _coll |
+ .update({"_id": doc["_id"]}, doc, upsert: true).then((_) => doc); |