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 |
8 ResolutionWorkItem; | 8 ResolutionWorkItem; |
9 import '../common/tasks.dart' show | 9 import '../common/tasks.dart' show |
10 CompilerTask; | 10 CompilerTask; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 58 |
59 DeserializedResolutionWorkItem( | 59 DeserializedResolutionWorkItem( |
60 this.element, this.compilationContext, this.worldImpact); | 60 this.element, this.compilationContext, this.worldImpact); |
61 | 61 |
62 @override | 62 @override |
63 bool get isAnalyzed => _isAnalyzed; | 63 bool get isAnalyzed => _isAnalyzed; |
64 | 64 |
65 @override | 65 @override |
66 WorldImpact run(Compiler compiler, ResolutionEnqueuer world) { | 66 WorldImpact run(Compiler compiler, ResolutionEnqueuer world) { |
67 _isAnalyzed = true; | 67 _isAnalyzed = true; |
68 world.registerResolvedElement(element); | 68 world.registerProcessedElement(element); |
69 return worldImpact; | 69 return worldImpact; |
70 } | 70 } |
71 } | 71 } |
72 | 72 |
73 /// The interface for a system that supports deserialization of libraries and | 73 /// The interface for a system that supports deserialization of libraries and |
74 /// elements. | 74 /// elements. |
75 abstract class DeserializerSystem { | 75 abstract class DeserializerSystem { |
76 LibraryElement readLibrary(Uri resolvedUri); | 76 LibraryElement readLibrary(Uri resolvedUri); |
77 bool isDeserialized(Element element); | 77 bool isDeserialized(Element element); |
78 WorldImpact computeWorldImpact(Element element); | 78 WorldImpact computeWorldImpact(Element element); |
79 } | 79 } |
OLD | NEW |