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

Side by Side Diff: tests/lib_strong/mirrors/declarations_model_easier.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 library test.declarations_model; 5 library test.declarations_model;
6 6
7 var libraryVariable; 7 var libraryVariable;
8 get libraryGetter => null; 8 get libraryGetter => null;
9 set librarySetter(x) => x; 9 set librarySetter(x) => x;
10 libraryMethod() => null; 10 libraryMethod() => null;
(...skipping 22 matching lines...) Expand all
33 set inheritedInstanceSetter(x) => x; 33 set inheritedInstanceSetter(x) => x;
34 inheritedInstanceMethod() => null; 34 inheritedInstanceMethod() => null;
35 35
36 static var inheritedStaticVariable; 36 static var inheritedStaticVariable;
37 static get inheritedStaticGetter => null; 37 static get inheritedStaticGetter => null;
38 static set inheritedStaticSetter(x) => x; 38 static set inheritedStaticSetter(x) => x;
39 static inheritedStaticMethod() => null; 39 static inheritedStaticMethod() => null;
40 40
41 Superclass.inheritedGenerativeConstructor(this.inheritedInstanceVariable); 41 Superclass.inheritedGenerativeConstructor(this.inheritedInstanceVariable);
42 Superclass.inheritedRedirectingConstructor(x) 42 Superclass.inheritedRedirectingConstructor(x)
43 : this.inheritedGenerativeConstructor(x*2); 43 : this.inheritedGenerativeConstructor(x * 2);
44 factory Superclass.inheritedNormalFactory(y) 44 factory Superclass.inheritedNormalFactory(y) =>
45 => new Superclass.inheritedRedirectingConstructor(y*3); 45 new Superclass.inheritedRedirectingConstructor(y * 3);
46 factory Superclass.inheritedRedirectingFactory(z) 46 factory Superclass.inheritedRedirectingFactory(z) =
47 = Superclass.inheritedNormalFactory; 47 Superclass.inheritedNormalFactory;
48 } 48 }
49 49
50 abstract class Class<C> 50 abstract class Class<C> extends Superclass<C> implements Interface<C> {
51 extends Superclass<C> implements Interface<C> {
52 operator +(x) => null; 51 operator +(x) => null;
53 52
54 abstractMethod(); 53 abstractMethod();
55 54
56 var instanceVariable; 55 var instanceVariable;
57 get instanceGetter => null; 56 get instanceGetter => null;
58 set instanceSetter(x) => x; 57 set instanceSetter(x) => x;
59 instanceMethod() => null; 58 instanceMethod() => null;
60 59
61 static var staticVariable; 60 static var staticVariable;
62 static get staticGetter => null; 61 static get staticGetter => null;
63 static set staticSetter(x) => x; 62 static set staticSetter(x) => x;
64 static staticMethod() => null; 63 static staticMethod() => null;
65 64
66 Class.generativeConstructor(this.instanceVariable) 65 Class.generativeConstructor(this.instanceVariable)
67 : super.inheritedGenerativeConstructor(0); 66 : super.inheritedGenerativeConstructor(0);
68 Class.redirectingConstructor(x) 67 Class.redirectingConstructor(x) : this.generativeConstructor(x * 2);
69 : this.generativeConstructor(x*2); 68 factory Class.normalFactory(y) => new ConcreteClass(y * 3);
70 factory Class.normalFactory(y) => new ConcreteClass(y*3);
71 factory Class.redirectingFactory(z) = Class.normalFactory; 69 factory Class.redirectingFactory(z) = Class.normalFactory;
72 } 70 }
73 71
74 // This is just here as a target of Class's factories to appease the analyzer. 72 // This is just here as a target of Class's factories to appease the analyzer.
75 class ConcreteClass<CC> extends Class<CC> { 73 class ConcreteClass<CC> extends Class<CC> {
76 abstractMethod() {} 74 abstractMethod() {}
77 75
78 operator /(x) => null; 76 operator /(x) => null;
79 77
80 var interfaceInstanceVariable; 78 var interfaceInstanceVariable;
81 get interfaceInstanceGetter => null; 79 get interfaceInstanceGetter => null;
82 set interfaceInstanceSetter(x) => null; 80 set interfaceInstanceSetter(x) => null;
83 interfaceInstanceMethod() => null; 81 interfaceInstanceMethod() => null;
84 82
85 ConcreteClass(x) : super.generativeConstructor(x); 83 ConcreteClass(x) : super.generativeConstructor(x);
86 } 84 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698