| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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_system; | 5 library dart2js.serialization_system; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import '../commandline_options.dart'; | 8 |
| 9 import '../common.dart'; | 9 import '../common.dart'; |
| 10 import '../common/backend_api.dart'; | |
| 11 import '../common/names.dart'; | |
| 12 import '../common/resolution.dart'; | 10 import '../common/resolution.dart'; |
| 13 import '../compiler.dart'; | 11 import '../compiler.dart'; |
| 14 import '../elements/elements.dart'; | 12 import '../elements/elements.dart'; |
| 15 import '../io/source_file.dart'; | |
| 16 import '../scanner/scanner.dart'; | 13 import '../scanner/scanner.dart'; |
| 17 import '../script.dart'; | 14 import '../script.dart'; |
| 18 import '../serialization/impact_serialization.dart'; | 15 import '../serialization/impact_serialization.dart'; |
| 19 import '../tokens/token.dart'; | 16 import '../tokens/token.dart'; |
| 20 import '../universe/call_structure.dart'; | 17 import '../universe/call_structure.dart'; |
| 18 import '../universe/use.dart'; |
| 21 import '../universe/world_impact.dart'; | 19 import '../universe/world_impact.dart'; |
| 22 import '../universe/use.dart'; | |
| 23 import 'json_serializer.dart'; | |
| 24 import 'modelz.dart'; | 20 import 'modelz.dart'; |
| 25 import 'resolved_ast_serialization.dart'; | 21 import 'resolved_ast_serialization.dart'; |
| 26 import 'serialization.dart'; | 22 import 'serialization.dart'; |
| 27 import 'task.dart'; | 23 import 'task.dart'; |
| 28 | 24 |
| 29 class DeserializerSystemImpl extends DeserializerSystem { | 25 class DeserializerSystemImpl extends DeserializerSystem { |
| 30 final Compiler _compiler; | 26 final Compiler _compiler; |
| 31 final Resolution resolution; | 27 final Resolution resolution; |
| 32 final DeserializationContext deserializationContext; | 28 final DeserializationContext deserializationContext; |
| 33 final List<LibraryElement> deserializedLibraries = <LibraryElement>[]; | 29 final List<LibraryElement> deserializedLibraries = <LibraryElement>[]; |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 } | 274 } |
| 279 | 275 |
| 280 @override | 276 @override |
| 281 void onElement(Element element, ObjectDecoder getDecoder(String tag)) { | 277 void onElement(Element element, ObjectDecoder getDecoder(String tag)) { |
| 282 ObjectDecoder decoder = getDecoder(RESOLVED_AST_TAG); | 278 ObjectDecoder decoder = getDecoder(RESOLVED_AST_TAG); |
| 283 if (decoder != null) { | 279 if (decoder != null) { |
| 284 _decoderMap[element] = decoder; | 280 _decoderMap[element] = decoder; |
| 285 } | 281 } |
| 286 } | 282 } |
| 287 } | 283 } |
| OLD | NEW |