| 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 /// Implementation of the element model used for deserialiation. | 5 /// Implementation of the element model used for deserialiation. |
| 6 /// | 6 /// |
| 7 /// These classes are created by [ElementDeserializer] triggered by the | 7 /// These classes are created by [ElementDeserializer] triggered by the |
| 8 /// [Deserializer]. | 8 /// [Deserializer]. |
| 9 | 9 |
| 10 library dart2js.serialization.modelz; | 10 library dart2js.serialization.modelz; |
| 11 | 11 |
| 12 import '../common.dart'; | 12 import '../common.dart'; |
| 13 import '../common/resolution.dart' show Resolution; | 13 import '../common/resolution.dart' show Resolution; |
| 14 import '../constants/constructors.dart'; | 14 import '../constants/constructors.dart'; |
| 15 import '../constants/expressions.dart'; | 15 import '../constants/expressions.dart'; |
| 16 import '../elements/resolution_types.dart'; | 16 import '../elements/resolution_types.dart'; |
| 17 import '../elements/common.dart'; | 17 import '../elements/common.dart'; |
| 18 import '../elements/elements.dart'; | 18 import '../elements/elements.dart'; |
| 19 import '../elements/entities.dart'; | 19 import '../elements/entities.dart'; |
| 20 import '../elements/modelx.dart' show FunctionSignatureX; | 20 import '../elements/modelx.dart' show FunctionSignatureX; |
| 21 import '../elements/names.dart'; |
| 21 import '../elements/visitor.dart'; | 22 import '../elements/visitor.dart'; |
| 22 import '../io/source_file.dart'; | 23 import '../io/source_file.dart'; |
| 23 import '../ordered_typeset.dart'; | 24 import '../ordered_typeset.dart'; |
| 24 import '../resolution/class_members.dart' as class_members; | 25 import '../resolution/class_members.dart' as class_members; |
| 25 import '../resolution/scope.dart' show Scope; | 26 import '../resolution/scope.dart' show Scope; |
| 26 import '../resolution/tree_elements.dart' show TreeElements; | 27 import '../resolution/tree_elements.dart' show TreeElements; |
| 27 import '../script.dart'; | 28 import '../script.dart'; |
| 28 import '../serialization/constant_serialization.dart'; | 29 import '../serialization/constant_serialization.dart'; |
| 29 import 'package:front_end/src/fasta/scanner.dart' show Token; | 30 import 'package:front_end/src/fasta/scanner.dart' show Token; |
| 30 import '../tree/tree.dart'; | 31 import '../tree/tree.dart'; |
| (...skipping 2380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2411 } | 2412 } |
| 2412 | 2413 |
| 2413 @override | 2414 @override |
| 2414 Node get node => throw new UnsupportedError('${this}.node'); | 2415 Node get node => throw new UnsupportedError('${this}.node'); |
| 2415 | 2416 |
| 2416 @override | 2417 @override |
| 2417 bool get hasNode => false; | 2418 bool get hasNode => false; |
| 2418 | 2419 |
| 2419 String toString() => 'MetadataAnnotationZ(${constant.toDartText()})'; | 2420 String toString() => 'MetadataAnnotationZ(${constant.toDartText()})'; |
| 2420 } | 2421 } |
| OLD | NEW |