OLD | NEW |
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_test; | 5 library test.declarations_test; |
6 | 6 |
7 import 'dart:mirrors'; | 7 import 'dart:mirrors'; |
8 import 'package:expect/expect.dart'; | 8 import 'package:expect/expect.dart'; |
9 | 9 |
10 import 'stringify.dart'; | 10 import 'stringify.dart'; |
11 import 'declarations_model.dart' as declarations_model; | 11 import 'declarations_model.dart' as declarations_model; |
12 | 12 |
13 Set<DeclarationMirror> inheritedDeclarations(ClassMirror cm) { | 13 Set<DeclarationMirror> inheritedDeclarations(ClassMirror cm) { |
14 var decls = new Set<DeclarationMirror>(); | 14 var decls = new Set<DeclarationMirror>(); |
15 while (cm != null) { | 15 while (cm != null) { |
16 decls.addAll(cm.declarations.values); | 16 decls.addAll(cm.declarations.values); |
17 cm = cm.superclass; | 17 cm = cm.superclass; |
18 } | 18 } |
19 return decls; | 19 return decls; |
20 } | 20 } |
21 | 21 |
22 main() { | 22 main() { |
23 ClassMirror cm = reflectClass(declarations_model.Class); | 23 ClassMirror cm = reflectClass(declarations_model.Class); |
24 | 24 |
25 Expect.setEquals( | 25 Expect.setEquals([ |
26 ['Variable(s(_instanceVariable) in s(Class), private)', | 26 'Variable(s(_instanceVariable) in s(Class), private)', |
27 'Variable(s(_staticVariable) in s(Class), private, static)', | 27 'Variable(s(_staticVariable) in s(Class), private, static)', |
28 'Variable(s(instanceVariable) in s(Class))', | 28 'Variable(s(instanceVariable) in s(Class))', |
29 'Variable(s(staticVariable) in s(Class), static)'], | 29 'Variable(s(staticVariable) in s(Class), static)' |
30 cm.declarations.values | 30 ], cm.declarations.values.where((dm) => dm is VariableMirror).map(stringify), |
31 .where((dm) => dm is VariableMirror).map(stringify), | 31 'variables'); |
32 'variables'); | |
33 | 32 |
34 Expect.setEquals( | 33 Expect.setEquals( |
35 ['Method(s(_instanceGetter) in s(Class), private, getter)', | 34 [ |
36 'Method(s(_staticGetter) in s(Class), private, static, getter)', | 35 'Method(s(_instanceGetter) in s(Class), private, getter)', |
37 'Method(s(instanceGetter) in s(Class), getter)', | 36 'Method(s(_staticGetter) in s(Class), private, static, getter)', |
38 'Method(s(staticGetter) in s(Class), static, getter)'], | 37 'Method(s(instanceGetter) in s(Class), getter)', |
39 cm.declarations.values | 38 'Method(s(staticGetter) in s(Class), static, getter)' |
40 .where((dm) => dm is MethodMirror && dm.isGetter).map(stringify), | 39 ], |
41 'getters'); | 40 cm.declarations.values |
| 41 .where((dm) => dm is MethodMirror && dm.isGetter) |
| 42 .map(stringify), |
| 43 'getters'); |
42 | 44 |
43 Expect.setEquals( | 45 Expect.setEquals( |
44 ['Method(s(_instanceSetter=) in s(Class), private, setter)', | 46 [ |
45 'Method(s(_staticSetter=) in s(Class), private, static, setter)', | 47 'Method(s(_instanceSetter=) in s(Class), private, setter)', |
46 'Method(s(instanceSetter=) in s(Class), setter)', | 48 'Method(s(_staticSetter=) in s(Class), private, static, setter)', |
47 'Method(s(staticSetter=) in s(Class), static, setter)'], | 49 'Method(s(instanceSetter=) in s(Class), setter)', |
48 cm.declarations.values | 50 'Method(s(staticSetter=) in s(Class), static, setter)' |
49 .where((dm) => dm is MethodMirror && dm.isSetter).map(stringify), | 51 ], |
50 'setters'); | 52 cm.declarations.values |
| 53 .where((dm) => dm is MethodMirror && dm.isSetter) |
| 54 .map(stringify), |
| 55 'setters'); |
51 | 56 |
52 // dart2js stops testing here. | 57 // dart2js stops testing here. |
53 return; // //# 01: ok | 58 return; // //# 01: ok |
54 | 59 |
55 Expect.setEquals( | 60 Expect.setEquals( |
56 ['Method(s(+) in s(Class))', | 61 [ |
57 'Method(s(_instanceMethod) in s(Class), private)', | 62 'Method(s(+) in s(Class))', |
58 'Method(s(_staticMethod) in s(Class), private, static)', | 63 'Method(s(_instanceMethod) in s(Class), private)', |
59 'Method(s(abstractMethod) in s(Class), abstract)', | 64 'Method(s(_staticMethod) in s(Class), private, static)', |
60 'Method(s(instanceMethod) in s(Class))', | 65 'Method(s(abstractMethod) in s(Class), abstract)', |
61 'Method(s(staticMethod) in s(Class), static)'], | 66 'Method(s(instanceMethod) in s(Class))', |
62 cm.declarations.values | 67 'Method(s(staticMethod) in s(Class), static)' |
63 .where((dm) => dm is MethodMirror && dm.isRegularMethod).map(stringify), | 68 ], |
64 'regular methods'); | 69 cm.declarations.values |
| 70 .where((dm) => dm is MethodMirror && dm.isRegularMethod) |
| 71 .map(stringify), |
| 72 'regular methods'); |
65 | 73 |
66 Expect.setEquals( | 74 Expect.setEquals( |
67 ['Method(s(Class._generativeConstructor) in s(Class), private, constructor)', | 75 [ |
| 76 'Method(s(Class._generativeConstructor) in s(Class), private, constructo
r)', |
| 77 'Method(s(Class._normalFactory) in s(Class), private, static, constructo
r)', |
| 78 'Method(s(Class._redirectingConstructor)' |
| 79 ' in s(Class), private, constructor)', |
| 80 'Method(s(Class._redirectingFactory)' |
| 81 ' in s(Class), private, static, constructor)', |
| 82 'Method(s(Class.generativeConstructor) in s(Class), constructor)', |
| 83 'Method(s(Class.normalFactory) in s(Class), static, constructor)', |
| 84 'Method(s(Class.redirectingConstructor) in s(Class), constructor)', |
| 85 'Method(s(Class.redirectingFactory) in s(Class), static, constructor)' |
| 86 ], |
| 87 cm.declarations.values |
| 88 .where((dm) => dm is MethodMirror && dm.isConstructor) |
| 89 .map(stringify), |
| 90 'constructors and factories'); |
| 91 |
| 92 Expect.setEquals([ |
68 'Method(s(Class._normalFactory) in s(Class), private, static, constructor)', | 93 'Method(s(Class._normalFactory) in s(Class), private, static, constructor)', |
69 'Method(s(Class._redirectingConstructor)' | |
70 ' in s(Class), private, constructor)', | |
71 'Method(s(Class._redirectingFactory)' | |
72 ' in s(Class), private, static, constructor)', | |
73 'Method(s(Class.generativeConstructor) in s(Class), constructor)', | |
74 'Method(s(Class.normalFactory) in s(Class), static, constructor)', | |
75 'Method(s(Class.redirectingConstructor) in s(Class), constructor)', | |
76 'Method(s(Class.redirectingFactory) in s(Class), static, constructor)'], | |
77 cm.declarations.values | |
78 .where((dm) => dm is MethodMirror && dm.isConstructor).map(stringify), | |
79 'constructors and factories'); | |
80 | |
81 Expect.setEquals( | |
82 ['Method(s(Class._normalFactory) in s(Class), private, static, constructor)', | |
83 'Method(s(Class._redirectingFactory)' | 94 'Method(s(Class._redirectingFactory)' |
84 ' in s(Class), private, static, constructor)', | 95 ' in s(Class), private, static, constructor)', |
85 'Method(s(Class.normalFactory) in s(Class), static, constructor)', | 96 'Method(s(Class.normalFactory) in s(Class), static, constructor)', |
86 'Method(s(Class.redirectingFactory) in s(Class), static, constructor)', | 97 'Method(s(Class.redirectingFactory) in s(Class), static, constructor)', |
87 'Method(s(_staticGetter) in s(Class), private, static, getter)', | 98 'Method(s(_staticGetter) in s(Class), private, static, getter)', |
88 'Method(s(_staticMethod) in s(Class), private, static)', | 99 'Method(s(_staticMethod) in s(Class), private, static)', |
89 'Method(s(_staticSetter=) in s(Class), private, static, setter)', | 100 'Method(s(_staticSetter=) in s(Class), private, static, setter)', |
90 'Variable(s(_staticVariable) in s(Class), private, static)', | 101 'Variable(s(_staticVariable) in s(Class), private, static)', |
91 'Method(s(staticGetter) in s(Class), static, getter)', | 102 'Method(s(staticGetter) in s(Class), static, getter)', |
92 'Method(s(staticMethod) in s(Class), static)', | 103 'Method(s(staticMethod) in s(Class), static)', |
93 'Method(s(staticSetter=) in s(Class), static, setter)', | 104 'Method(s(staticSetter=) in s(Class), static, setter)', |
94 'Variable(s(staticVariable) in s(Class), static)'], | 105 'Variable(s(staticVariable) in s(Class), static)' |
95 cm.declarations.values.where((dm) => dm.isStatic).map(stringify), | 106 ], cm.declarations.values.where((dm) => dm.isStatic).map(stringify), |
96 'statics'); | 107 'statics'); |
97 | 108 |
98 Expect.setEquals( | 109 Expect.setEquals([ |
99 ['Method(s(+) in s(Class))', | 110 'Method(s(+) in s(Class))', |
100 'TypeVariable(s(C) in s(Class),' | 111 'TypeVariable(s(C) in s(Class),' |
101 ' upperBound = Class(s(Object) in s(dart.core), top-level))', | 112 ' upperBound = Class(s(Object) in s(dart.core), top-level))', |
102 'Method(s(Class._generativeConstructor) in s(Class), private, constructor)', | 113 'Method(s(Class._generativeConstructor) in s(Class), private, constructor)', |
103 'Method(s(Class._redirectingConstructor)' | 114 'Method(s(Class._redirectingConstructor)' |
104 ' in s(Class), private, constructor)', | 115 ' in s(Class), private, constructor)', |
105 'Method(s(Class.generativeConstructor) in s(Class), constructor)', | 116 'Method(s(Class.generativeConstructor) in s(Class), constructor)', |
106 'Method(s(Class.redirectingConstructor) in s(Class), constructor)', | 117 'Method(s(Class.redirectingConstructor) in s(Class), constructor)', |
107 'Method(s(_instanceGetter) in s(Class), private, getter)', | 118 'Method(s(_instanceGetter) in s(Class), private, getter)', |
108 'Method(s(_instanceMethod) in s(Class), private)', | 119 'Method(s(_instanceMethod) in s(Class), private)', |
109 'Method(s(_instanceSetter=) in s(Class), private, setter)', | 120 'Method(s(_instanceSetter=) in s(Class), private, setter)', |
110 'Variable(s(_instanceVariable) in s(Class), private)', | 121 'Variable(s(_instanceVariable) in s(Class), private)', |
111 'Method(s(abstractMethod) in s(Class), abstract)', | 122 'Method(s(abstractMethod) in s(Class), abstract)', |
112 'Method(s(instanceGetter) in s(Class), getter)', | 123 'Method(s(instanceGetter) in s(Class), getter)', |
113 'Method(s(instanceMethod) in s(Class))', | 124 'Method(s(instanceMethod) in s(Class))', |
114 'Method(s(instanceSetter=) in s(Class), setter)', | 125 'Method(s(instanceSetter=) in s(Class), setter)', |
115 'Variable(s(instanceVariable) in s(Class))'], | 126 'Variable(s(instanceVariable) in s(Class))' |
116 cm.declarations.values.where((dm) => !dm.isStatic).map(stringify), | 127 ], cm.declarations.values.where((dm) => !dm.isStatic).map(stringify), |
117 'non-statics'); | 128 'non-statics'); |
118 | 129 |
119 Expect.setEquals( | 130 Expect.setEquals([ |
120 ['Method(s(+) in s(Class))', | 131 'Method(s(+) in s(Class))', |
121 'TypeVariable(s(C) in s(Class),' | 132 'TypeVariable(s(C) in s(Class),' |
122 ' upperBound = Class(s(Object) in s(dart.core), top-level))', | 133 ' upperBound = Class(s(Object) in s(dart.core), top-level))', |
123 'Method(s(Class.generativeConstructor) in s(Class), constructor)', | 134 'Method(s(Class.generativeConstructor) in s(Class), constructor)', |
124 'Method(s(Class.normalFactory) in s(Class), static, constructor)', | 135 'Method(s(Class.normalFactory) in s(Class), static, constructor)', |
125 'Method(s(Class.redirectingConstructor) in s(Class), constructor)', | 136 'Method(s(Class.redirectingConstructor) in s(Class), constructor)', |
126 'Method(s(Class.redirectingFactory) in s(Class), static, constructor)', | 137 'Method(s(Class.redirectingFactory) in s(Class), static, constructor)', |
127 'Method(s(abstractMethod) in s(Class), abstract)', | 138 'Method(s(abstractMethod) in s(Class), abstract)', |
128 'Method(s(instanceGetter) in s(Class), getter)', | 139 'Method(s(instanceGetter) in s(Class), getter)', |
129 'Method(s(instanceMethod) in s(Class))', | 140 'Method(s(instanceMethod) in s(Class))', |
130 'Method(s(instanceSetter=) in s(Class), setter)', | 141 'Method(s(instanceSetter=) in s(Class), setter)', |
131 'Variable(s(instanceVariable) in s(Class))', | 142 'Variable(s(instanceVariable) in s(Class))', |
132 'Method(s(staticGetter) in s(Class), static, getter)', | 143 'Method(s(staticGetter) in s(Class), static, getter)', |
133 'Method(s(staticMethod) in s(Class), static)', | 144 'Method(s(staticMethod) in s(Class), static)', |
134 'Method(s(staticSetter=) in s(Class), static, setter)', | 145 'Method(s(staticSetter=) in s(Class), static, setter)', |
135 'Variable(s(staticVariable) in s(Class), static)'], | 146 'Variable(s(staticVariable) in s(Class), static)' |
136 cm.declarations.values.where((dm) => !dm.isPrivate).map(stringify), | 147 ], cm.declarations.values.where((dm) => !dm.isPrivate).map(stringify), |
137 'public'); | 148 'public'); |
138 | 149 |
139 Expect.setEquals( | 150 Expect.setEquals([ |
140 ['Method(s(*) in s(Mixin))', | 151 'Method(s(*) in s(Mixin))', |
141 'Method(s(+) in s(Class))', | 152 'Method(s(+) in s(Class))', |
142 'Method(s(-) in s(Superclass))', | 153 'Method(s(-) in s(Superclass))', |
143 'Method(s(==) in s(Object))', | 154 'Method(s(==) in s(Object))', |
144 'TypeVariable(s(C) in s(Class),' | 155 'TypeVariable(s(C) in s(Class),' |
145 ' upperBound = Class(s(Object) in s(dart.core), top-level))', | 156 ' upperBound = Class(s(Object) in s(dart.core), top-level))', |
146 'Method(s(Class.generativeConstructor) in s(Class), constructor)', | 157 'Method(s(Class.generativeConstructor) in s(Class), constructor)', |
147 'Method(s(Class.normalFactory) in s(Class), static, constructor)', | 158 'Method(s(Class.normalFactory) in s(Class), static, constructor)', |
148 'Method(s(Class.redirectingConstructor) in s(Class), constructor)', | 159 'Method(s(Class.redirectingConstructor) in s(Class), constructor)', |
149 'Method(s(Class.redirectingFactory) in s(Class), static, constructor)', | 160 'Method(s(Class.redirectingFactory) in s(Class), static, constructor)', |
150 'Method(s(Object) in s(Object), constructor)', | 161 'Method(s(Object) in s(Object), constructor)', |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 ' in s(test.declarations_model.Superclass' | 198 ' in s(test.declarations_model.Superclass' |
188 ' with test.declarations_model.Mixin), constructor)', | 199 ' with test.declarations_model.Mixin), constructor)', |
189 'Method(s(test.declarations_model.Superclass' | 200 'Method(s(test.declarations_model.Superclass' |
190 ' with test.declarations_model.Mixin.inheritedRedirectingConstructor)' | 201 ' with test.declarations_model.Mixin.inheritedRedirectingConstructor)' |
191 ' in s(test.declarations_model.Superclass' | 202 ' in s(test.declarations_model.Superclass' |
192 ' with test.declarations_model.Mixin), constructor)', | 203 ' with test.declarations_model.Mixin), constructor)', |
193 'Method(s(toString) in s(Object))', | 204 'Method(s(toString) in s(Object))', |
194 'Variable(s(mixinStaticVariable) in s(Mixin), static)', | 205 'Variable(s(mixinStaticVariable) in s(Mixin), static)', |
195 'Method(s(mixinStaticGetter) in s(Mixin), static, getter)', | 206 'Method(s(mixinStaticGetter) in s(Mixin), static, getter)', |
196 'Method(s(mixinStaticSetter=) in s(Mixin), static, setter)', | 207 'Method(s(mixinStaticSetter=) in s(Mixin), static, setter)', |
197 'Method(s(mixinStaticMethod) in s(Mixin), static)'], | 208 'Method(s(mixinStaticMethod) in s(Mixin), static)' |
198 inheritedDeclarations(cm).where((dm) => !dm.isPrivate).map(stringify), | 209 ], inheritedDeclarations(cm).where((dm) => !dm.isPrivate).map(stringify), |
199 'transitive public'); | 210 'transitive public'); |
200 // The public members of Object should be the same in all implementations, so | 211 // The public members of Object should be the same in all implementations, so |
201 // we don't exclude Object here. | 212 // we don't exclude Object here. |
202 | 213 |
203 Expect.setEquals( | 214 Expect.setEquals([ |
204 ['Method(s(+) in s(Class))', | 215 'Method(s(+) in s(Class))', |
205 'TypeVariable(s(C) in s(Class),' | 216 'TypeVariable(s(C) in s(Class),' |
206 ' upperBound = Class(s(Object) in s(dart.core), top-level))', | 217 ' upperBound = Class(s(Object) in s(dart.core), top-level))', |
207 'Method(s(Class._generativeConstructor) in s(Class), private, constructor)', | 218 'Method(s(Class._generativeConstructor) in s(Class), private, constructor)', |
208 'Method(s(Class._normalFactory) in s(Class), private, static, constructor)', | 219 'Method(s(Class._normalFactory) in s(Class), private, static, constructor)', |
209 'Method(s(Class._redirectingConstructor)' | 220 'Method(s(Class._redirectingConstructor)' |
210 ' in s(Class), private, constructor)', | 221 ' in s(Class), private, constructor)', |
211 'Method(s(Class._redirectingFactory)' | 222 'Method(s(Class._redirectingFactory)' |
212 ' in s(Class), private, static, constructor)', | 223 ' in s(Class), private, static, constructor)', |
213 'Method(s(Class.generativeConstructor) in s(Class), constructor)', | 224 'Method(s(Class.generativeConstructor) in s(Class), constructor)', |
214 'Method(s(Class.normalFactory) in s(Class), static, constructor)', | 225 'Method(s(Class.normalFactory) in s(Class), static, constructor)', |
215 'Method(s(Class.redirectingConstructor) in s(Class), constructor)', | 226 'Method(s(Class.redirectingConstructor) in s(Class), constructor)', |
216 'Method(s(Class.redirectingFactory) in s(Class), static, constructor)', | 227 'Method(s(Class.redirectingFactory) in s(Class), static, constructor)', |
217 'Method(s(_instanceGetter) in s(Class), private, getter)', | 228 'Method(s(_instanceGetter) in s(Class), private, getter)', |
218 'Method(s(_instanceMethod) in s(Class), private)', | 229 'Method(s(_instanceMethod) in s(Class), private)', |
219 'Method(s(_instanceSetter=) in s(Class), private, setter)', | 230 'Method(s(_instanceSetter=) in s(Class), private, setter)', |
220 'Variable(s(_instanceVariable) in s(Class), private)', | 231 'Variable(s(_instanceVariable) in s(Class), private)', |
221 'Method(s(_staticGetter) in s(Class), private, static, getter)', | 232 'Method(s(_staticGetter) in s(Class), private, static, getter)', |
222 'Method(s(_staticMethod) in s(Class), private, static)', | 233 'Method(s(_staticMethod) in s(Class), private, static)', |
223 'Method(s(_staticSetter=) in s(Class), private, static, setter)', | 234 'Method(s(_staticSetter=) in s(Class), private, static, setter)', |
224 'Variable(s(_staticVariable) in s(Class), private, static)', | 235 'Variable(s(_staticVariable) in s(Class), private, static)', |
225 'Method(s(abstractMethod) in s(Class), abstract)', | 236 'Method(s(abstractMethod) in s(Class), abstract)', |
226 'Method(s(instanceGetter) in s(Class), getter)', | 237 'Method(s(instanceGetter) in s(Class), getter)', |
227 'Method(s(instanceMethod) in s(Class))', | 238 'Method(s(instanceMethod) in s(Class))', |
228 'Method(s(instanceSetter=) in s(Class), setter)', | 239 'Method(s(instanceSetter=) in s(Class), setter)', |
229 'Variable(s(instanceVariable) in s(Class))', | 240 'Variable(s(instanceVariable) in s(Class))', |
230 'Method(s(staticGetter) in s(Class), static, getter)', | 241 'Method(s(staticGetter) in s(Class), static, getter)', |
231 'Method(s(staticMethod) in s(Class), static)', | 242 'Method(s(staticMethod) in s(Class), static)', |
232 'Method(s(staticSetter=) in s(Class), static, setter)', | 243 'Method(s(staticSetter=) in s(Class), static, setter)', |
233 'Variable(s(staticVariable) in s(Class), static)'], | 244 'Variable(s(staticVariable) in s(Class), static)' |
234 cm.declarations.values.map(stringify), | 245 ], cm.declarations.values.map(stringify), 'declarations'); |
235 'declarations'); | |
236 | 246 |
237 Expect.setEquals( | 247 Expect.setEquals( |
238 ['Method(s(*) in s(Mixin))', | 248 [ |
239 'Method(s(+) in s(Class))', | 249 'Method(s(*) in s(Mixin))', |
240 'Method(s(-) in s(Superclass))', | 250 'Method(s(+) in s(Class))', |
241 'TypeVariable(s(C) in s(Class),' | 251 'Method(s(-) in s(Superclass))', |
242 ' upperBound = Class(s(Object) in s(dart.core), top-level))', | 252 'TypeVariable(s(C) in s(Class),' |
243 'Method(s(Class._generativeConstructor) in s(Class), private, constructor)', | 253 ' upperBound = Class(s(Object) in s(dart.core), top-level))', |
244 'Method(s(Class._normalFactory) in s(Class), private, static, constructor)', | 254 'Method(s(Class._generativeConstructor) in s(Class), private, constructo
r)', |
245 'Method(s(Class._redirectingConstructor)' | 255 'Method(s(Class._normalFactory) in s(Class), private, static, constructo
r)', |
246 ' in s(Class), private, constructor)', | 256 'Method(s(Class._redirectingConstructor)' |
247 'Method(s(Class._redirectingFactory)' | 257 ' in s(Class), private, constructor)', |
248 ' in s(Class), private, static, constructor)', | 258 'Method(s(Class._redirectingFactory)' |
249 'Method(s(Class.generativeConstructor) in s(Class), constructor)', | 259 ' in s(Class), private, static, constructor)', |
250 'Method(s(Class.normalFactory) in s(Class), static, constructor)', | 260 'Method(s(Class.generativeConstructor) in s(Class), constructor)', |
251 'Method(s(Class.redirectingConstructor) in s(Class), constructor)', | 261 'Method(s(Class.normalFactory) in s(Class), static, constructor)', |
252 'Method(s(Class.redirectingFactory) in s(Class), static, constructor)', | 262 'Method(s(Class.redirectingConstructor) in s(Class), constructor)', |
253 'TypeVariable(s(S) in s(Superclass),' | 263 'Method(s(Class.redirectingFactory) in s(Class), static, constructor)', |
254 ' upperBound = Class(s(Object) in s(dart.core), top-level))', | 264 'TypeVariable(s(S) in s(Superclass),' |
255 'Method(s(Superclass._inheritedGenerativeConstructor)' | 265 ' upperBound = Class(s(Object) in s(dart.core), top-level))', |
256 ' in s(Superclass), private, constructor)', | 266 'Method(s(Superclass._inheritedGenerativeConstructor)' |
257 'Method(s(Superclass._inheritedNormalFactory)' | 267 ' in s(Superclass), private, constructor)', |
258 ' in s(Superclass), private, static, constructor)', | 268 'Method(s(Superclass._inheritedNormalFactory)' |
259 'Method(s(Superclass._inheritedRedirectingConstructor)' | 269 ' in s(Superclass), private, static, constructor)', |
260 ' in s(Superclass), private, constructor)', | 270 'Method(s(Superclass._inheritedRedirectingConstructor)' |
261 'Method(s(Superclass._inheritedRedirectingFactory)' | 271 ' in s(Superclass), private, constructor)', |
262 ' in s(Superclass), private, static, constructor)', | 272 'Method(s(Superclass._inheritedRedirectingFactory)' |
263 'Method(s(Superclass.inheritedGenerativeConstructor)' | 273 ' in s(Superclass), private, static, constructor)', |
264 ' in s(Superclass), constructor)', | 274 'Method(s(Superclass.inheritedGenerativeConstructor)' |
265 'Method(s(Superclass.inheritedNormalFactory)' | 275 ' in s(Superclass), constructor)', |
266 ' in s(Superclass), static, constructor)', | 276 'Method(s(Superclass.inheritedNormalFactory)' |
267 'Method(s(Superclass.inheritedRedirectingConstructor)' | 277 ' in s(Superclass), static, constructor)', |
268 ' in s(Superclass), constructor)', | 278 'Method(s(Superclass.inheritedRedirectingConstructor)' |
269 'Method(s(Superclass.inheritedRedirectingFactory)' | 279 ' in s(Superclass), constructor)', |
270 ' in s(Superclass), static, constructor)', | 280 'Method(s(Superclass.inheritedRedirectingFactory)' |
271 'Method(s(_inheritedInstanceGetter) in s(Superclass), private, getter)', | 281 ' in s(Superclass), static, constructor)', |
272 'Method(s(_inheritedInstanceMethod) in s(Superclass), private)', | 282 'Method(s(_inheritedInstanceGetter) in s(Superclass), private, getter)', |
273 'Method(s(_inheritedInstanceSetter=) in s(Superclass), private, setter)', | 283 'Method(s(_inheritedInstanceMethod) in s(Superclass), private)', |
274 'Variable(s(_inheritedInstanceVariable) in s(Superclass), private)', | 284 'Method(s(_inheritedInstanceSetter=) in s(Superclass), private, setter)'
, |
275 'Method(s(_inheritedStaticGetter)' | 285 'Variable(s(_inheritedInstanceVariable) in s(Superclass), private)', |
276 ' in s(Superclass), private, static, getter)', | 286 'Method(s(_inheritedStaticGetter)' |
277 'Method(s(_inheritedStaticMethod) in s(Superclass), private, static)', | 287 ' in s(Superclass), private, static, getter)', |
278 'Method(s(_inheritedStaticSetter=)' | 288 'Method(s(_inheritedStaticMethod) in s(Superclass), private, static)', |
279 ' in s(Superclass), private, static, setter)', | 289 'Method(s(_inheritedStaticSetter=)' |
280 'Variable(s(_inheritedStaticVariable) in s(Superclass), private, static)', | 290 ' in s(Superclass), private, static, setter)', |
281 'Method(s(_instanceGetter) in s(Class), private, getter)', | 291 'Variable(s(_inheritedStaticVariable) in s(Superclass), private, static)
', |
282 'Method(s(_instanceMethod) in s(Class), private)', | 292 'Method(s(_instanceGetter) in s(Class), private, getter)', |
283 'Method(s(_instanceSetter=) in s(Class), private, setter)', | 293 'Method(s(_instanceMethod) in s(Class), private)', |
284 'Variable(s(_instanceVariable) in s(Class), private)', | 294 'Method(s(_instanceSetter=) in s(Class), private, setter)', |
285 'Method(s(_mixinInstanceGetter) in s(Mixin), private, getter)', | 295 'Variable(s(_instanceVariable) in s(Class), private)', |
286 'Method(s(_mixinInstanceMethod) in s(Mixin), private)', | 296 'Method(s(_mixinInstanceGetter) in s(Mixin), private, getter)', |
287 'Method(s(_mixinInstanceSetter=) in s(Mixin), private, setter)', | 297 'Method(s(_mixinInstanceMethod) in s(Mixin), private)', |
288 'Variable(s(_mixinInstanceVariable) in s(Mixin), private)', | 298 'Method(s(_mixinInstanceSetter=) in s(Mixin), private, setter)', |
289 'Method(s(_staticGetter) in s(Class), private, static, getter)', | 299 'Variable(s(_mixinInstanceVariable) in s(Mixin), private)', |
290 'Method(s(_staticMethod) in s(Class), private, static)', | 300 'Method(s(_staticGetter) in s(Class), private, static, getter)', |
291 'Method(s(_staticSetter=) in s(Class), private, static, setter)', | 301 'Method(s(_staticMethod) in s(Class), private, static)', |
292 'Variable(s(_staticVariable) in s(Class), private, static)', | 302 'Method(s(_staticSetter=) in s(Class), private, static, setter)', |
293 'Method(s(abstractMethod) in s(Class), abstract)', | 303 'Variable(s(_staticVariable) in s(Class), private, static)', |
294 'Method(s(inheritedInstanceGetter) in s(Superclass), getter)', | 304 'Method(s(abstractMethod) in s(Class), abstract)', |
295 'Method(s(inheritedInstanceMethod) in s(Superclass))', | 305 'Method(s(inheritedInstanceGetter) in s(Superclass), getter)', |
296 'Method(s(inheritedInstanceSetter=) in s(Superclass), setter)', | 306 'Method(s(inheritedInstanceMethod) in s(Superclass))', |
297 'Variable(s(inheritedInstanceVariable) in s(Superclass))', | 307 'Method(s(inheritedInstanceSetter=) in s(Superclass), setter)', |
298 'Method(s(inheritedStaticGetter) in s(Superclass), static, getter)', | 308 'Variable(s(inheritedInstanceVariable) in s(Superclass))', |
299 'Method(s(inheritedStaticMethod) in s(Superclass), static)', | 309 'Method(s(inheritedStaticGetter) in s(Superclass), static, getter)', |
300 'Method(s(inheritedStaticSetter=) in s(Superclass), static, setter)', | 310 'Method(s(inheritedStaticMethod) in s(Superclass), static)', |
301 'Variable(s(inheritedStaticVariable) in s(Superclass), static)', | 311 'Method(s(inheritedStaticSetter=) in s(Superclass), static, setter)', |
302 'Method(s(instanceGetter) in s(Class), getter)', | 312 'Variable(s(inheritedStaticVariable) in s(Superclass), static)', |
303 'Method(s(instanceMethod) in s(Class))', | 313 'Method(s(instanceGetter) in s(Class), getter)', |
304 'Method(s(instanceSetter=) in s(Class), setter)', | 314 'Method(s(instanceMethod) in s(Class))', |
305 'Variable(s(instanceVariable) in s(Class))', | 315 'Method(s(instanceSetter=) in s(Class), setter)', |
306 'Method(s(mixinInstanceGetter) in s(Mixin), getter)', | 316 'Variable(s(instanceVariable) in s(Class))', |
307 'Method(s(mixinInstanceMethod) in s(Mixin))', | 317 'Method(s(mixinInstanceGetter) in s(Mixin), getter)', |
308 'Method(s(mixinInstanceSetter=) in s(Mixin), setter)', | 318 'Method(s(mixinInstanceMethod) in s(Mixin))', |
309 'Variable(s(mixinInstanceVariable) in s(Mixin))', | 319 'Method(s(mixinInstanceSetter=) in s(Mixin), setter)', |
310 'Method(s(staticGetter) in s(Class), static, getter)', | 320 'Variable(s(mixinInstanceVariable) in s(Mixin))', |
311 'Method(s(staticMethod) in s(Class), static)', | 321 'Method(s(staticGetter) in s(Class), static, getter)', |
312 'Method(s(staticSetter=) in s(Class), static, setter)', | 322 'Method(s(staticMethod) in s(Class), static)', |
313 'Variable(s(staticVariable) in s(Class), static)', | 323 'Method(s(staticSetter=) in s(Class), static, setter)', |
314 'Method(s(test.declarations_model.Superclass' | 324 'Variable(s(staticVariable) in s(Class), static)', |
315 ' with test.declarations_model.Mixin._inheritedGenerativeConstructor)' | 325 'Method(s(test.declarations_model.Superclass' |
316 ' in s(test.declarations_model.Superclass' | 326 ' with test.declarations_model.Mixin._inheritedGenerativeConstructor
)' |
317 ' with test.declarations_model.Mixin), private, constructor)', | 327 ' in s(test.declarations_model.Superclass' |
318 'Method(s(test.declarations_model.Superclass' | 328 ' with test.declarations_model.Mixin), private, constructor)', |
319 ' with test.declarations_model.Mixin._inheritedRedirectingConstructor)' | 329 'Method(s(test.declarations_model.Superclass' |
320 ' in s(test.declarations_model.Superclass' | 330 ' with test.declarations_model.Mixin._inheritedRedirectingConstructo
r)' |
321 ' with test.declarations_model.Mixin), private, constructor)', | 331 ' in s(test.declarations_model.Superclass' |
322 'Method(s(test.declarations_model.Superclass' | 332 ' with test.declarations_model.Mixin), private, constructor)', |
323 ' with test.declarations_model.Mixin.inheritedGenerativeConstructor)' | 333 'Method(s(test.declarations_model.Superclass' |
324 ' in s(test.declarations_model.Superclass' | 334 ' with test.declarations_model.Mixin.inheritedGenerativeConstructor)
' |
325 ' with test.declarations_model.Mixin), constructor)', | 335 ' in s(test.declarations_model.Superclass' |
326 'Method(s(test.declarations_model.Superclass' | 336 ' with test.declarations_model.Mixin), constructor)', |
327 ' with test.declarations_model.Mixin.inheritedRedirectingConstructor)' | 337 'Method(s(test.declarations_model.Superclass' |
328 ' in s(test.declarations_model.Superclass' | 338 ' with test.declarations_model.Mixin.inheritedRedirectingConstructor
)' |
329 ' with test.declarations_model.Mixin), constructor)', | 339 ' in s(test.declarations_model.Superclass' |
330 'Variable(s(mixinStaticVariable) in s(Mixin), static)', | 340 ' with test.declarations_model.Mixin), constructor)', |
331 'Variable(s(_mixinStaticVariable) in s(Mixin), private, static)', | 341 'Variable(s(mixinStaticVariable) in s(Mixin), static)', |
332 'Method(s(mixinStaticGetter) in s(Mixin), static, getter)', | 342 'Variable(s(_mixinStaticVariable) in s(Mixin), private, static)', |
333 'Method(s(mixinStaticSetter=) in s(Mixin), static, setter)', | 343 'Method(s(mixinStaticGetter) in s(Mixin), static, getter)', |
334 'Method(s(mixinStaticMethod) in s(Mixin), static)', | 344 'Method(s(mixinStaticSetter=) in s(Mixin), static, setter)', |
335 'Method(s(_mixinStaticGetter) in s(Mixin), private, static, getter)', | 345 'Method(s(mixinStaticMethod) in s(Mixin), static)', |
336 'Method(s(_mixinStaticSetter=) in s(Mixin), private, static, setter)', | 346 'Method(s(_mixinStaticGetter) in s(Mixin), private, static, getter)', |
337 'Method(s(_mixinStaticMethod) in s(Mixin), private, static)'], | 347 'Method(s(_mixinStaticSetter=) in s(Mixin), private, static, setter)', |
338 inheritedDeclarations(cm) | 348 'Method(s(_mixinStaticMethod) in s(Mixin), private, static)' |
339 .difference(reflectClass(Object).declarations.values.toSet()) | 349 ], |
340 .map(stringify), | 350 inheritedDeclarations(cm) |
341 'transitive less Object'); | 351 .difference(reflectClass(Object).declarations.values.toSet()) |
| 352 .map(stringify), |
| 353 'transitive less Object'); |
342 // The private members of Object may vary across implementations, so we | 354 // The private members of Object may vary across implementations, so we |
343 // exclude the declarations of Object in this test case. | 355 // exclude the declarations of Object in this test case. |
344 } | 356 } |
OLD | NEW |