| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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; | 5 library elements; |
| 6 | 6 |
| 7 import 'dart:uri'; | 7 import 'dart:uri'; |
| 8 | 8 |
| 9 // TODO(ahe): Rename prefix to 'api' when VM bug is fixed. | 9 // TODO(ahe): Rename prefix to 'api' when VM bug is fixed. |
| 10 import '../../compiler.dart' as api_e; | 10 import '../../compiler.dart' as api_e; |
| (...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 | 422 |
| 423 getLibrary() => enclosingElement.getLibrary(); | 423 getLibrary() => enclosingElement.getLibrary(); |
| 424 | 424 |
| 425 String toString() { | 425 String toString() { |
| 426 String n = name.slowToString(); | 426 String n = name.slowToString(); |
| 427 return '<$n: ${messageKind.message(messageArguments)}>'; | 427 return '<$n: ${messageKind.message(messageArguments)}>'; |
| 428 } | 428 } |
| 429 } | 429 } |
| 430 | 430 |
| 431 /** | 431 /** |
| 432 * An ambiguous element represent multiple elements accessible by the same name. | 432 * An ambiguous element represents multiple elements accessible by the same |
| 433 * name. |
| 433 * | 434 * |
| 434 * Ambiguous elements are created during handling of import/export scopes. If an | 435 * Ambiguous elements are created during handling of import/export scopes. If an |
| 435 * ambiguous element is encountered during resolution a warning/error should be | 436 * ambiguous element is encountered during resolution a warning/error should be |
| 436 * reported. | 437 * reported. |
| 437 */ | 438 */ |
| 438 class AmbiguousElement extends Element { | 439 class AmbiguousElement extends Element { |
| 439 /** | 440 /** |
| 440 * The message to report on resolving this element. | 441 * The message to report on resolving this element. |
| 441 */ | 442 */ |
| 442 final MessageKind messageKind; | 443 final MessageKind messageKind; |
| (...skipping 1712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2155 | 2156 |
| 2156 MetadataAnnotation ensureResolved(Compiler compiler) { | 2157 MetadataAnnotation ensureResolved(Compiler compiler) { |
| 2157 if (resolutionState == STATE_NOT_STARTED) { | 2158 if (resolutionState == STATE_NOT_STARTED) { |
| 2158 compiler.resolver.resolveMetadataAnnotation(this); | 2159 compiler.resolver.resolveMetadataAnnotation(this); |
| 2159 } | 2160 } |
| 2160 return this; | 2161 return this; |
| 2161 } | 2162 } |
| 2162 | 2163 |
| 2163 String toString() => 'MetadataAnnotation($value, $resolutionState)'; | 2164 String toString() => 'MetadataAnnotation($value, $resolutionState)'; |
| 2164 } | 2165 } |
| OLD | NEW |