| 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 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 617 */ | 617 */ |
| 618 int get id; | 618 int get id; |
| 619 | 619 |
| 620 /** | 620 /** |
| 621 * Return `true` if this element has an annotation of the form '@deprecated' | 621 * Return `true` if this element has an annotation of the form '@deprecated' |
| 622 * or '@Deprecated('..')'. | 622 * or '@Deprecated('..')'. |
| 623 */ | 623 */ |
| 624 bool get isDeprecated; | 624 bool get isDeprecated; |
| 625 | 625 |
| 626 /** | 626 /** |
| 627 * Return `true` if this element has an annotation of the form '@JS(..)'. |
| 628 */ |
| 629 bool get isJS; |
| 630 |
| 631 /** |
| 627 * Return `true` if this element has an annotation of the form '@override'. | 632 * Return `true` if this element has an annotation of the form '@override'. |
| 628 */ | 633 */ |
| 629 bool get isOverride; | 634 bool get isOverride; |
| 630 | 635 |
| 631 /** | 636 /** |
| 632 * Return `true` if this element is private. Private elements are visible only | 637 * Return `true` if this element is private. Private elements are visible only |
| 633 * within the library in which they are declared. | 638 * within the library in which they are declared. |
| 634 */ | 639 */ |
| 635 bool get isPrivate; | 640 bool get isPrivate; |
| 636 | 641 |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 806 */ | 811 */ |
| 807 Element get element; | 812 Element get element; |
| 808 | 813 |
| 809 /** | 814 /** |
| 810 * Return `true` if this annotation marks the associated element as being | 815 * Return `true` if this annotation marks the associated element as being |
| 811 * deprecated. | 816 * deprecated. |
| 812 */ | 817 */ |
| 813 bool get isDeprecated; | 818 bool get isDeprecated; |
| 814 | 819 |
| 815 /** | 820 /** |
| 821 * Return `true` if this annotation marks the associated element with the `JS` |
| 822 * annotation. |
| 823 */ |
| 824 bool get isJS; |
| 825 |
| 826 /** |
| 816 * Return `true` if this annotation marks the associated member as requiring | 827 * Return `true` if this annotation marks the associated member as requiring |
| 817 * overriding methods to call super. | 828 * overriding methods to call super. |
| 818 */ | 829 */ |
| 819 bool get isMustCallSuper; | 830 bool get isMustCallSuper; |
| 820 | 831 |
| 821 /** | 832 /** |
| 822 * Return `true` if this annotation marks the associated method as being | 833 * Return `true` if this annotation marks the associated method as being |
| 823 * expected to override an inherited method. | 834 * expected to override an inherited method. |
| 824 */ | 835 */ |
| 825 bool get isOverride; | 836 bool get isOverride; |
| (...skipping 1153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1979 */ | 1990 */ |
| 1980 bool get isStatic; | 1991 bool get isStatic; |
| 1981 | 1992 |
| 1982 /** | 1993 /** |
| 1983 * Return the declared type of this variable, or `null` if the variable did | 1994 * Return the declared type of this variable, or `null` if the variable did |
| 1984 * not have a declared type (such as if it was declared using the keyword | 1995 * not have a declared type (such as if it was declared using the keyword |
| 1985 * 'var'). | 1996 * 'var'). |
| 1986 */ | 1997 */ |
| 1987 DartType get type; | 1998 DartType get type; |
| 1988 } | 1999 } |
| OLD | NEW |