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 library dart2js.common.work; | 5 library dart2js.common.work; |
6 | 6 |
7 import '../common.dart'; | 7 import '../common.dart'; |
8 import '../compiler.dart' show Compiler; | |
9 import '../elements/elements.dart' show AstElement; | 8 import '../elements/elements.dart' show AstElement; |
10 import '../enqueue.dart' show Enqueuer; | |
11 import '../universe/world_impact.dart' show WorldImpact; | 9 import '../universe/world_impact.dart' show WorldImpact; |
12 | 10 |
13 abstract class WorkItem { | 11 abstract class WorkItem { |
14 /// Element on which the work will be done. | 12 /// Element on which the work will be done. |
15 final AstElement element; | 13 final AstElement element; |
16 | 14 |
17 WorkItem(this.element) { | 15 WorkItem(this.element) { |
18 assert(invariant(element, element.isDeclaration)); | 16 assert(invariant(element, element.isDeclaration)); |
19 } | 17 } |
20 | 18 |
21 WorldImpact run(); | 19 WorldImpact run(); |
22 } | 20 } |
OLD | NEW |