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

Side by Side Diff: tests/language_strong/external_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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 class Bar { 5 class Bar {
6 Bar(val); 6 Bar(val);
7 } 7 }
8 8
9 class Foo { 9 class Foo {
10 var x; 10 var x;
11 f() {} 11 f() {}
12 12
13 Foo() : x = 0; 13 Foo() : x = 0;
14 14
15 external var x01; /// 01: compile-time error 15 external var x01; // /// 01: compile-time error
16 external int x02; /// 02: compile-time error 16 external int x02; // /// 02: compile-time error
17 17
18 external f10(); /// 10: runtime error 18 external f10(); // /// 10: runtime error
19 external f11() { } /// 11: compile-time error 19 external f11() { } // /// 11: compile-time error
20 external f12() => 1; /// 12: compile-time error 20 external f12() => 1; // /// 12: compile-time error
21 external static f13(); /// 13: runtime error 21 external static f13(); // /// 13: runtime error
22 static external f14(); /// 14: compile-time error 22 static external f14(); // /// 14: compile-time error
23 int external f16(); /// 16: compile-time error 23 int external f16(); // /// 16: compile-time error
24 24
25 external Foo.n20(val); /// 20: runtime error 25 external Foo.n20(val); // /// 20: runtime error
26 external Foo.n21(val) : x = 1; /// 21: compile-time error 26 external Foo.n21(val) : x = 1; // /// 21: compile-time error
27 external Foo.n22(val) { x = 1; } /// 22: compile-time error 27 external Foo.n22(val) { x = 1; } // /// 22: compile-time error
28 external factory Foo.n23(val) => new Foo(); /// 23: compile-time error 28 external factory Foo.n23(val) => new Foo(); // /// 23: compile-time error
29 external Foo.n24(this.x); /// 24: compile-time error 29 external Foo.n24(this.x); // /// 24: compile-time error
30 external factory Foo.n25(val) = Bar; /// 25: compile-time error 30 external factory Foo.n25(val) = Bar; // /// 25: compile-time error
31 } 31 }
32 32
33 external int t06(int i) { } /// 30: compile-time error 33 external int t06(int i) { } // /// 30: compile-time error
34 external int t07(int i) => i + 1; /// 31: compile-time error 34 external int t07(int i) => i + 1; // /// 31: compile-time error
35 35
36 main() { 36 main() {
37 37
38 // Ensure Foo class is compiled. 38 // Ensure Foo class is compiled.
39 var foo = new Foo(); 39 var foo = new Foo();
40 40
41 // Try calling an unpatched external function. 41 // Try calling an unpatched external function.
42 new Foo().f10(); /// 10: continued 42 new Foo().f10(); // /// 10: continued
43 new Foo().f11(); /// 11: continued 43 new Foo().f11(); // /// 11: continued
44 new Foo().f12(); /// 12: continued 44 new Foo().f12(); // /// 12: continued
45 Foo.f13(); /// 13: continued 45 Foo.f13(); // /// 13: continued
46 Foo.f14(); /// 14: continued 46 Foo.f14(); // /// 14: continued
47 new Foo().f16(); /// 16: continued 47 new Foo().f16(); // /// 16: continued
48 48
49 // Try calling an unpatched external constructor. 49 // Try calling an unpatched external constructor.
50 new Foo.n20(1); /// 20: continued 50 new Foo.n20(1); // /// 20: continued
51 new Foo.n21(1); /// 21: continued 51 new Foo.n21(1); // /// 21: continued
52 new Foo.n22(1); /// 22: continued 52 new Foo.n22(1); // /// 22: continued
53 new Foo.n23(1); /// 23: continued 53 new Foo.n23(1); // /// 23: continued
54 new Foo.n24(1); /// 24: continued 54 new Foo.n24(1); // /// 24: continued
55 new Foo.n25(1); /// 25: continued 55 new Foo.n25(1); // /// 25: continued
56 56
57 t06(1); /// 30: continued 57 t06(1); // /// 30: continued
58 t07(1); /// 31: continued 58 t07(1); // /// 31: continued
59 } 59 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698