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 2380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2391 final Element annotatedElement; | 2391 final Element annotatedElement; |
2392 final SourceSpan sourcePosition; | 2392 final SourceSpan sourcePosition; |
2393 final ConstantExpression constant; | 2393 final ConstantExpression constant; |
2394 | 2394 |
2395 MetadataAnnotationZ( | 2395 MetadataAnnotationZ( |
2396 this.annotatedElement, this.sourcePosition, this.constant); | 2396 this.annotatedElement, this.sourcePosition, this.constant); |
2397 | 2397 |
2398 @override | 2398 @override |
2399 MetadataAnnotation ensureResolved(Resolution resolution) { | 2399 MetadataAnnotation ensureResolved(Resolution resolution) { |
2400 // Do nothing. | 2400 // Do nothing. |
| 2401 return this; |
2401 } | 2402 } |
2402 | 2403 |
2403 @override | 2404 @override |
2404 Node get node => throw new UnsupportedError('${this}.node'); | 2405 Node get node => throw new UnsupportedError('${this}.node'); |
2405 | 2406 |
2406 @override | 2407 @override |
2407 bool get hasNode => false; | 2408 bool get hasNode => false; |
2408 | 2409 |
2409 String toString() => 'MetadataAnnotationZ(${constant.toDartText()})'; | 2410 String toString() => 'MetadataAnnotationZ(${constant.toDartText()})'; |
2410 } | 2411 } |
OLD | NEW |