Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(560)

Side by Side Diff: pkg/analyzer/lib/dart/element/element.dart

Issue 1871103002: Support for @JS() validation (#26225). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: test fixes Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/element/element.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/element/element.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698