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

Unified Diff: tests/compiler/dart2js_extra/label_test.dart

Issue 2763823002: Move spaces from before comments to within comments (Closed)
Patch Set: Fix comments Created 3 years, 9 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
Index: tests/compiler/dart2js_extra/label_test.dart
diff --git a/tests/compiler/dart2js_extra/label_test.dart b/tests/compiler/dart2js_extra/label_test.dart
index cced47e8dccd25f5ab5de6eea1b465c753d27390..6decfd6a547ff28048471b2f04dff31aa8627480 100644
--- a/tests/compiler/dart2js_extra/label_test.dart
+++ b/tests/compiler/dart2js_extra/label_test.dart
@@ -4,49 +4,49 @@
// A break label must be declared where it's used.
undeclaredBreakLabel1() {
- foo: { break bar; break foo; } /// 01: compile-time error
+ foo: { break bar; break foo; } // /// 01: compile-time error
}
undeclaredBreakLabel2() {
- foo: while (true) { break bar; break foo; } /// 02: compile-time error
+ foo: while (true) { break bar; break foo; } // /// 02: compile-time error
}
// An unlabeled break must be inside a loop or switch.
noBreakTarget() {
- foo: if (true) { break; break foo; } /// 03: compile-time error
+ foo: if (true) { break; break foo; } // /// 03: compile-time error
}
// A continue label must be declared where it's used.
undeclaredContinueLabel() {
- foo: for (;;) { continue bar; break foo; } /// 04: compile-time error
+ foo: for (;;) { continue bar; break foo; } // /// 04: compile-time error
}
// An unlabeled continue must be inside a loop.
noContinueTarget() {
- foo: if (true) continue; else break foo; /// 05: compile-time error
+ foo: if (true) continue; else break foo; // /// 05: compile-time error
}
// A continue label must point to a continue-able statement.
wrongContinueLabel() {
- foo: if (true) continue foo; /// 06: compile-time error
+ foo: if (true) continue foo; // /// 06: compile-time error
}
// Labels are not captured by closures.
noncaptureLabel() {
- foo: { /// 07: compile-time error
- (() { break foo; })(); /// 07: continued
- break foo; /// 07: continued
- } /// 07: continued
+ foo: { // /// 07: compile-time error
+ (() { break foo; })(); // /// 07: continued
+ break foo; // /// 07: continued
+ } // /// 07: continued
}
// Implicit break targets are not captured by closures.
noncaptureBreak() {
- while(true) (() { break; })(); /// 08: compile-time error
+ while(true) (() { break; })(); // /// 08: compile-time error
}
// Implicit continue targets are not captured by closures.
noncaptureContinue() {
- while(true) (() { continue; })(); /// 09: compile-time error
+ while(true) (() { continue; })(); // /// 09: compile-time error
}
main() {

Powered by Google App Engine
This is Rietveld 408576698