| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 /** | 5 /** |
| 6 * Defines the element model. The element model describes the semantic (as | 6 * Defines the element model. The element model describes the semantic (as |
| 7 * opposed to syntactic) structure of Dart code. The syntactic structure of the | 7 * opposed to syntactic) structure of Dart code. The syntactic structure of the |
| 8 * code is modeled by the [AST structure](../ast/ast.dart). | 8 * code is modeled by the [AST structure](../ast/ast.dart). |
| 9 * | 9 * |
| 10 * The element model consists of two closely related kinds of objects: elements | 10 * The element model consists of two closely related kinds of objects: elements |
| (...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 860 * required. | 860 * required. |
| 861 */ | 861 */ |
| 862 bool get isRequired; | 862 bool get isRequired; |
| 863 | 863 |
| 864 /** | 864 /** |
| 865 * Return a representation of the value of this annotation, forcing the value | 865 * Return a representation of the value of this annotation, forcing the value |
| 866 * to be computed if it had not previously been computed, or `null` if the | 866 * to be computed if it had not previously been computed, or `null` if the |
| 867 * value of this annotation could not be computed because of errors. | 867 * value of this annotation could not be computed because of errors. |
| 868 */ | 868 */ |
| 869 DartObject computeConstantValue(); | 869 DartObject computeConstantValue(); |
| 870 |
| 871 /** |
| 872 * Return a textual description of this annotation in a form approximating |
| 873 * valid source. The returned string will not be valid source primarily in the |
| 874 * case where the annotation itself is not well-formed. |
| 875 */ |
| 876 String toSource(); |
| 870 } | 877 } |
| 871 | 878 |
| 872 /** | 879 /** |
| 873 * The kind of elements in the element model. | 880 * The kind of elements in the element model. |
| 874 * | 881 * |
| 875 * Clients may not extend, implement or mix-in this class. | 882 * Clients may not extend, implement or mix-in this class. |
| 876 */ | 883 */ |
| 877 class ElementKind implements Comparable<ElementKind> { | 884 class ElementKind implements Comparable<ElementKind> { |
| 878 static const ElementKind CLASS = const ElementKind('CLASS', 0, "class"); | 885 static const ElementKind CLASS = const ElementKind('CLASS', 0, "class"); |
| 879 | 886 |
| (...skipping 1170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2050 DartType get type; | 2057 DartType get type; |
| 2051 | 2058 |
| 2052 /** | 2059 /** |
| 2053 * Return a representation of the value of this variable, forcing the value | 2060 * Return a representation of the value of this variable, forcing the value |
| 2054 * to be computed if it had not previously been computed, or `null` if either | 2061 * to be computed if it had not previously been computed, or `null` if either |
| 2055 * this variable was not declared with the 'const' modifier or if the value of | 2062 * this variable was not declared with the 'const' modifier or if the value of |
| 2056 * this variable could not be computed because of errors. | 2063 * this variable could not be computed because of errors. |
| 2057 */ | 2064 */ |
| 2058 DartObject computeConstantValue(); | 2065 DartObject computeConstantValue(); |
| 2059 } | 2066 } |
| OLD | NEW |