| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 part of universe; | 5 part of universe; |
| 6 | 6 |
| 7 // TODO(kasperl): This actually holds getters and setters just fine | 7 // TODO(kasperl): This actually holds getters and setters just fine |
| 8 // too and stricly they aren't functions. Maybe this needs a better | 8 // too and stricly they aren't functions. Maybe this needs a better |
| 9 // name -- something like ElementSet seems a bit too generic. | 9 // name -- something like ElementSet seems a bit too generic. |
| 10 class FunctionSet { | 10 class FunctionSet { |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 ClassElement cls = element.getEnclosingClass(); | 218 ClassElement cls = element.getEnclosingClass(); |
| 219 return compiler.world.isUsedAsMixin(cls) | 219 return compiler.world.isUsedAsMixin(cls) |
| 220 ? ([cls]..addAll(compiler.world.mixinUses[cls])) | 220 ? ([cls]..addAll(compiler.world.mixinUses[cls])) |
| 221 : [cls]; | 221 : [cls]; |
| 222 }) | 222 }) |
| 223 .map((cls) { | 223 .map((cls) { |
| 224 if (compiler.backend.isNullImplementation(cls)) { | 224 if (compiler.backend.isNullImplementation(cls)) { |
| 225 return const TypeMask.empty(); | 225 return const TypeMask.empty(); |
| 226 } | 226 } |
| 227 return compiler.world.hasSubclasses(cls) | 227 return compiler.world.hasSubclasses(cls) |
| 228 ? new TypeMask.nonNullSubclass(cls) | 228 ? new TypeMask.nonNullSubclass(cls.declaration) |
| 229 : new TypeMask.nonNullExact(cls); | 229 : new TypeMask.nonNullExact(cls.declaration); |
| 230 }), | 230 }), |
| 231 compiler); | 231 compiler); |
| 232 } | 232 } |
| 233 | 233 |
| 234 FullFunctionSetQuery(functions) : super(functions); | 234 FullFunctionSetQuery(functions) : super(functions); |
| 235 } | 235 } |
| OLD | NEW |