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