| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 dart2js.universe.world_impact; | 5 library dart2js.universe.world_impact; |
| 6 | 6 |
| 7 import '../elements/elements.dart' | 7 import '../elements/elements.dart' show Element; |
| 8 show Element, LocalFunctionElement, MethodElement; | |
| 9 import '../util/util.dart' show Setlet; | 8 import '../util/util.dart' show Setlet; |
| 10 | |
| 11 import 'use.dart' show DynamicUse, StaticUse, TypeUse; | 9 import 'use.dart' show DynamicUse, StaticUse, TypeUse; |
| 12 | 10 |
| 13 class WorldImpact { | 11 class WorldImpact { |
| 14 const WorldImpact(); | 12 const WorldImpact(); |
| 15 | 13 |
| 16 Iterable<DynamicUse> get dynamicUses => const <DynamicUse>[]; | 14 Iterable<DynamicUse> get dynamicUses => const <DynamicUse>[]; |
| 17 | 15 |
| 18 Iterable<StaticUse> get staticUses => const <StaticUse>[]; | 16 Iterable<StaticUse> get staticUses => const <StaticUse>[]; |
| 19 | 17 |
| 20 // TODO(johnniwinther): Replace this by called constructors with type | 18 // TODO(johnniwinther): Replace this by called constructors with type |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 } | 222 } |
| 225 } | 223 } |
| 226 | 224 |
| 227 @override | 225 @override |
| 228 void visitTypeUse(TypeUse use) { | 226 void visitTypeUse(TypeUse use) { |
| 229 if (_visitTypeUse != null) { | 227 if (_visitTypeUse != null) { |
| 230 _visitTypeUse(use); | 228 _visitTypeUse(use); |
| 231 } | 229 } |
| 232 } | 230 } |
| 233 } | 231 } |
| OLD | NEW |