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

Unified Diff: test/whitespace/for.stmt

Issue 815423003: Don't put spaces in empty for loop clauses. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Created 5 years, 11 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 | « test/regression/132.stmt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/whitespace/for.stmt
diff --git a/test/whitespace/for.stmt b/test/whitespace/for.stmt
index 9241c6b8be133e5244730644810d900f58c740eb..1f15e107799fa7760f546680465777d0f8ef6126 100644
--- a/test/whitespace/for.stmt
+++ b/test/whitespace/for.stmt
@@ -7,10 +7,14 @@ for (var i = 0;i<100;i++) {
for (var i = 0; i < 100; i++) {
print(i);
}
->>> empty clauses TODO(rnystrom): Is this what we want?
+>>> empty clauses
for(;;);
<<<
-for ( ; ; );
+for (;;);
+>>> empty initializer clause
+for ( ; foo; bar) {}
+<<<
+for (; foo; bar) {}
>>> whitespace
for (var file in files ) {
print(file);
« no previous file with comments | « test/regression/132.stmt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698