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/modelx.dart' show FunctionSignatureX; | 19 import '../elements/modelx.dart' show FunctionSignatureX; |
20 import '../elements/visitor.dart'; | 20 import '../elements/visitor.dart'; |
21 import '../io/source_file.dart'; | 21 import '../io/source_file.dart'; |
22 import '../ordered_typeset.dart'; | 22 import '../ordered_typeset.dart'; |
23 import '../resolution/class_members.dart' as class_members; | 23 import '../resolution/class_members.dart' as class_members; |
24 import '../resolution/scope.dart' show Scope; | 24 import '../resolution/scope.dart' show Scope; |
25 import '../resolution/tree_elements.dart' show TreeElements; | 25 import '../resolution/tree_elements.dart' show TreeElements; |
26 import '../script.dart'; | 26 import '../script.dart'; |
27 import '../serialization/constant_serialization.dart'; | 27 import '../serialization/constant_serialization.dart'; |
28 import '../tokens/token.dart' show Token; | 28 import 'package:dart_scanner/dart_scanner.dart' show Token; |
29 import '../tree/tree.dart'; | 29 import '../tree/tree.dart'; |
30 import '../util/util.dart' show Link, LinkBuilder; | 30 import '../util/util.dart' show Link, LinkBuilder; |
31 import 'keys.dart'; | 31 import 'keys.dart'; |
32 import 'serialization.dart'; | 32 import 'serialization.dart'; |
33 | 33 |
34 /// Compute a [Link] from an [Iterable]. | 34 /// Compute a [Link] from an [Iterable]. |
35 Link toLink(Iterable iterable) { | 35 Link toLink(Iterable iterable) { |
36 LinkBuilder builder = new LinkBuilder(); | 36 LinkBuilder builder = new LinkBuilder(); |
37 for (var element in iterable) { | 37 for (var element in iterable) { |
38 builder.addLast(element); | 38 builder.addLast(element); |
(...skipping 2367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2406 } | 2406 } |
2407 | 2407 |
2408 @override | 2408 @override |
2409 Node get node => throw new UnsupportedError('${this}.node'); | 2409 Node get node => throw new UnsupportedError('${this}.node'); |
2410 | 2410 |
2411 @override | 2411 @override |
2412 bool get hasNode => false; | 2412 bool get hasNode => false; |
2413 | 2413 |
2414 String toString() => 'MetadataAnnotationZ(${constant.toDartText()})'; | 2414 String toString() => 'MetadataAnnotationZ(${constant.toDartText()})'; |
2415 } | 2415 } |
OLD | NEW |