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; |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 | 152 |
153 // TODO(johnniwinther): Find a more precise semantics for this. | 153 // TODO(johnniwinther): Find a more precise semantics for this. |
154 @override | 154 @override |
155 bool get isSynthesized => true; | 155 bool get isSynthesized => true; |
156 | 156 |
157 @override | 157 @override |
158 bool get isTopLevel => false; | 158 bool get isTopLevel => false; |
159 | 159 |
160 // TODO(johnniwinther): Support metadata. | 160 // TODO(johnniwinther): Support metadata. |
161 @override | 161 @override |
162 Link<MetadataAnnotation> get metadata => const Link<MetadataAnnotation>(); | 162 Iterable<MetadataAnnotation> get metadata => const <MetadataAnnotation>[]; |
163 | 163 |
164 @override | 164 @override |
165 Element get outermostEnclosingMemberOrTopLevel { | 165 Element get outermostEnclosingMemberOrTopLevel { |
166 return _unsupported('outermostEnclosingMemberOrTopLevel'); | 166 return _unsupported('outermostEnclosingMemberOrTopLevel'); |
167 } | 167 } |
168 | 168 |
169 @override | 169 @override |
170 Token get position => _unsupported('position'); | 170 Token get position => _unsupported('position'); |
171 } | 171 } |
172 | 172 |
(...skipping 1296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1469 | 1469 |
1470 @override | 1470 @override |
1471 accept(ElementVisitor visitor, arg) { | 1471 accept(ElementVisitor visitor, arg) { |
1472 return visitor.visitFieldParameterElement(this, arg); | 1472 return visitor.visitFieldParameterElement(this, arg); |
1473 } | 1473 } |
1474 | 1474 |
1475 @override | 1475 @override |
1476 ElementKind get kind => ElementKind.INITIALIZING_FORMAL; | 1476 ElementKind get kind => ElementKind.INITIALIZING_FORMAL; |
1477 | 1477 |
1478 } | 1478 } |
OLD | NEW |