| 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 'serialization.dart'; | 12 import 'serialization.dart'; |
| 13 import 'keys.dart'; | 13 import 'keys.dart'; |
| 14 import '../constants/constructors.dart'; | 14 import '../constants/constructors.dart'; |
| 15 import '../constants/expressions.dart'; | 15 import '../constants/expressions.dart'; |
| 16 import '../dart2jslib.dart' | 16 import '../dart2jslib.dart' |
| 17 show Backend, | 17 show Backend, |
| 18 Compiler, | 18 Compiler, |
| 19 DiagnosticListener, | |
| 20 Script, | |
| 21 SourceSpan; | 19 SourceSpan; |
| 22 import '../dart_types.dart'; | 20 import '../dart_types.dart'; |
| 21 import '../diagnostic_listener.dart'; |
| 23 import '../elements/elements.dart'; | 22 import '../elements/elements.dart'; |
| 24 import '../elements/modelx.dart' show FunctionSignatureX; | 23 import '../elements/modelx.dart' show FunctionSignatureX; |
| 25 import '../elements/common.dart'; | 24 import '../elements/common.dart'; |
| 26 import '../elements/visitor.dart'; | 25 import '../elements/visitor.dart'; |
| 26 import '../io/source_file.dart'; |
| 27 import '../ordered_typeset.dart'; | 27 import '../ordered_typeset.dart'; |
| 28 import '../resolution/resolution.dart'; | 28 import '../resolution/resolution.dart'; |
| 29 import '../resolution/class_members.dart' as class_members; | 29 import '../resolution/class_members.dart' as class_members; |
| 30 import '../resolution/enum_creator.dart' show AstBuilder; | 30 import '../resolution/enum_creator.dart' show AstBuilder; |
| 31 import '../scanner/scannerlib.dart' show Token, SEMICOLON_INFO; | 31 import '../scanner/scannerlib.dart' show Token, SEMICOLON_INFO; |
| 32 import '../script.dart'; |
| 32 import '../serialization/constant_serialization.dart'; | 33 import '../serialization/constant_serialization.dart'; |
| 33 import '../io/source_file.dart'; | |
| 34 import '../tree/tree.dart'; | 34 import '../tree/tree.dart'; |
| 35 import '../util/util.dart' show Link, LinkBuilder; | 35 import '../util/util.dart' show Link, LinkBuilder; |
| 36 | 36 |
| 37 /// Compute a [Link] from an [Iterable]. | 37 /// Compute a [Link] from an [Iterable]. |
| 38 Link toLink(Iterable iterable) { | 38 Link toLink(Iterable iterable) { |
| 39 LinkBuilder builder = new LinkBuilder(); | 39 LinkBuilder builder = new LinkBuilder(); |
| 40 for (var element in iterable) { | 40 for (var element in iterable) { |
| 41 builder.addLast(element); | 41 builder.addLast(element); |
| 42 } | 42 } |
| 43 return builder.toLink(); | 43 return builder.toLink(); |
| (...skipping 1397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1441 | 1441 |
| 1442 @override | 1442 @override |
| 1443 accept(ElementVisitor visitor, arg) { | 1443 accept(ElementVisitor visitor, arg) { |
| 1444 return visitor.visitFieldParameterElement(this, arg); | 1444 return visitor.visitFieldParameterElement(this, arg); |
| 1445 } | 1445 } |
| 1446 | 1446 |
| 1447 @override | 1447 @override |
| 1448 ElementKind get kind => ElementKind.INITIALIZING_FORMAL; | 1448 ElementKind get kind => ElementKind.INITIALIZING_FORMAL; |
| 1449 | 1449 |
| 1450 } | 1450 } |
| OLD | NEW |