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

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

Issue 2096103002: Analyzer support for `@factory` methods (linter#253). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Allow decls w/o a return type. Created 4 years, 6 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 '@factory'.
628 */
629 bool get isFactory;
630
631 /**
627 * Return `true` if this element has an annotation of the form '@JS(..)'. 632 * Return `true` if this element has an annotation of the form '@JS(..)'.
628 */ 633 */
629 bool get isJS; 634 bool get isJS;
630 635
631 /** 636 /**
632 * Return `true` if this element has an annotation of the form '@override'. 637 * Return `true` if this element has an annotation of the form '@override'.
633 */ 638 */
634 bool get isOverride; 639 bool get isOverride;
635 640
636 /** 641 /**
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 */ 817 */
813 Element get element; 818 Element get element;
814 819
815 /** 820 /**
816 * Return `true` if this annotation marks the associated element as being 821 * Return `true` if this annotation marks the associated element as being
817 * deprecated. 822 * deprecated.
818 */ 823 */
819 bool get isDeprecated; 824 bool get isDeprecated;
820 825
821 /** 826 /**
827 * Return `true` if this annotation marks the associated member as a factory.
828 */
829 bool get isFactory;
830
831 /**
822 * Return `true` if this annotation marks the associated element with the `JS` 832 * Return `true` if this annotation marks the associated element with the `JS`
823 * annotation. 833 * annotation.
824 */ 834 */
825 bool get isJS; 835 bool get isJS;
826 836
827 /** 837 /**
828 * Return `true` if this annotation marks the associated member as requiring 838 * Return `true` if this annotation marks the associated member as requiring
829 * overriding methods to call super. 839 * overriding methods to call super.
830 */ 840 */
831 bool get isMustCallSuper; 841 bool get isMustCallSuper;
(...skipping 1179 matching lines...) Expand 10 before | Expand all | Expand 10 after
2011 DartType get type; 2021 DartType get type;
2012 2022
2013 /** 2023 /**
2014 * Return a representation of the value of this variable, forcing the value 2024 * Return a representation of the value of this variable, forcing the value
2015 * to be computed if it had not previously been computed, or `null` if either 2025 * to be computed if it had not previously been computed, or `null` if either
2016 * this variable was not declared with the 'const' modifier or if the value of 2026 * this variable was not declared with the 'const' modifier or if the value of
2017 * this variable could not be computed because of errors. 2027 * this variable could not be computed because of errors.
2018 */ 2028 */
2019 DartObject computeConstantValue(); 2029 DartObject computeConstantValue();
2020 } 2030 }
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