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