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

Unified Diff: test/regression/100.stmt

Issue 824763004: Allow splitting in clauses in C-style for loop. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Created 6 years 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/src/source_visitor.dart ('k') | test/splitting/loops.stmt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/regression/100.stmt
diff --git a/test/regression/100.stmt b/test/regression/100.stmt
new file mode 100644
index 0000000000000000000000000000000000000000..8c7d93fe27e8b30aabdef30f72f205d1b4c923c6
--- /dev/null
+++ b/test/regression/100.stmt
@@ -0,0 +1,14 @@
+>>> (indent 2)
+ void incrementalAdd(Constraint c) {
+ int mark = newMark();
+ for (Constraint overridden = c.satisfy(mark);
+ overridden != null;
+ overridden = overridden.satisfy(mark));
+ }
+<<<
+ void incrementalAdd(Constraint c) {
+ int mark = newMark();
+ for (Constraint overridden = c.satisfy(mark);
+ overridden != null;
+ overridden = overridden.satisfy(mark));
+ }
« no previous file with comments | « lib/src/source_visitor.dart ('k') | test/splitting/loops.stmt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698