Chromium Code Reviews| 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 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 628 */ | 628 */ |
| 629 bool get isOverride; | 629 bool get isOverride; |
| 630 | 630 |
| 631 /** | 631 /** |
| 632 * Return `true` if this element is private. Private elements are visible only | 632 * Return `true` if this element is private. Private elements are visible only |
| 633 * within the library in which they are declared. | 633 * within the library in which they are declared. |
| 634 */ | 634 */ |
| 635 bool get isPrivate; | 635 bool get isPrivate; |
| 636 | 636 |
| 637 /** | 637 /** |
| 638 * Return `true` if this element has an annotation of the form '@protected'. | |
| 639 */ | |
| 640 bool get isProtected; | |
| 641 | |
| 642 /** | |
| 638 * Return `true` if this element is public. Public elements are visible within | 643 * Return `true` if this element is public. Public elements are visible within |
| 639 * any library that imports the library in which they are declared. | 644 * any library that imports the library in which they are declared. |
| 640 */ | 645 */ |
| 641 bool get isPublic; | 646 bool get isPublic; |
| 642 | 647 |
| 643 /** | 648 /** |
| 644 * Return `true` if this element is synthetic. A synthetic element is an | 649 * Return `true` if this element is synthetic. A synthetic element is an |
| 645 * element that is not represented in the source code explicitly, but is | 650 * element that is not represented in the source code explicitly, but is |
| 646 * implied by the source code, such as the default constructor for a class | 651 * implied by the source code, such as the default constructor for a class |
| 647 * that does not explicitly define any constructors. | 652 * that does not explicitly define any constructors. |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 801 * deprecated. | 806 * deprecated. |
| 802 */ | 807 */ |
| 803 bool get isDeprecated; | 808 bool get isDeprecated; |
| 804 | 809 |
| 805 /** | 810 /** |
| 806 * Return `true` if this annotation marks the associated method as being | 811 * Return `true` if this annotation marks the associated method as being |
| 807 * expected to override an inherited method. | 812 * expected to override an inherited method. |
| 808 */ | 813 */ |
| 809 bool get isOverride; | 814 bool get isOverride; |
| 810 | 815 |
| 816 | |
| 817 /** | |
| 818 * Return `true` if this annotation marks the associated method as being | |
|
Brian Wilkerson
2016/02/23 17:45:56
"method" --> "member"
pquitslund
2016/02/23 22:59:07
Done.
| |
| 819 * protected. | |
| 820 */ | |
| 821 bool get isProtected; | |
| 822 | |
| 811 /** | 823 /** |
| 812 * Return `true` if this annotation marks the associated class as implementing | 824 * Return `true` if this annotation marks the associated class as implementing |
| 813 * a proxy object. | 825 * a proxy object. |
| 814 */ | 826 */ |
| 815 bool get isProxy; | 827 bool get isProxy; |
| 816 } | 828 } |
| 817 | 829 |
| 818 /** | 830 /** |
| 819 * The enumeration `ElementKind` defines the various kinds of elements in the | 831 * The enumeration `ElementKind` defines the various kinds of elements in the |
| 820 * element model. | 832 * element model. |
| (...skipping 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1945 */ | 1957 */ |
| 1946 bool get isStatic; | 1958 bool get isStatic; |
| 1947 | 1959 |
| 1948 /** | 1960 /** |
| 1949 * Return the declared type of this variable, or `null` if the variable did | 1961 * Return the declared type of this variable, or `null` if the variable did |
| 1950 * not have a declared type (such as if it was declared using the keyword | 1962 * not have a declared type (such as if it was declared using the keyword |
| 1951 * 'var'). | 1963 * 'var'). |
| 1952 */ | 1964 */ |
| 1953 DartType get type; | 1965 DartType get type; |
| 1954 } | 1966 } |
| OLD | NEW |