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 import '../common.dart'; |
8 import '../common/resolution.dart' show ResolutionImpact, ResolutionWorkItem; | 9 import '../common/resolution.dart' show ResolutionImpact, ResolutionWorkItem; |
9 import '../common/tasks.dart' show CompilerTask; | 10 import '../common/tasks.dart' show CompilerTask; |
10 import '../common/work.dart' show ItemCompilationContext; | 11 import '../common/work.dart' show ItemCompilationContext; |
11 import '../compiler.dart' show Compiler; | 12 import '../compiler.dart' show Compiler; |
12 import '../elements/elements.dart'; | 13 import '../elements/elements.dart'; |
13 import '../enqueue.dart' show ResolutionEnqueuer; | 14 import '../enqueue.dart' show ResolutionEnqueuer; |
14 import '../universe/world_impact.dart' show WorldImpact; | 15 import '../universe/world_impact.dart' show WorldImpact; |
15 import 'json_serializer.dart'; | 16 import 'json_serializer.dart'; |
16 import 'serialization.dart'; | 17 import 'serialization.dart'; |
17 import 'system.dart'; | 18 import 'system.dart'; |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 /// elements. | 150 /// elements. |
150 abstract class DeserializerSystem { | 151 abstract class DeserializerSystem { |
151 Future<LibraryElement> readLibrary(Uri resolvedUri); | 152 Future<LibraryElement> readLibrary(Uri resolvedUri); |
152 bool isDeserialized(Element element); | 153 bool isDeserialized(Element element); |
153 bool hasResolvedAst(ExecutableElement element); | 154 bool hasResolvedAst(ExecutableElement element); |
154 ResolvedAst getResolvedAst(ExecutableElement element); | 155 ResolvedAst getResolvedAst(ExecutableElement element); |
155 bool hasResolutionImpact(Element element); | 156 bool hasResolutionImpact(Element element); |
156 ResolutionImpact getResolutionImpact(Element element); | 157 ResolutionImpact getResolutionImpact(Element element); |
157 WorldImpact computeWorldImpact(Element element); | 158 WorldImpact computeWorldImpact(Element element); |
158 } | 159 } |
OLD | NEW |