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

Side by Side Diff: tests/lib/mirrors/declarations_model.dart

Issue 3006863002: Made helpers strong-mode clean for Dart 2.0 migration. (Closed)
Patch Set: Created 3 years, 3 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 | « no previous file | tests/lib/mirrors/declarations_model_easier.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 // 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 static get _inheritedStaticGetter => null; 86 static get _inheritedStaticGetter => null;
87 static set _inheritedStaticSetter(x) => x; 87 static set _inheritedStaticSetter(x) => x;
88 static _inheritedStaticMethod() => null; 88 static _inheritedStaticMethod() => null;
89 89
90 Superclass.inheritedGenerativeConstructor(this.inheritedInstanceVariable); 90 Superclass.inheritedGenerativeConstructor(this.inheritedInstanceVariable);
91 Superclass.inheritedRedirectingConstructor(x) 91 Superclass.inheritedRedirectingConstructor(x)
92 : this.inheritedGenerativeConstructor(x * 2); 92 : this.inheritedGenerativeConstructor(x * 2);
93 factory Superclass.inheritedNormalFactory(y) => 93 factory Superclass.inheritedNormalFactory(y) =>
94 new Superclass.inheritedRedirectingConstructor(y * 3); 94 new Superclass.inheritedRedirectingConstructor(y * 3);
95 factory Superclass.inheritedRedirectingFactory(z) = 95 factory Superclass.inheritedRedirectingFactory(z) =
96 Superclass.inheritedNormalFactory; 96 Superclass<S>.inheritedNormalFactory;
97 97
98 Superclass._inheritedGenerativeConstructor(this._inheritedInstanceVariable); 98 Superclass._inheritedGenerativeConstructor(this._inheritedInstanceVariable);
99 Superclass._inheritedRedirectingConstructor(x) 99 Superclass._inheritedRedirectingConstructor(x)
100 : this._inheritedGenerativeConstructor(x * 2); 100 : this._inheritedGenerativeConstructor(x * 2);
101 factory Superclass._inheritedNormalFactory(y) => 101 factory Superclass._inheritedNormalFactory(y) =>
102 new Superclass._inheritedRedirectingConstructor(y * 3); 102 new Superclass._inheritedRedirectingConstructor(y * 3);
103 factory Superclass._inheritedRedirectingFactory(z) = 103 factory Superclass._inheritedRedirectingFactory(z) =
104 Superclass._inheritedNormalFactory; 104 Superclass<S>._inheritedNormalFactory;
105 } 105 }
106 106
107 abstract class Class<C> extends Superclass<C> 107 abstract class Class<C> extends Superclass<C>
108 with Mixin<C> 108 with Mixin<C>
109 implements Interface<C> { 109 implements Interface<C> {
110 operator +(x) => null; 110 operator +(x) => null;
111 111
112 abstractMethod(); 112 abstractMethod();
113 113
114 var instanceVariable; 114 var instanceVariable;
(...skipping 13 matching lines...) Expand all
128 128
129 static var _staticVariable; 129 static var _staticVariable;
130 static get _staticGetter => null; 130 static get _staticGetter => null;
131 static set _staticSetter(x) => x; 131 static set _staticSetter(x) => x;
132 static _staticMethod() => null; 132 static _staticMethod() => null;
133 133
134 Class.generativeConstructor(this.instanceVariable) 134 Class.generativeConstructor(this.instanceVariable)
135 : super.inheritedGenerativeConstructor(0); 135 : super.inheritedGenerativeConstructor(0);
136 Class.redirectingConstructor(x) : this.generativeConstructor(x * 2); 136 Class.redirectingConstructor(x) : this.generativeConstructor(x * 2);
137 factory Class.normalFactory(y) => new ConcreteClass(y * 3); 137 factory Class.normalFactory(y) => new ConcreteClass(y * 3);
138 factory Class.redirectingFactory(z) = Class.normalFactory; 138 factory Class.redirectingFactory(z) = Class<C>.normalFactory;
139 139
140 Class._generativeConstructor(this._instanceVariable) 140 Class._generativeConstructor(this._instanceVariable)
141 : super._inheritedGenerativeConstructor(0); 141 : super._inheritedGenerativeConstructor(0);
142 Class._redirectingConstructor(x) : this._generativeConstructor(x * 2); 142 Class._redirectingConstructor(x) : this._generativeConstructor(x * 2);
143 factory Class._normalFactory(y) => new ConcreteClass(y * 3); 143 factory Class._normalFactory(y) => new ConcreteClass(y * 3);
144 factory Class._redirectingFactory(z) = Class._normalFactory; 144 factory Class._redirectingFactory(z) = Class<C>._normalFactory;
145 } 145 }
146 146
147 // This is just here as a target of Class's factories to appease the analyzer. 147 // This is just here as a target of Class's factories to appease the analyzer.
148 class ConcreteClass<CC> extends Class<CC> { 148 class ConcreteClass<CC> extends Class<CC> {
149 abstractMethod() {} 149 abstractMethod() {}
150 150
151 operator /(x) => null; 151 operator /(x) => null;
152 152
153 var interfaceInstanceVariable; 153 var interfaceInstanceVariable;
154 get interfaceInstanceGetter => null; 154 get interfaceInstanceGetter => null;
155 set interfaceInstanceSetter(x) => null; 155 set interfaceInstanceSetter(x) => null;
156 interfaceInstanceMethod() => null; 156 interfaceInstanceMethod() => null;
157 157
158 var _interfaceInstanceVariable; 158 var _interfaceInstanceVariable;
159 get _interfaceInstanceGetter => null; 159 get _interfaceInstanceGetter => null;
160 set _interfaceInstanceSetter(x) => null; 160 set _interfaceInstanceSetter(x) => null;
161 _interfaceInstanceMethod() => null; 161 _interfaceInstanceMethod() => null;
162 162
163 ConcreteClass(x) : super.generativeConstructor(x); 163 ConcreteClass(x) : super.generativeConstructor(x);
164 } 164 }
165 165
166 class _PrivateClass {} 166 class _PrivateClass {}
OLDNEW
« no previous file with comments | « no previous file | tests/lib/mirrors/declarations_model_easier.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698