| 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 '../dart2jslib.dart'; |
| 8 import '../elements/elements.dart'; | 8 import '../elements/elements.dart'; |
| 9 import '../enqueue.dart' show | |
| 10 ResolutionEnqueuer, | |
| 11 WorldImpact; | |
| 12 | 9 |
| 13 /// Task that supports deserialization of elements. | 10 /// Task that supports deserialization of elements. |
| 14 class SerializationTask extends CompilerTask { | 11 class SerializationTask extends CompilerTask { |
| 15 SerializationTask(Compiler compiler) : super(compiler); | 12 SerializationTask(Compiler compiler) : super(compiler); |
| 16 | 13 |
| 17 DeserializerSystem deserializer; | 14 DeserializerSystem deserializer; |
| 18 | 15 |
| 19 String get name => 'Serialization'; | 16 String get name => 'Serialization'; |
| 20 | 17 |
| 21 /// Returns the [LibraryElement] for [resolvedUri] if available from | 18 /// Returns the [LibraryElement] for [resolvedUri] if available from |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 } | 60 } |
| 64 } | 61 } |
| 65 | 62 |
| 66 /// The interface for a system that supports deserialization of libraries and | 63 /// The interface for a system that supports deserialization of libraries and |
| 67 /// elements. | 64 /// elements. |
| 68 abstract class DeserializerSystem { | 65 abstract class DeserializerSystem { |
| 69 LibraryElement readLibrary(Uri resolvedUri); | 66 LibraryElement readLibrary(Uri resolvedUri); |
| 70 bool isDeserialized(Element element); | 67 bool isDeserialized(Element element); |
| 71 WorldImpact computeWorldImpact(Element element); | 68 WorldImpact computeWorldImpact(Element element); |
| 72 } | 69 } |
| OLD | NEW |