| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 library elements.modelx; | 5 library elements.modelx; |
| 6 | 6 |
| 7 import 'elements.dart'; | 7 import 'elements.dart'; |
| 8 import '../../compiler.dart' as api; | 8 import '../../compiler.dart' as api; |
| 9 import '../tree/tree.dart'; | 9 import '../tree/tree.dart'; |
| 10 import '../util/util.dart'; | 10 import '../util/util.dart'; |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 | 336 |
| 337 // TODO(kasperl): These seem unnecessary. | 337 // TODO(kasperl): These seem unnecessary. |
| 338 set patch(value) => unsupported(); | 338 set patch(value) => unsupported(); |
| 339 set origin(value) => unsupported(); | 339 set origin(value) => unsupported(); |
| 340 set defaultImplementation(value) => unsupported(); | 340 set defaultImplementation(value) => unsupported(); |
| 341 | 341 |
| 342 get redirectionTarget => this; | 342 get redirectionTarget => this; |
| 343 | 343 |
| 344 getLibrary() => enclosingElement.getLibrary(); | 344 getLibrary() => enclosingElement.getLibrary(); |
| 345 | 345 |
| 346 computeTargetType(Compiler compiler, InterfaceType newType) => unsupported(); | 346 computeTargetType(InterfaceType newType) => unsupported(); |
| 347 | 347 |
| 348 String get message => '${messageKind.message(messageArguments)}'; | 348 String get message => '${messageKind.message(messageArguments)}'; |
| 349 | 349 |
| 350 String toString() => '<$name: $message>'; | 350 String toString() => '<$name: $message>'; |
| 351 } | 351 } |
| 352 | 352 |
| 353 /// A message attached to a [WarnOnUseElementX]. | 353 /// A message attached to a [WarnOnUseElementX]. |
| 354 class WrappedMessage { | 354 class WrappedMessage { |
| 355 /// The message position. If [:null:] the position of the reference to the | 355 /// The message position. If [:null:] the position of the reference to the |
| 356 /// [WarnOnUseElementX] is used. | 356 /// [WarnOnUseElementX] is used. |
| (...skipping 2013 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2370 | 2370 |
| 2371 MetadataAnnotation ensureResolved(Compiler compiler) { | 2371 MetadataAnnotation ensureResolved(Compiler compiler) { |
| 2372 if (resolutionState == STATE_NOT_STARTED) { | 2372 if (resolutionState == STATE_NOT_STARTED) { |
| 2373 compiler.resolver.resolveMetadataAnnotation(this); | 2373 compiler.resolver.resolveMetadataAnnotation(this); |
| 2374 } | 2374 } |
| 2375 return this; | 2375 return this; |
| 2376 } | 2376 } |
| 2377 | 2377 |
| 2378 String toString() => 'MetadataAnnotation($value, $resolutionState)'; | 2378 String toString() => 'MetadataAnnotation($value, $resolutionState)'; |
| 2379 } | 2379 } |
| OLD | NEW |