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

Side by Side Diff: tests/language_2/cascade_precedence_test.dart

Issue 2996533003: Migrate language block 46 - canonical_const ... char_escape. (Closed)
Patch Set: Created 3 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 6
7 class A { 7 class A {
8 int value; 8 int value;
9 A(this.value); 9 A(this.value);
10 void set(int value) { 10 void set(int value) {
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 Expect.equals(box.value, b); 174 Expect.equals(box.value, b);
175 175
176 // New cascades are allowed inside an expressionWithoutCascade if properly 176 // New cascades are allowed inside an expressionWithoutCascade if properly
177 // delimited. 177 // delimited.
178 box 178 box
179 ..x = (a 179 ..x = (a
180 ..set(42) 180 ..set(42)
181 ..test(42)) 181 ..test(42))
182 ..x.test(42); 182 ..x.test(42);
183 } 183 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698