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 'dart:async' show EventSink, Future; | 7 import 'dart:async' show EventSink, Future; |
8 | 8 |
9 import '../common/resolution.dart' show ResolutionImpact, ResolutionWorkItem; | 9 import '../common/resolution.dart' show ResolutionImpact, ResolutionWorkItem; |
10 import '../common/tasks.dart' show CompilerTask; | 10 import '../common/tasks.dart' show CompilerTask; |
11 import '../compiler.dart' show Compiler; | 11 import '../compiler.dart' show Compiler; |
12 import '../elements/elements.dart'; | 12 import '../elements/elements.dart'; |
13 import '../enqueue.dart' show ResolutionEnqueuer; | |
14 import '../universe/world_impact.dart' show WorldImpact; | 13 import '../universe/world_impact.dart' show WorldImpact; |
15 import 'json_serializer.dart'; | 14 import 'json_serializer.dart'; |
16 import 'serialization.dart'; | 15 import 'serialization.dart'; |
17 import 'system.dart'; | 16 import 'system.dart'; |
18 | 17 |
19 /// A deserializer that can load a library element by reading it's information | 18 /// A deserializer that can load a library element by reading it's information |
20 /// from a serialized form. | 19 /// from a serialized form. |
21 abstract class LibraryDeserializer { | 20 abstract class LibraryDeserializer { |
22 /// Loads the [LibraryElement] associated with a library under [uri], or null | 21 /// Loads the [LibraryElement] associated with a library under [uri], or null |
23 /// if no serialized information is available for the given library. | 22 /// if no serialized information is available for the given library. |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 /// elements. | 150 /// elements. |
152 abstract class DeserializerSystem { | 151 abstract class DeserializerSystem { |
153 Future<LibraryElement> readLibrary(Uri resolvedUri); | 152 Future<LibraryElement> readLibrary(Uri resolvedUri); |
154 bool isDeserialized(Element element); | 153 bool isDeserialized(Element element); |
155 bool hasResolvedAst(ExecutableElement element); | 154 bool hasResolvedAst(ExecutableElement element); |
156 ResolvedAst getResolvedAst(ExecutableElement element); | 155 ResolvedAst getResolvedAst(ExecutableElement element); |
157 bool hasResolutionImpact(Element element); | 156 bool hasResolutionImpact(Element element); |
158 ResolutionImpact getResolutionImpact(Element element); | 157 ResolutionImpact getResolutionImpact(Element element); |
159 WorldImpact computeWorldImpact(Element element); | 158 WorldImpact computeWorldImpact(Element element); |
160 } | 159 } |
OLD | NEW |