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

Side by Side Diff: tests/lib/mirrors/declarations_model_easier.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 | « tests/lib/mirrors/declarations_model.dart ('k') | tests/lib_2/mirrors/declarations_model.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 26 matching lines...) Expand all
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<S>.inheritedNormalFactory;
48 } 48 }
49 49
50 abstract class Class<C> extends Superclass<C> implements Interface<C> { 50 abstract class Class<C> extends Superclass<C> implements Interface<C> {
51 operator +(x) => null; 51 operator +(x) => null;
52 52
53 abstractMethod(); 53 abstractMethod();
54 54
55 var instanceVariable; 55 var instanceVariable;
56 get instanceGetter => null; 56 get instanceGetter => null;
57 set instanceSetter(x) => x; 57 set instanceSetter(x) => x;
58 instanceMethod() => null; 58 instanceMethod() => null;
59 59
60 static var staticVariable; 60 static var staticVariable;
61 static get staticGetter => null; 61 static get staticGetter => null;
62 static set staticSetter(x) => x; 62 static set staticSetter(x) => x;
63 static staticMethod() => null; 63 static staticMethod() => null;
64 64
65 Class.generativeConstructor(this.instanceVariable) 65 Class.generativeConstructor(this.instanceVariable)
66 : super.inheritedGenerativeConstructor(0); 66 : super.inheritedGenerativeConstructor(0);
67 Class.redirectingConstructor(x) : this.generativeConstructor(x * 2); 67 Class.redirectingConstructor(x) : this.generativeConstructor(x * 2);
68 factory Class.normalFactory(y) => new ConcreteClass(y * 3); 68 factory Class.normalFactory(y) => new ConcreteClass(y * 3);
69 factory Class.redirectingFactory(z) = Class.normalFactory; 69 factory Class.redirectingFactory(z) = Class<C>.normalFactory;
70 } 70 }
71 71
72 // 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.
73 class ConcreteClass<CC> extends Class<CC> { 73 class ConcreteClass<CC> extends Class<CC> {
74 abstractMethod() {} 74 abstractMethod() {}
75 75
76 operator /(x) => null; 76 operator /(x) => null;
77 77
78 var interfaceInstanceVariable; 78 var interfaceInstanceVariable;
79 get interfaceInstanceGetter => null; 79 get interfaceInstanceGetter => null;
80 set interfaceInstanceSetter(x) => null; 80 set interfaceInstanceSetter(x) => null;
81 interfaceInstanceMethod() => null; 81 interfaceInstanceMethod() => null;
82 82
83 ConcreteClass(x) : super.generativeConstructor(x); 83 ConcreteClass(x) : super.generativeConstructor(x);
84 } 84 }
OLDNEW
« no previous file with comments | « tests/lib/mirrors/declarations_model.dart ('k') | tests/lib_2/mirrors/declarations_model.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698