| 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'); |
| (...skipping 1607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1618 /** | 1618 /** |
| 1619 * The compile-time constant which this annotation resolves to. | 1619 * The compile-time constant which this annotation resolves to. |
| 1620 * In the mirror system, this would be an object mirror. | 1620 * In the mirror system, this would be an object mirror. |
| 1621 */ | 1621 */ |
| 1622 abstract Constant get value; | 1622 abstract Constant get value; |
| 1623 Element annotatedElement; | 1623 Element annotatedElement; |
| 1624 int resolutionState; | 1624 int resolutionState; |
| 1625 | 1625 |
| 1626 MetadataAnnotation([this.resolutionState = STATE_NOT_STARTED]); | 1626 MetadataAnnotation([this.resolutionState = STATE_NOT_STARTED]); |
| 1627 | 1627 |
| 1628 abstract Node parseNode(DiagnosticListener listener); | |
| 1629 | |
| 1630 MetadataAnnotation ensureResolved(Compiler compiler) { | 1628 MetadataAnnotation ensureResolved(Compiler compiler) { |
| 1631 if (resolutionState == STATE_NOT_STARTED) { | 1629 if (resolutionState == STATE_NOT_STARTED) { |
| 1632 compiler.resolver.resolveMetadataAnnotation(this); | 1630 compiler.resolver.resolveMetadataAnnotation(this); |
| 1633 } | 1631 } |
| 1634 return this; | 1632 return this; |
| 1635 } | 1633 } |
| 1636 | 1634 |
| 1637 String toString() => 'MetadataAnnotation($value, $resolutionState)'; | 1635 String toString() => 'MetadataAnnotation($value, $resolutionState)'; |
| 1638 } | 1636 } |
| OLD | NEW |