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.serialization.task; | 5 library dart2js.serialization.task; |
6 | 6 |
7 import '../dart2jslib.dart'; | 7 import '../common/resolution.dart' show |
| 8 ResolutionWorkItem; |
| 9 import '../common/tasks.dart' show |
| 10 CompilerTask; |
| 11 import '../common/work.dart' show |
| 12 ItemCompilationContext; |
| 13 import '../compiler.dart' show |
| 14 Compiler; |
8 import '../elements/elements.dart'; | 15 import '../elements/elements.dart'; |
9 import '../enqueue.dart' show | 16 import '../enqueue.dart' show |
10 ResolutionEnqueuer, | 17 ResolutionEnqueuer, |
11 WorldImpact; | 18 WorldImpact; |
12 | 19 |
13 /// Task that supports deserialization of elements. | 20 /// Task that supports deserialization of elements. |
14 class SerializationTask extends CompilerTask { | 21 class SerializationTask extends CompilerTask { |
15 SerializationTask(Compiler compiler) : super(compiler); | 22 SerializationTask(Compiler compiler) : super(compiler); |
16 | 23 |
17 DeserializerSystem deserializer; | 24 DeserializerSystem deserializer; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 } | 70 } |
64 } | 71 } |
65 | 72 |
66 /// The interface for a system that supports deserialization of libraries and | 73 /// The interface for a system that supports deserialization of libraries and |
67 /// elements. | 74 /// elements. |
68 abstract class DeserializerSystem { | 75 abstract class DeserializerSystem { |
69 LibraryElement readLibrary(Uri resolvedUri); | 76 LibraryElement readLibrary(Uri resolvedUri); |
70 bool isDeserialized(Element element); | 77 bool isDeserialized(Element element); |
71 WorldImpact computeWorldImpact(Element element); | 78 WorldImpact computeWorldImpact(Element element); |
72 } | 79 } |
OLD | NEW |