| 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 '../common/resolution.dart' show | 7 import '../common/resolution.dart' show ResolutionImpact, ResolutionWorkItem; |
| 8 ResolutionImpact, | 8 import '../common/tasks.dart' show CompilerTask; |
| 9 ResolutionWorkItem; | 9 import '../common/work.dart' show ItemCompilationContext; |
| 10 import '../common/tasks.dart' show | 10 import '../compiler.dart' show Compiler; |
| 11 CompilerTask; | |
| 12 import '../common/work.dart' show | |
| 13 ItemCompilationContext; | |
| 14 import '../compiler.dart' show | |
| 15 Compiler; | |
| 16 import '../elements/elements.dart'; | 11 import '../elements/elements.dart'; |
| 17 import '../enqueue.dart' show | 12 import '../enqueue.dart' show ResolutionEnqueuer; |
| 18 ResolutionEnqueuer; | 13 import '../universe/world_impact.dart' show WorldImpact; |
| 19 import '../universe/world_impact.dart' show | |
| 20 WorldImpact; | |
| 21 | 14 |
| 22 /// A deserializer that can load a library element by reading it's information | 15 /// A deserializer that can load a library element by reading it's information |
| 23 /// from a serialized form. | 16 /// from a serialized form. |
| 24 abstract class LibraryDeserializer { | 17 abstract class LibraryDeserializer { |
| 25 /// Loads the [LibraryElement] associated with a library under [uri], or null | 18 /// Loads the [LibraryElement] associated with a library under [uri], or null |
| 26 /// if no serialized information is available for the given library. | 19 /// if no serialized information is available for the given library. |
| 27 LibraryElement readLibrary(Uri uri); | 20 LibraryElement readLibrary(Uri uri); |
| 28 } | 21 } |
| 29 | 22 |
| 30 /// Task that supports deserialization of elements. | 23 /// Task that supports deserialization of elements. |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 } | 79 } |
| 87 | 80 |
| 88 /// The interface for a system that supports deserialization of libraries and | 81 /// The interface for a system that supports deserialization of libraries and |
| 89 /// elements. | 82 /// elements. |
| 90 abstract class DeserializerSystem { | 83 abstract class DeserializerSystem { |
| 91 LibraryElement readLibrary(Uri resolvedUri); | 84 LibraryElement readLibrary(Uri resolvedUri); |
| 92 bool isDeserialized(Element element); | 85 bool isDeserialized(Element element); |
| 93 ResolutionImpact getResolutionImpact(Element element); | 86 ResolutionImpact getResolutionImpact(Element element); |
| 94 WorldImpact computeWorldImpact(Element element); | 87 WorldImpact computeWorldImpact(Element element); |
| 95 } | 88 } |
| OLD | NEW |