| 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 #import('../tree/tree.dart'); | 9 #import('../tree/tree.dart'); |
| 10 #import('../scanner/scannerlib.dart'); | 10 #import('../scanner/scannerlib.dart'); |
| 11 #import('../leg.dart'); // TODO(karlklose): we only need type. | 11 #import('../leg.dart'); // TODO(karlklose): we only need type. |
| 12 #import('../universe/universe.dart'); |
| 12 #import('../util/util.dart'); | 13 #import('../util/util.dart'); |
| 13 | 14 |
| 14 const int STATE_NOT_STARTED = 0; | 15 const int STATE_NOT_STARTED = 0; |
| 15 const int STATE_STARTED = 1; | 16 const int STATE_STARTED = 1; |
| 16 const int STATE_DONE = 2; | 17 const int STATE_DONE = 2; |
| 17 | 18 |
| 18 class ElementCategory { | 19 class ElementCategory { |
| 19 /** | 20 /** |
| 20 * Represents things that we don't expect to find when looking in a | 21 * Represents things that we don't expect to find when looking in a |
| 21 * scope. | 22 * scope. |
| (...skipping 1666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1688 | 1689 |
| 1689 MetadataAnnotation ensureResolved(Compiler compiler) { | 1690 MetadataAnnotation ensureResolved(Compiler compiler) { |
| 1690 if (resolutionState == STATE_NOT_STARTED) { | 1691 if (resolutionState == STATE_NOT_STARTED) { |
| 1691 compiler.resolver.resolveMetadataAnnotation(this); | 1692 compiler.resolver.resolveMetadataAnnotation(this); |
| 1692 } | 1693 } |
| 1693 return this; | 1694 return this; |
| 1694 } | 1695 } |
| 1695 | 1696 |
| 1696 String toString() => 'MetadataAnnotation($value, $resolutionState)'; | 1697 String toString() => 'MetadataAnnotation($value, $resolutionState)'; |
| 1697 } | 1698 } |
| OLD | NEW |