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

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

Issue 3010753002: Added back declarations_model_easier.dart to lib and lib_strong mirrors tests to fix buildbot failu… (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_strong/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
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 library test.declarations_model;
6
7 var libraryVariable;
8 get libraryGetter => null;
9 set librarySetter(x) => x;
10 libraryMethod() => null;
11
12 typedef bool Predicate(dynamic);
13
14 abstract class Interface<I> {
15 operator /(x) => null;
16
17 var interfaceInstanceVariable;
18 get interfaceInstanceGetter;
19 set interfaceInstanceSetter(x);
20 interfaceInstanceMethod();
21
22 static var interfaceStaticVariable;
23 static get interfaceStaticGetter => null;
24 static set interfaceStaticSetter(x) => x;
25 static interfaceStaticMethod() => null;
26 }
27
28 class Superclass<S> {
29 operator -(x) => null;
30
31 var inheritedInstanceVariable;
32 get inheritedInstanceGetter => null;
33 set inheritedInstanceSetter(x) => x;
34 inheritedInstanceMethod() => null;
35
36 static var inheritedStaticVariable;
37 static get inheritedStaticGetter => null;
38 static set inheritedStaticSetter(x) => x;
39 static inheritedStaticMethod() => null;
40
41 Superclass.inheritedGenerativeConstructor(this.inheritedInstanceVariable);
42 Superclass.inheritedRedirectingConstructor(x)
43 : this.inheritedGenerativeConstructor(x * 2);
44 factory Superclass.inheritedNormalFactory(y) =>
45 new Superclass.inheritedRedirectingConstructor(y * 3);
46 factory Superclass.inheritedRedirectingFactory(z) =
47 Superclass.inheritedNormalFactory;
48 }
49
50 abstract class Class<C> extends Superclass<C> implements Interface<C> {
51 operator +(x) => null;
52
53 abstractMethod();
54
55 var instanceVariable;
56 get instanceGetter => null;
57 set instanceSetter(x) => x;
58 instanceMethod() => null;
59
60 static var staticVariable;
61 static get staticGetter => null;
62 static set staticSetter(x) => x;
63 static staticMethod() => null;
64
65 Class.generativeConstructor(this.instanceVariable)
66 : super.inheritedGenerativeConstructor(0);
67 Class.redirectingConstructor(x) : this.generativeConstructor(x * 2);
68 factory Class.normalFactory(y) => new ConcreteClass(y * 3);
69 factory Class.redirectingFactory(z) = Class.normalFactory;
70 }
71
72 // This is just here as a target of Class's factories to appease the analyzer.
73 class ConcreteClass<CC> extends Class<CC> {
74 abstractMethod() {}
75
76 operator /(x) => null;
77
78 var interfaceInstanceVariable;
79 get interfaceInstanceGetter => null;
80 set interfaceInstanceSetter(x) => null;
81 interfaceInstanceMethod() => null;
82
83 ConcreteClass(x) : super.generativeConstructor(x);
84 }
OLDNEW
« no previous file with comments | « no previous file | tests/lib_strong/mirrors/declarations_model_easier.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698