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

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

Issue 192303002: Support for @DartName and @DartOptional annotations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.element; 8 library engine.element;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 2510 matching lines...) Expand 10 before | Expand all | Expand 10 after
2521 /** 2521 /**
2522 * An empty array of class elements. 2522 * An empty array of class elements.
2523 */ 2523 */
2524 static List<ClassElement> EMPTY_ARRAY = new List<ClassElement>(0); 2524 static List<ClassElement> EMPTY_ARRAY = new List<ClassElement>(0);
2525 2525
2526 /** 2526 /**
2527 * Initialize a newly created class element to have the given name. 2527 * Initialize a newly created class element to have the given name.
2528 * 2528 *
2529 * @param name the name of this element 2529 * @param name the name of this element
2530 */ 2530 */
2531 ClassElementImpl(Identifier name) : super.con1(name); 2531 ClassElementImpl(Identifier name) : super.forNode(name);
2532 2532
2533 accept(ElementVisitor visitor) => visitor.visitClassElement(this); 2533 accept(ElementVisitor visitor) => visitor.visitClassElement(this);
2534 2534
2535 List<PropertyAccessorElement> get accessors => _accessors; 2535 List<PropertyAccessorElement> get accessors => _accessors;
2536 2536
2537 List<InterfaceType> get allSupertypes { 2537 List<InterfaceType> get allSupertypes {
2538 List<InterfaceType> list = new List<InterfaceType>(); 2538 List<InterfaceType> list = new List<InterfaceType>();
2539 _collectAllSupertypes(list); 2539 _collectAllSupertypes(list);
2540 return new List.from(list); 2540 return new List.from(list);
2541 } 2541 }
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
3028 /** 3028 /**
3029 * An array containing all of the Angular views contained in this compilation unit. 3029 * An array containing all of the Angular views contained in this compilation unit.
3030 */ 3030 */
3031 List<AngularViewElement> _angularViews = AngularViewElement.EMPTY_ARRAY; 3031 List<AngularViewElement> _angularViews = AngularViewElement.EMPTY_ARRAY;
3032 3032
3033 /** 3033 /**
3034 * Initialize a newly created compilation unit element to have the given name. 3034 * Initialize a newly created compilation unit element to have the given name.
3035 * 3035 *
3036 * @param name the name of this element 3036 * @param name the name of this element
3037 */ 3037 */
3038 CompilationUnitElementImpl(String name) : super.con2(name, -1); 3038 CompilationUnitElementImpl(String name) : super(name, -1);
3039 3039
3040 accept(ElementVisitor visitor) => visitor.visitCompilationUnitElement(this); 3040 accept(ElementVisitor visitor) => visitor.visitCompilationUnitElement(this);
3041 3041
3042 bool operator ==(Object object) => object != null && runtimeType == object.run timeType && source == (object as CompilationUnitElementImpl).source; 3042 bool operator ==(Object object) => object != null && runtimeType == object.run timeType && source == (object as CompilationUnitElementImpl).source;
3043 3043
3044 List<PropertyAccessorElement> get accessors => _accessors; 3044 List<PropertyAccessorElement> get accessors => _accessors;
3045 3045
3046 List<AngularViewElement> get angularViews => _angularViews; 3046 List<AngularViewElement> get angularViews => _angularViews;
3047 3047
3048 ElementImpl getChild(String identifier) { 3048 ElementImpl getChild(String identifier) {
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
3445 /** 3445 /**
3446 * The type defined by this element. 3446 * The type defined by this element.
3447 */ 3447 */
3448 DynamicTypeImpl type; 3448 DynamicTypeImpl type;
3449 3449
3450 /** 3450 /**
3451 * Initialize a newly created instance of this class. Instances of this class should <b>not</b> be 3451 * Initialize a newly created instance of this class. Instances of this class should <b>not</b> be
3452 * created except as part of creating the type associated with this element. T he single instance 3452 * created except as part of creating the type associated with this element. T he single instance
3453 * of this class should be accessed through the method [getInstance]. 3453 * of this class should be accessed through the method [getInstance].
3454 */ 3454 */
3455 DynamicElementImpl() : super.con2(Keyword.DYNAMIC.syntax, -1) { 3455 DynamicElementImpl() : super(Keyword.DYNAMIC.syntax, -1) {
3456 setModifier(Modifier.SYNTHETIC, true); 3456 setModifier(Modifier.SYNTHETIC, true);
3457 } 3457 }
3458 3458
3459 accept(ElementVisitor visitor) => null; 3459 accept(ElementVisitor visitor) => null;
3460 3460
3461 ElementKind get kind => ElementKind.DYNAMIC; 3461 ElementKind get kind => ElementKind.DYNAMIC;
3462 } 3462 }
3463 3463
3464 /** 3464 /**
3465 * Instances of the class `ElementAnnotationImpl` implement an [ElementAnnotatio n]. 3465 * Instances of the class `ElementAnnotationImpl` implement an [ElementAnnotatio n].
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
3583 /** 3583 /**
3584 * A cached copy of the calculated hashCode for this element. 3584 * A cached copy of the calculated hashCode for this element.
3585 */ 3585 */
3586 int _cachedHashCode = 0; 3586 int _cachedHashCode = 0;
3587 3587
3588 /** 3588 /**
3589 * Initialize a newly created element to have the given name. 3589 * Initialize a newly created element to have the given name.
3590 * 3590 *
3591 * @param name the name of this element 3591 * @param name the name of this element
3592 */ 3592 */
3593 ElementImpl.con1(Identifier name) : this.con2(name == null ? "" : name.name, n ame == null ? -1 : name.offset); 3593 ElementImpl.forNode(Identifier name) : this(name == null ? "" : name.name, nam e == null ? -1 : name.offset);
3594 3594
3595 /** 3595 /**
3596 * Initialize a newly created element to have the given name. 3596 * Initialize a newly created element to have the given name.
3597 * 3597 *
3598 * @param name the name of this element 3598 * @param name the name of this element
3599 * @param nameOffset the offset of the name of this element in the file that c ontains the 3599 * @param nameOffset the offset of the name of this element in the file that c ontains the
3600 * declaration of this element 3600 * declaration of this element
3601 */ 3601 */
3602 ElementImpl.con2(String name, this.nameOffset) { 3602 ElementImpl(String name, this.nameOffset) {
3603 this._name = StringUtilities.intern(name); 3603 this._name = StringUtilities.intern(name);
3604 } 3604 }
3605 3605
3606 String computeDocumentationComment() { 3606 String computeDocumentationComment() {
3607 AnalysisContext context = this.context; 3607 AnalysisContext context = this.context;
3608 if (context == null) { 3608 if (context == null) {
3609 return null; 3609 return null;
3610 } 3610 }
3611 return context.computeDocumentationComment(this); 3611 return context.computeDocumentationComment(this);
3612 } 3612 }
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
4154 /** 4154 /**
4155 * An empty array of executable elements. 4155 * An empty array of executable elements.
4156 */ 4156 */
4157 static List<ExecutableElement> EMPTY_ARRAY = new List<ExecutableElement>(0); 4157 static List<ExecutableElement> EMPTY_ARRAY = new List<ExecutableElement>(0);
4158 4158
4159 /** 4159 /**
4160 * Initialize a newly created executable element to have the given name. 4160 * Initialize a newly created executable element to have the given name.
4161 * 4161 *
4162 * @param name the name of this element 4162 * @param name the name of this element
4163 */ 4163 */
4164 ExecutableElementImpl.con1(Identifier name) : super.con1(name); 4164 ExecutableElementImpl.con1(Identifier name) : super.forNode(name);
4165 4165
4166 /** 4166 /**
4167 * Initialize a newly created executable element to have the given name. 4167 * Initialize a newly created executable element to have the given name.
4168 * 4168 *
4169 * @param name the name of this element 4169 * @param name the name of this element
4170 * @param nameOffset the offset of the name of this element in the file that c ontains the 4170 * @param nameOffset the offset of the name of this element in the file that c ontains the
4171 * declaration of this element 4171 * declaration of this element
4172 */ 4172 */
4173 ExecutableElementImpl.con2(String name, int nameOffset) : super.con2(name, nam eOffset); 4173 ExecutableElementImpl.con2(String name, int nameOffset) : super(name, nameOffs et);
4174 4174
4175 ElementImpl getChild(String identifier) { 4175 ElementImpl getChild(String identifier) {
4176 for (ExecutableElement function in _functions) { 4176 for (ExecutableElement function in _functions) {
4177 if ((function as ExecutableElementImpl).identifier == identifier) { 4177 if ((function as ExecutableElementImpl).identifier == identifier) {
4178 return function as ExecutableElementImpl; 4178 return function as ExecutableElementImpl;
4179 } 4179 }
4180 } 4180 }
4181 for (LabelElement label in _labels) { 4181 for (LabelElement label in _labels) {
4182 if ((label as LabelElementImpl).identifier == identifier) { 4182 if ((label as LabelElementImpl).identifier == identifier) {
4183 return label as LabelElementImpl; 4183 return label as LabelElementImpl;
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
4319 4319
4320 /** 4320 /**
4321 * The combinators that were specified as part of the export directive in the order in which they 4321 * The combinators that were specified as part of the export directive in the order in which they
4322 * were specified. 4322 * were specified.
4323 */ 4323 */
4324 List<NamespaceCombinator> combinators = NamespaceCombinator.EMPTY_ARRAY; 4324 List<NamespaceCombinator> combinators = NamespaceCombinator.EMPTY_ARRAY;
4325 4325
4326 /** 4326 /**
4327 * Initialize a newly created export element. 4327 * Initialize a newly created export element.
4328 */ 4328 */
4329 ExportElementImpl() : super.con1(null); 4329 ExportElementImpl() : super.forNode(null);
4330 4330
4331 accept(ElementVisitor visitor) => visitor.visitExportElement(this); 4331 accept(ElementVisitor visitor) => visitor.visitExportElement(this);
4332 4332
4333 ElementKind get kind => ElementKind.EXPORT; 4333 ElementKind get kind => ElementKind.EXPORT;
4334 4334
4335 void appendTo(JavaStringBuilder builder) { 4335 void appendTo(JavaStringBuilder builder) {
4336 builder.append("export "); 4336 builder.append("export ");
4337 (exportedLibrary as LibraryElementImpl).appendTo(builder); 4337 (exportedLibrary as LibraryElementImpl).appendTo(builder);
4338 } 4338 }
4339 4339
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
4529 /** 4529 /**
4530 * An empty array of type alias elements. 4530 * An empty array of type alias elements.
4531 */ 4531 */
4532 static List<FunctionTypeAliasElement> EMPTY_ARRAY = new List<FunctionTypeAlias Element>(0); 4532 static List<FunctionTypeAliasElement> EMPTY_ARRAY = new List<FunctionTypeAlias Element>(0);
4533 4533
4534 /** 4534 /**
4535 * Initialize a newly created type alias element to have the given name. 4535 * Initialize a newly created type alias element to have the given name.
4536 * 4536 *
4537 * @param name the name of this element 4537 * @param name the name of this element
4538 */ 4538 */
4539 FunctionTypeAliasElementImpl(Identifier name) : super.con1(name); 4539 FunctionTypeAliasElementImpl(Identifier name) : super.forNode(name);
4540 4540
4541 accept(ElementVisitor visitor) => visitor.visitFunctionTypeAliasElement(this); 4541 accept(ElementVisitor visitor) => visitor.visitFunctionTypeAliasElement(this);
4542 4542
4543 ElementImpl getChild(String identifier) { 4543 ElementImpl getChild(String identifier) {
4544 for (VariableElement parameter in _parameters) { 4544 for (VariableElement parameter in _parameters) {
4545 if ((parameter as VariableElementImpl).identifier == identifier) { 4545 if ((parameter as VariableElementImpl).identifier == identifier) {
4546 return parameter as VariableElementImpl; 4546 return parameter as VariableElementImpl;
4547 } 4547 }
4548 } 4548 }
4549 for (TypeParameterElement typeParameter in _typeParameters) { 4549 for (TypeParameterElement typeParameter in _typeParameters) {
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
4702 * not resolved. 4702 * not resolved.
4703 */ 4703 */
4704 CompilationUnitElement angularCompilationUnit; 4704 CompilationUnitElement angularCompilationUnit;
4705 4705
4706 /** 4706 /**
4707 * Initialize a newly created HTML element to have the given name. 4707 * Initialize a newly created HTML element to have the given name.
4708 * 4708 *
4709 * @param context the analysis context in which the HTML file is defined 4709 * @param context the analysis context in which the HTML file is defined
4710 * @param name the name of this element 4710 * @param name the name of this element
4711 */ 4711 */
4712 HtmlElementImpl(this.context, String name) : super.con2(name, -1); 4712 HtmlElementImpl(this.context, String name) : super(name, -1);
4713 4713
4714 accept(ElementVisitor visitor) => visitor.visitHtmlElement(this); 4714 accept(ElementVisitor visitor) => visitor.visitHtmlElement(this);
4715 4715
4716 bool operator ==(Object object) { 4716 bool operator ==(Object object) {
4717 if (identical(object, this)) { 4717 if (identical(object, this)) {
4718 return true; 4718 return true;
4719 } 4719 }
4720 if (object == null) { 4720 if (object == null) {
4721 return false; 4721 return false;
4722 } 4722 }
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
4765 /** 4765 /**
4766 * An empty array of HTML script elements. 4766 * An empty array of HTML script elements.
4767 */ 4767 */
4768 static List<HtmlScriptElement> EMPTY_ARRAY = new List<HtmlScriptElement>(0); 4768 static List<HtmlScriptElement> EMPTY_ARRAY = new List<HtmlScriptElement>(0);
4769 4769
4770 /** 4770 /**
4771 * Initialize a newly created script element to have the specified tag name an d offset. 4771 * Initialize a newly created script element to have the specified tag name an d offset.
4772 * 4772 *
4773 * @param node the XML node from which this element is derived (not `null`) 4773 * @param node the XML node from which this element is derived (not `null`)
4774 */ 4774 */
4775 HtmlScriptElementImpl(XmlTagNode node) : super.con2(node.tag, node.tagToken.of fset); 4775 HtmlScriptElementImpl(XmlTagNode node) : super(node.tag, node.tagToken.offset) ;
4776 } 4776 }
4777 4777
4778 /** 4778 /**
4779 * Instances of the class `ImportElementImpl` implement an [ImportElement]. 4779 * Instances of the class `ImportElementImpl` implement an [ImportElement].
4780 */ 4780 */
4781 class ImportElementImpl extends ElementImpl implements ImportElement { 4781 class ImportElementImpl extends ElementImpl implements ImportElement {
4782 /** 4782 /**
4783 * The offset of the character immediately following the last character of thi s node's URI, may be 4783 * The offset of the character immediately following the last character of thi s node's URI, may be
4784 * `-1` if synthetic. 4784 * `-1` if synthetic.
4785 */ 4785 */
(...skipping 25 matching lines...) Expand all
4811 * The prefix that was specified as part of the import directive, or `null` if there was no 4811 * The prefix that was specified as part of the import directive, or `null` if there was no
4812 * prefix specified. 4812 * prefix specified.
4813 */ 4813 */
4814 PrefixElement prefix; 4814 PrefixElement prefix;
4815 4815
4816 /** 4816 /**
4817 * Initialize a newly created import element. 4817 * Initialize a newly created import element.
4818 * 4818 *
4819 * @param offset the directive offset, may be `-1` if synthetic. 4819 * @param offset the directive offset, may be `-1` if synthetic.
4820 */ 4820 */
4821 ImportElementImpl(int offset) : super.con2(null, offset); 4821 ImportElementImpl(int offset) : super(null, offset);
4822 4822
4823 accept(ElementVisitor visitor) => visitor.visitImportElement(this); 4823 accept(ElementVisitor visitor) => visitor.visitImportElement(this);
4824 4824
4825 ElementKind get kind => ElementKind.IMPORT; 4825 ElementKind get kind => ElementKind.IMPORT;
4826 4826
4827 void visitChildren(ElementVisitor visitor) { 4827 void visitChildren(ElementVisitor visitor) {
4828 super.visitChildren(visitor); 4828 super.visitChildren(visitor);
4829 safelyVisitChild(prefix, visitor); 4829 safelyVisitChild(prefix, visitor);
4830 } 4830 }
4831 4831
(...skipping 26 matching lines...) Expand all
4858 static List<LabelElement> EMPTY_ARRAY = new List<LabelElement>(0); 4858 static List<LabelElement> EMPTY_ARRAY = new List<LabelElement>(0);
4859 4859
4860 /** 4860 /**
4861 * Initialize a newly created label element to have the given name. 4861 * Initialize a newly created label element to have the given name.
4862 * 4862 *
4863 * @param name the name of this element 4863 * @param name the name of this element
4864 * @param onSwitchStatement `true` if this label is associated with a `switch` 4864 * @param onSwitchStatement `true` if this label is associated with a `switch`
4865 * statement 4865 * statement
4866 * @param onSwitchMember `true` if this label is associated with a `switch` me mber 4866 * @param onSwitchMember `true` if this label is associated with a `switch` me mber
4867 */ 4867 */
4868 LabelElementImpl(Identifier name, bool onSwitchStatement, bool onSwitchMember) : super.con1(name) { 4868 LabelElementImpl(Identifier name, bool onSwitchStatement, bool onSwitchMember) : super.forNode(name) {
4869 this._onSwitchStatement = onSwitchStatement; 4869 this._onSwitchStatement = onSwitchStatement;
4870 this._onSwitchMember = onSwitchMember; 4870 this._onSwitchMember = onSwitchMember;
4871 } 4871 }
4872 4872
4873 accept(ElementVisitor visitor) => visitor.visitLabelElement(this); 4873 accept(ElementVisitor visitor) => visitor.visitLabelElement(this);
4874 4874
4875 ExecutableElement get enclosingElement => super.enclosingElement as Executable Element; 4875 ExecutableElement get enclosingElement => super.enclosingElement as Executable Element;
4876 4876
4877 ElementKind get kind => ElementKind.LABEL; 4877 ElementKind get kind => ElementKind.LABEL;
4878 4878
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
4973 * Is `true` if this library is created for Angular analysis. 4973 * Is `true` if this library is created for Angular analysis.
4974 */ 4974 */
4975 bool _isAngularHtml = false; 4975 bool _isAngularHtml = false;
4976 4976
4977 /** 4977 /**
4978 * Initialize a newly created library element to have the given name. 4978 * Initialize a newly created library element to have the given name.
4979 * 4979 *
4980 * @param context the analysis context in which the library is defined 4980 * @param context the analysis context in which the library is defined
4981 * @param name the name of this element 4981 * @param name the name of this element
4982 */ 4982 */
4983 LibraryElementImpl(this.context, LibraryIdentifier name) : super.con1(name); 4983 LibraryElementImpl(this.context, LibraryIdentifier name) : super.forNode(name) ;
4984 4984
4985 accept(ElementVisitor visitor) => visitor.visitLibraryElement(this); 4985 accept(ElementVisitor visitor) => visitor.visitLibraryElement(this);
4986 4986
4987 bool operator ==(Object object) => object != null && runtimeType == object.run timeType && _definingCompilationUnit == (object as LibraryElementImpl).definingC ompilationUnit; 4987 bool operator ==(Object object) => object != null && runtimeType == object.run timeType && _definingCompilationUnit == (object as LibraryElementImpl).definingC ompilationUnit;
4988 4988
4989 ElementImpl getChild(String identifier) { 4989 ElementImpl getChild(String identifier) {
4990 if ((_definingCompilationUnit as CompilationUnitElementImpl).identifier == i dentifier) { 4990 if ((_definingCompilationUnit as CompilationUnitElementImpl).identifier == i dentifier) {
4991 return _definingCompilationUnit as CompilationUnitElementImpl; 4991 return _definingCompilationUnit as CompilationUnitElementImpl;
4992 } 4992 }
4993 for (CompilationUnitElement part in _parts) { 4993 for (CompilationUnitElement part in _parts) {
(...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after
5896 /** 5896 /**
5897 * An empty array of prefix elements. 5897 * An empty array of prefix elements.
5898 */ 5898 */
5899 static List<PrefixElement> EMPTY_ARRAY = new List<PrefixElement>(0); 5899 static List<PrefixElement> EMPTY_ARRAY = new List<PrefixElement>(0);
5900 5900
5901 /** 5901 /**
5902 * Initialize a newly created prefix element to have the given name. 5902 * Initialize a newly created prefix element to have the given name.
5903 * 5903 *
5904 * @param name the name of this element 5904 * @param name the name of this element
5905 */ 5905 */
5906 PrefixElementImpl(Identifier name) : super.con1(name); 5906 PrefixElementImpl(Identifier name) : super.forNode(name);
5907 5907
5908 accept(ElementVisitor visitor) => visitor.visitPrefixElement(this); 5908 accept(ElementVisitor visitor) => visitor.visitPrefixElement(this);
5909 5909
5910 LibraryElement get enclosingElement => super.enclosingElement as LibraryElemen t; 5910 LibraryElement get enclosingElement => super.enclosingElement as LibraryElemen t;
5911 5911
5912 List<LibraryElement> get importedLibraries => _importedLibraries; 5912 List<LibraryElement> get importedLibraries => _importedLibraries;
5913 5913
5914 ElementKind get kind => ElementKind.PREFIX; 5914 ElementKind get kind => ElementKind.PREFIX;
5915 5915
5916 /** 5916 /**
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
6141 * Instances of the class `ToolkitObjectElementImpl` implement a `ToolkitObjectE lement`. 6141 * Instances of the class `ToolkitObjectElementImpl` implement a `ToolkitObjectE lement`.
6142 */ 6142 */
6143 abstract class ToolkitObjectElementImpl extends ElementImpl implements ToolkitOb jectElement { 6143 abstract class ToolkitObjectElementImpl extends ElementImpl implements ToolkitOb jectElement {
6144 /** 6144 /**
6145 * Initialize a newly created toolkit object element to have the given name. 6145 * Initialize a newly created toolkit object element to have the given name.
6146 * 6146 *
6147 * @param name the name of this element 6147 * @param name the name of this element
6148 * @param nameOffset the offset of the name of this element in the file that c ontains the 6148 * @param nameOffset the offset of the name of this element in the file that c ontains the
6149 * declaration of this element 6149 * declaration of this element
6150 */ 6150 */
6151 ToolkitObjectElementImpl(String name, int nameOffset) : super.con2(name, nameO ffset); 6151 ToolkitObjectElementImpl(String name, int nameOffset) : super(name, nameOffset );
6152 } 6152 }
6153 6153
6154 /** 6154 /**
6155 * Instances of the class `TopLevelVariableElementImpl` implement a 6155 * Instances of the class `TopLevelVariableElementImpl` implement a
6156 * `TopLevelVariableElement`. 6156 * `TopLevelVariableElement`.
6157 */ 6157 */
6158 class TopLevelVariableElementImpl extends PropertyInducingElementImpl implements TopLevelVariableElement { 6158 class TopLevelVariableElementImpl extends PropertyInducingElementImpl implements TopLevelVariableElement {
6159 /** 6159 /**
6160 * An empty array of top-level variable elements. 6160 * An empty array of top-level variable elements.
6161 */ 6161 */
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
6200 /** 6200 /**
6201 * An empty array of type parameter elements. 6201 * An empty array of type parameter elements.
6202 */ 6202 */
6203 static List<TypeParameterElement> EMPTY_ARRAY = new List<TypeParameterElement> (0); 6203 static List<TypeParameterElement> EMPTY_ARRAY = new List<TypeParameterElement> (0);
6204 6204
6205 /** 6205 /**
6206 * Initialize a newly created type parameter element to have the given name. 6206 * Initialize a newly created type parameter element to have the given name.
6207 * 6207 *
6208 * @param name the name of this element 6208 * @param name the name of this element
6209 */ 6209 */
6210 TypeParameterElementImpl(Identifier name) : super.con1(name); 6210 TypeParameterElementImpl(Identifier name) : super.forNode(name);
6211 6211
6212 accept(ElementVisitor visitor) => visitor.visitTypeParameterElement(this); 6212 accept(ElementVisitor visitor) => visitor.visitTypeParameterElement(this);
6213 6213
6214 ElementKind get kind => ElementKind.TYPE_PARAMETER; 6214 ElementKind get kind => ElementKind.TYPE_PARAMETER;
6215 6215
6216 void appendTo(JavaStringBuilder builder) { 6216 void appendTo(JavaStringBuilder builder) {
6217 builder.append(displayName); 6217 builder.append(displayName);
6218 if (bound != null) { 6218 if (bound != null) {
6219 builder.append(" extends "); 6219 builder.append(" extends ");
6220 builder.append(bound); 6220 builder.append(bound);
(...skipping 19 matching lines...) Expand all
6240 /** 6240 /**
6241 * An empty array of variable elements. 6241 * An empty array of variable elements.
6242 */ 6242 */
6243 static List<VariableElement> EMPTY_ARRAY = new List<VariableElement>(0); 6243 static List<VariableElement> EMPTY_ARRAY = new List<VariableElement>(0);
6244 6244
6245 /** 6245 /**
6246 * Initialize a newly created variable element to have the given name. 6246 * Initialize a newly created variable element to have the given name.
6247 * 6247 *
6248 * @param name the name of this element 6248 * @param name the name of this element
6249 */ 6249 */
6250 VariableElementImpl.con1(Identifier name) : super.con1(name); 6250 VariableElementImpl.con1(Identifier name) : super.forNode(name);
6251 6251
6252 /** 6252 /**
6253 * Initialize a newly created variable element to have the given name. 6253 * Initialize a newly created variable element to have the given name.
6254 * 6254 *
6255 * @param name the name of this element 6255 * @param name the name of this element
6256 * @param nameOffset the offset of the name of this element in the file that c ontains the 6256 * @param nameOffset the offset of the name of this element in the file that c ontains the
6257 * declaration of this element 6257 * declaration of this element
6258 */ 6258 */
6259 VariableElementImpl.con2(String name, int nameOffset) : super.con2(name, nameO ffset); 6259 VariableElementImpl.con2(String name, int nameOffset) : super(name, nameOffset );
6260 6260
6261 /** 6261 /**
6262 * Return the result of evaluating this variable's initializer as a compile-ti me constant 6262 * Return the result of evaluating this variable's initializer as a compile-ti me constant
6263 * expression, or `null` if this variable is not a 'const' variable, if it doe s not have an 6263 * expression, or `null` if this variable is not a 'const' variable, if it doe s not have an
6264 * initializer, or if the compilation unit containing the variable has not bee n resolved. 6264 * initializer, or if the compilation unit containing the variable has not bee n resolved.
6265 * 6265 *
6266 * @return the result of evaluating this variable's initializer 6266 * @return the result of evaluating this variable's initializer
6267 */ 6267 */
6268 EvaluationResultImpl get evaluationResult => null; 6268 EvaluationResultImpl get evaluationResult => null;
6269 6269
(...skipping 3527 matching lines...) Expand 10 before | Expand all | Expand 10 after
9797 TypeParameterElement get element; 9797 TypeParameterElement get element;
9798 } 9798 }
9799 9799
9800 /** 9800 /**
9801 * The interface `VoidType` defines the behavior of the unique object representi ng the type 9801 * The interface `VoidType` defines the behavior of the unique object representi ng the type
9802 * `void`. 9802 * `void`.
9803 */ 9803 */
9804 abstract class VoidType implements Type2 { 9804 abstract class VoidType implements Type2 {
9805 VoidType substitute2(List<Type2> argumentTypes, List<Type2> parameterTypes); 9805 VoidType substitute2(List<Type2> argumentTypes, List<Type2> parameterTypes);
9806 } 9806 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698