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

Side by Side Diff: pkg/kernel/testcases/input/micro.dart

Issue 2747113004: Run dartfmt on kernel package (Closed)
Patch Set: 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
« no previous file with comments | « pkg/kernel/testcases/input/escape.dart ('k') | pkg/kernel/testcases/input/optional.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 staticMethod() { 1 staticMethod() {
2 return "sdfg"; 2 return "sdfg";
3 } 3 }
4 4
5 class Foo { 5 class Foo {
6 instanceMethod() { 6 instanceMethod() {
7 return 123; 7 return 123;
8 } 8 }
9 } 9 }
10 10
11 external bool externalStatic(); 11 external bool externalStatic();
12 12
13 abstract class ExternalValue {} 13 abstract class ExternalValue {}
14 14
15 abstract class Bar { 15 abstract class Bar {
16 ExternalValue externalInstanceMethod(); 16 ExternalValue externalInstanceMethod();
17 } 17 }
18 18
19 external Bar createBar(); 19 external Bar createBar();
20 20
21 class Box { 21 class Box {
22 var field; 22 var field;
23 } 23 }
24 24
25 stringArgument(x) { 25 stringArgument(x) {}
26 }
27 26
28 intArgument(x) { 27 intArgument(x) {}
29 }
30 28
31 class FinalBox { 29 class FinalBox {
32 final finalField; 30 final finalField;
33 FinalBox(this.finalField); 31 FinalBox(this.finalField);
34 } 32 }
35 33
36 class SubFinalBox extends FinalBox { 34 class SubFinalBox extends FinalBox {
37 SubFinalBox(value) : super(value); 35 SubFinalBox(value) : super(value);
38 } 36 }
39 37
40 class DynamicReceiver1 { 38 class DynamicReceiver1 {
41 dynamicallyCalled(x) {} 39 dynamicallyCalled(x) {}
42 } 40 }
41
43 class DynamicReceiver2 { 42 class DynamicReceiver2 {
44 dynamicallyCalled(x) {} 43 dynamicallyCalled(x) {}
45 } 44 }
46 45
47 void makeDynamicCall(receiver) { 46 void makeDynamicCall(receiver) {
48 receiver.dynamicallyCalled("sdfg"); 47 receiver.dynamicallyCalled("sdfg");
49 } 48 }
50 49
51 main() { 50 main() {
52 var x = staticMethod(); 51 var x = staticMethod();
(...skipping 13 matching lines...) Expand all
66 65
67 var subBox = new SubFinalBox("dfg"); 66 var subBox = new SubFinalBox("dfg");
68 var c = subBox.finalField; 67 var c = subBox.finalField;
69 68
70 makeDynamicCall(new DynamicReceiver1()); 69 makeDynamicCall(new DynamicReceiver1());
71 makeDynamicCall(new DynamicReceiver2()); 70 makeDynamicCall(new DynamicReceiver2());
72 71
73 var list = ["string"]; 72 var list = ["string"];
74 var d = list[0]; 73 var d = list[0];
75 } 74 }
OLDNEW
« no previous file with comments | « pkg/kernel/testcases/input/escape.dart ('k') | pkg/kernel/testcases/input/optional.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698