| 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 'dart:collection' show LinkedHashMap; | 7 import 'dart:collection' show LinkedHashMap; |
| 8 | 8 |
| 9 import 'elements.dart'; | 9 import 'elements.dart'; |
| 10 import '../../compiler.dart' as api; | 10 import '../../compiler.dart' as api; |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 | 331 |
| 332 // TODO(kasperl): These seem unnecessary. | 332 // TODO(kasperl): These seem unnecessary. |
| 333 set patch(value) => unsupported(); | 333 set patch(value) => unsupported(); |
| 334 set origin(value) => unsupported(); | 334 set origin(value) => unsupported(); |
| 335 set defaultImplementation(value) => unsupported(); | 335 set defaultImplementation(value) => unsupported(); |
| 336 | 336 |
| 337 get redirectionTarget => this; | 337 get redirectionTarget => this; |
| 338 | 338 |
| 339 getLibrary() => enclosingElement.getLibrary(); | 339 getLibrary() => enclosingElement.getLibrary(); |
| 340 | 340 |
| 341 computeTargetType(Compiler compiler, InterfaceType newType) => unsupported(); |
| 342 |
| 341 String toString() { | 343 String toString() { |
| 342 String n = name.slowToString(); | 344 String n = name.slowToString(); |
| 343 return '<$n: ${messageKind.message(messageArguments)}>'; | 345 return '<$n: ${messageKind.message(messageArguments)}>'; |
| 344 } | 346 } |
| 345 } | 347 } |
| 346 | 348 |
| 347 /** | 349 /** |
| 348 * An ambiguous element represents multiple elements accessible by the same name
. | 350 * An ambiguous element represents multiple elements accessible by the same name
. |
| 349 * | 351 * |
| 350 * Ambiguous elements are created during handling of import/export scopes. If an | 352 * Ambiguous elements are created during handling of import/export scopes. If an |
| (...skipping 1850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2201 | 2203 |
| 2202 MetadataAnnotation ensureResolved(Compiler compiler) { | 2204 MetadataAnnotation ensureResolved(Compiler compiler) { |
| 2203 if (resolutionState == STATE_NOT_STARTED) { | 2205 if (resolutionState == STATE_NOT_STARTED) { |
| 2204 compiler.resolver.resolveMetadataAnnotation(this); | 2206 compiler.resolver.resolveMetadataAnnotation(this); |
| 2205 } | 2207 } |
| 2206 return this; | 2208 return this; |
| 2207 } | 2209 } |
| 2208 | 2210 |
| 2209 String toString() => 'MetadataAnnotation($value, $resolutionState)'; | 2211 String toString() => 'MetadataAnnotation($value, $resolutionState)'; |
| 2210 } | 2212 } |
| OLD | NEW |