| 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 // 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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 | 197 |
| 198 /** | 198 /** |
| 199 * Return `true` if this class has reference to super (so, for example, cannot
be used as a | 199 * Return `true` if this class has reference to super (so, for example, cannot
be used as a |
| 200 * mixin). | 200 * mixin). |
| 201 * | 201 * |
| 202 * @return `true` if this class has reference to super | 202 * @return `true` if this class has reference to super |
| 203 */ | 203 */ |
| 204 bool get hasReferenceToSuper; | 204 bool get hasReferenceToSuper; |
| 205 | 205 |
| 206 /** | 206 /** |
| 207 * Return `true` if this class declares a static member. |
| 208 * |
| 209 * @return `true` if this class declares a static member |
| 210 */ |
| 211 bool get hasStaticMember; |
| 212 |
| 213 /** |
| 207 * Return `true` if this class is abstract. A class is abstract if it has an e
xplicit | 214 * Return `true` if this class is abstract. A class is abstract if it has an e
xplicit |
| 208 * `abstract` modifier. Note, that this definition of <i>abstract</i> is diffe
rent from | 215 * `abstract` modifier. Note, that this definition of <i>abstract</i> is diffe
rent from |
| 209 * <i>has unimplemented members</i>. | 216 * <i>has unimplemented members</i>. |
| 210 * | 217 * |
| 211 * @return `true` if this class is abstract | 218 * @return `true` if this class is abstract |
| 212 */ | 219 */ |
| 213 bool get isAbstract; | 220 bool get isAbstract; |
| 214 | 221 |
| 215 /** | 222 /** |
| 216 * Return `true` if this class [isProxy], or if it inherits the proxy annotati
on | 223 * Return `true` if this class [isProxy], or if it inherits the proxy annotati
on |
| (...skipping 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1219 PrefixElement get prefix; | 1226 PrefixElement get prefix; |
| 1220 | 1227 |
| 1221 /** | 1228 /** |
| 1222 * Return the offset of the prefix of this import in the file that contains th
is import directive, | 1229 * Return the offset of the prefix of this import in the file that contains th
is import directive, |
| 1223 * or `-1` if this import is synthetic, does not have a prefix, or otherwise d
oes not have | 1230 * or `-1` if this import is synthetic, does not have a prefix, or otherwise d
oes not have |
| 1224 * an offset. | 1231 * an offset. |
| 1225 * | 1232 * |
| 1226 * @return the offset of the prefix of this import | 1233 * @return the offset of the prefix of this import |
| 1227 */ | 1234 */ |
| 1228 int get prefixOffset; | 1235 int get prefixOffset; |
| 1229 | |
| 1230 /** | |
| 1231 * Return the offset of the character immediately following the last character
of this node's URI, | |
| 1232 * or `-1` for synthetic import. | |
| 1233 * | |
| 1234 * @return the offset of the character just past the node's URI | |
| 1235 */ | |
| 1236 int get uriEnd; | |
| 1237 } | 1236 } |
| 1238 | 1237 |
| 1239 /** | 1238 /** |
| 1240 * The interface `LabelElement` defines the behavior of elements representing a
label | 1239 * The interface `LabelElement` defines the behavior of elements representing a
label |
| 1241 * associated with a statement. | 1240 * associated with a statement. |
| 1242 */ | 1241 */ |
| 1243 abstract class LabelElement implements Element { | 1242 abstract class LabelElement implements Element { |
| 1244 /** | 1243 /** |
| 1245 * Return the executable element in which this label is defined. | 1244 * Return the executable element in which this label is defined. |
| 1246 * | 1245 * |
| (...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1736 */ | 1735 */ |
| 1737 abstract class UndefinedElement implements Element { | 1736 abstract class UndefinedElement implements Element { |
| 1738 } | 1737 } |
| 1739 | 1738 |
| 1740 /** | 1739 /** |
| 1741 * The interface `UriReferencedElement` defines the behavior of objects included
into a | 1740 * The interface `UriReferencedElement` defines the behavior of objects included
into a |
| 1742 * library using some URI. | 1741 * library using some URI. |
| 1743 */ | 1742 */ |
| 1744 abstract class UriReferencedElement implements Element { | 1743 abstract class UriReferencedElement implements Element { |
| 1745 /** | 1744 /** |
| 1745 * Return the offset of the character immediately following the last character
of this node's URI, |
| 1746 * or `-1` for synthetic import. |
| 1747 * |
| 1748 * @return the offset of the character just past the node's URI |
| 1749 */ |
| 1750 int get uriEnd; |
| 1751 |
| 1752 /** |
| 1753 * Return the offset of the URU in the file, or `-1` if this element is synthe
tic. |
| 1754 * |
| 1755 * @return the offset of the URI |
| 1756 */ |
| 1757 int get uriOffset; |
| 1758 |
| 1759 /** |
| 1746 * Return the URI that is used to include this element into the enclosing libr
ary, or `null` | 1760 * Return the URI that is used to include this element into the enclosing libr
ary, or `null` |
| 1747 * if this is the defining compilation unit of a library. | 1761 * if this is the defining compilation unit of a library. |
| 1748 * | 1762 * |
| 1749 * @return the URI that is used to include this element into the enclosing lib
rary | 1763 * @return the URI that is used to include this element into the enclosing lib
rary |
| 1750 */ | 1764 */ |
| 1751 String get uri; | 1765 String get uri; |
| 1752 } | 1766 } |
| 1753 | 1767 |
| 1754 /** | 1768 /** |
| 1755 * The interface `VariableElement` defines the behavior common to elements that
represent a | 1769 * The interface `VariableElement` defines the behavior common to elements that
represent a |
| (...skipping 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2798 } | 2812 } |
| 2799 } | 2813 } |
| 2800 // not found | 2814 // not found |
| 2801 return false; | 2815 return false; |
| 2802 } | 2816 } |
| 2803 | 2817 |
| 2804 @override | 2818 @override |
| 2805 bool get hasReferenceToSuper => hasModifier(Modifier.REFERENCES_SUPER); | 2819 bool get hasReferenceToSuper => hasModifier(Modifier.REFERENCES_SUPER); |
| 2806 | 2820 |
| 2807 @override | 2821 @override |
| 2822 bool get hasStaticMember { |
| 2823 for (MethodElement method in _methods) { |
| 2824 if (method.isStatic) { |
| 2825 return true; |
| 2826 } |
| 2827 } |
| 2828 for (PropertyAccessorElement accessor in _accessors) { |
| 2829 if (accessor.isStatic) { |
| 2830 return true; |
| 2831 } |
| 2832 } |
| 2833 return false; |
| 2834 } |
| 2835 |
| 2836 @override |
| 2808 bool get isAbstract => hasModifier(Modifier.ABSTRACT); | 2837 bool get isAbstract => hasModifier(Modifier.ABSTRACT); |
| 2809 | 2838 |
| 2810 @override | 2839 @override |
| 2811 bool get isOrInheritsProxy => _safeIsOrInheritsProxy(this, new Set<ClassElemen
t>()); | 2840 bool get isOrInheritsProxy => _safeIsOrInheritsProxy(this, new Set<ClassElemen
t>()); |
| 2812 | 2841 |
| 2813 @override | 2842 @override |
| 2814 bool get isProxy { | 2843 bool get isProxy { |
| 2815 for (ElementAnnotation annotation in metadata) { | 2844 for (ElementAnnotation annotation in metadata) { |
| 2816 if (annotation.isProxy) { | 2845 if (annotation.isProxy) { |
| 2817 return true; | 2846 return true; |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3102 } | 3131 } |
| 3103 } | 3132 } |
| 3104 return false; | 3133 return false; |
| 3105 } | 3134 } |
| 3106 } | 3135 } |
| 3107 | 3136 |
| 3108 /** | 3137 /** |
| 3109 * Instances of the class `CompilationUnitElementImpl` implement a | 3138 * Instances of the class `CompilationUnitElementImpl` implement a |
| 3110 * [CompilationUnitElement]. | 3139 * [CompilationUnitElement]. |
| 3111 */ | 3140 */ |
| 3112 class CompilationUnitElementImpl extends ElementImpl implements CompilationUnitE
lement { | 3141 class CompilationUnitElementImpl extends UriReferencedElementImpl implements Com
pilationUnitElement { |
| 3113 /** | 3142 /** |
| 3114 * An empty array of compilation unit elements. | 3143 * An empty array of compilation unit elements. |
| 3115 */ | 3144 */ |
| 3116 static List<CompilationUnitElement> EMPTY_ARRAY = new List<CompilationUnitElem
ent>(0); | 3145 static List<CompilationUnitElement> EMPTY_ARRAY = new List<CompilationUnitElem
ent>(0); |
| 3117 | 3146 |
| 3118 /** | 3147 /** |
| 3119 * The source that corresponds to this compilation unit. | 3148 * The source that corresponds to this compilation unit. |
| 3120 */ | 3149 */ |
| 3121 Source source; | 3150 Source source; |
| 3122 | 3151 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 3145 * An array containing all of the types contained in this compilation unit. | 3174 * An array containing all of the types contained in this compilation unit. |
| 3146 */ | 3175 */ |
| 3147 List<ClassElement> _types = ClassElementImpl.EMPTY_ARRAY; | 3176 List<ClassElement> _types = ClassElementImpl.EMPTY_ARRAY; |
| 3148 | 3177 |
| 3149 /** | 3178 /** |
| 3150 * An array containing all of the variables contained in this compilation unit
. | 3179 * An array containing all of the variables contained in this compilation unit
. |
| 3151 */ | 3180 */ |
| 3152 List<TopLevelVariableElement> _variables = TopLevelVariableElementImpl.EMPTY_A
RRAY; | 3181 List<TopLevelVariableElement> _variables = TopLevelVariableElementImpl.EMPTY_A
RRAY; |
| 3153 | 3182 |
| 3154 /** | 3183 /** |
| 3155 * The URI that is specified by the "part" directive in the enclosing library,
or `null` if | |
| 3156 * this is the defining compilation unit of a library. | |
| 3157 */ | |
| 3158 String uri; | |
| 3159 | |
| 3160 /** | |
| 3161 * An array containing all of the Angular views contained in this compilation
unit. | 3184 * An array containing all of the Angular views contained in this compilation
unit. |
| 3162 */ | 3185 */ |
| 3163 List<AngularViewElement> _angularViews = AngularViewElement.EMPTY_ARRAY; | 3186 List<AngularViewElement> _angularViews = AngularViewElement.EMPTY_ARRAY; |
| 3164 | 3187 |
| 3165 /** | 3188 /** |
| 3166 * Initialize a newly created compilation unit element to have the given name. | 3189 * Initialize a newly created compilation unit element to have the given name. |
| 3167 * | 3190 * |
| 3168 * @param name the name of this element | 3191 * @param name the name of this element |
| 3169 */ | 3192 */ |
| 3170 CompilationUnitElementImpl(String name) : super(name, -1); | 3193 CompilationUnitElementImpl(String name) : super(name, -1); |
| (...skipping 1341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4512 if (type != null) { | 4535 if (type != null) { |
| 4513 builder.append(Element.RIGHT_ARROW); | 4536 builder.append(Element.RIGHT_ARROW); |
| 4514 builder.append(type.returnType); | 4537 builder.append(type.returnType); |
| 4515 } | 4538 } |
| 4516 } | 4539 } |
| 4517 } | 4540 } |
| 4518 | 4541 |
| 4519 /** | 4542 /** |
| 4520 * Instances of the class `ExportElementImpl` implement an [ExportElement]. | 4543 * Instances of the class `ExportElementImpl` implement an [ExportElement]. |
| 4521 */ | 4544 */ |
| 4522 class ExportElementImpl extends ElementImpl implements ExportElement { | 4545 class ExportElementImpl extends UriReferencedElementImpl implements ExportElemen
t { |
| 4523 /** | |
| 4524 * The URI that is specified by this directive. | |
| 4525 */ | |
| 4526 String uri; | |
| 4527 | |
| 4528 /** | 4546 /** |
| 4529 * The library that is exported from this library by this export directive. | 4547 * The library that is exported from this library by this export directive. |
| 4530 */ | 4548 */ |
| 4531 LibraryElement exportedLibrary; | 4549 LibraryElement exportedLibrary; |
| 4532 | 4550 |
| 4533 /** | 4551 /** |
| 4534 * The combinators that were specified as part of the export directive in the
order in which they | 4552 * The combinators that were specified as part of the export directive in the
order in which they |
| 4535 * were specified. | 4553 * were specified. |
| 4536 */ | 4554 */ |
| 4537 List<NamespaceCombinator> combinators = NamespaceCombinator.EMPTY_ARRAY; | 4555 List<NamespaceCombinator> combinators = NamespaceCombinator.EMPTY_ARRAY; |
| 4538 | 4556 |
| 4539 /** | 4557 /** |
| 4540 * Initialize a newly created export element. | 4558 * Initialize a newly created export element. |
| 4541 */ | 4559 */ |
| 4542 ExportElementImpl() : super.forNode(null); | 4560 ExportElementImpl() : super(null, -1); |
| 4543 | 4561 |
| 4544 @override | 4562 @override |
| 4545 accept(ElementVisitor visitor) => visitor.visitExportElement(this); | 4563 accept(ElementVisitor visitor) => visitor.visitExportElement(this); |
| 4546 | 4564 |
| 4547 @override | 4565 @override |
| 4548 ElementKind get kind => ElementKind.EXPORT; | 4566 ElementKind get kind => ElementKind.EXPORT; |
| 4549 | 4567 |
| 4550 @override | 4568 @override |
| 4551 void appendTo(JavaStringBuilder builder) { | 4569 void appendTo(JavaStringBuilder builder) { |
| 4552 builder.append("export "); | 4570 builder.append("export "); |
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5020 * Initialize a newly created script element to have the specified tag name an
d offset. | 5038 * Initialize a newly created script element to have the specified tag name an
d offset. |
| 5021 * | 5039 * |
| 5022 * @param node the XML node from which this element is derived (not `null`) | 5040 * @param node the XML node from which this element is derived (not `null`) |
| 5023 */ | 5041 */ |
| 5024 HtmlScriptElementImpl(XmlTagNode node) : super(node.tag, node.tagToken.offset)
; | 5042 HtmlScriptElementImpl(XmlTagNode node) : super(node.tag, node.tagToken.offset)
; |
| 5025 } | 5043 } |
| 5026 | 5044 |
| 5027 /** | 5045 /** |
| 5028 * Instances of the class `ImportElementImpl` implement an [ImportElement]. | 5046 * Instances of the class `ImportElementImpl` implement an [ImportElement]. |
| 5029 */ | 5047 */ |
| 5030 class ImportElementImpl extends ElementImpl implements ImportElement { | 5048 class ImportElementImpl extends UriReferencedElementImpl implements ImportElemen
t { |
| 5031 /** | |
| 5032 * The offset of the character immediately following the last character of thi
s node's URI, may be | |
| 5033 * `-1` if synthetic. | |
| 5034 */ | |
| 5035 int uriEnd = -1; | |
| 5036 | |
| 5037 /** | 5049 /** |
| 5038 * The offset of the prefix of this import in the file that contains the this
import directive, or | 5050 * The offset of the prefix of this import in the file that contains the this
import directive, or |
| 5039 * `-1` if this import is synthetic. | 5051 * `-1` if this import is synthetic. |
| 5040 */ | 5052 */ |
| 5041 int prefixOffset = 0; | 5053 int prefixOffset = 0; |
| 5042 | 5054 |
| 5043 /** | 5055 /** |
| 5044 * The URI that is specified by this directive. | |
| 5045 */ | |
| 5046 String uri; | |
| 5047 | |
| 5048 /** | |
| 5049 * The library that is imported into this library by this import directive. | 5056 * The library that is imported into this library by this import directive. |
| 5050 */ | 5057 */ |
| 5051 LibraryElement importedLibrary; | 5058 LibraryElement importedLibrary; |
| 5052 | 5059 |
| 5053 /** | 5060 /** |
| 5054 * The combinators that were specified as part of the import directive in the
order in which they | 5061 * The combinators that were specified as part of the import directive in the
order in which they |
| 5055 * were specified. | 5062 * were specified. |
| 5056 */ | 5063 */ |
| 5057 List<NamespaceCombinator> combinators = NamespaceCombinator.EMPTY_ARRAY; | 5064 List<NamespaceCombinator> combinators = NamespaceCombinator.EMPTY_ARRAY; |
| 5058 | 5065 |
| (...skipping 1517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6576 void appendTo(JavaStringBuilder builder) { | 6583 void appendTo(JavaStringBuilder builder) { |
| 6577 builder.append(displayName); | 6584 builder.append(displayName); |
| 6578 if (bound != null) { | 6585 if (bound != null) { |
| 6579 builder.append(" extends "); | 6586 builder.append(" extends "); |
| 6580 builder.append(bound); | 6587 builder.append(bound); |
| 6581 } | 6588 } |
| 6582 } | 6589 } |
| 6583 } | 6590 } |
| 6584 | 6591 |
| 6585 /** | 6592 /** |
| 6593 * Instances of the class `UriReferencedElementImpl` implement an [UriReferenced
Element] |
| 6594 * . |
| 6595 */ |
| 6596 abstract class UriReferencedElementImpl extends ElementImpl implements UriRefere
ncedElement { |
| 6597 /** |
| 6598 * The offset of the URU in the file, may be `-1` if synthetic. |
| 6599 */ |
| 6600 int uriOffset = -1; |
| 6601 |
| 6602 /** |
| 6603 * The offset of the character immediately following the last character of thi
s node's URI, may be |
| 6604 * `-1` if synthetic. |
| 6605 */ |
| 6606 int uriEnd = -1; |
| 6607 |
| 6608 /** |
| 6609 * The URI that is specified by this directive. |
| 6610 */ |
| 6611 String uri; |
| 6612 |
| 6613 /** |
| 6614 * Initialize a newly created import element. |
| 6615 * |
| 6616 * @param name the name of this element |
| 6617 * @param offset the directive offset, may be `-1` if synthetic. |
| 6618 */ |
| 6619 UriReferencedElementImpl(String name, int offset) : super(name, offset); |
| 6620 } |
| 6621 |
| 6622 /** |
| 6586 * Instances of the class `VariableElementImpl` implement a `VariableElement`. | 6623 * Instances of the class `VariableElementImpl` implement a `VariableElement`. |
| 6587 */ | 6624 */ |
| 6588 abstract class VariableElementImpl extends ElementImpl implements VariableElemen
t { | 6625 abstract class VariableElementImpl extends ElementImpl implements VariableElemen
t { |
| 6589 /** | 6626 /** |
| 6590 * The declared type of this variable. | 6627 * The declared type of this variable. |
| 6591 */ | 6628 */ |
| 6592 DartType type; | 6629 DartType type; |
| 6593 | 6630 |
| 6594 /** | 6631 /** |
| 6595 * A synthetic function representing this variable's initializer, or `null` if
this variable | 6632 * A synthetic function representing this variable's initializer, or `null` if
this variable |
| (...skipping 3787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10383 } | 10420 } |
| 10384 | 10421 |
| 10385 /** | 10422 /** |
| 10386 * The interface `VoidType` defines the behavior of the unique object representi
ng the type | 10423 * The interface `VoidType` defines the behavior of the unique object representi
ng the type |
| 10387 * `void`. | 10424 * `void`. |
| 10388 */ | 10425 */ |
| 10389 abstract class VoidType implements DartType { | 10426 abstract class VoidType implements DartType { |
| 10390 @override | 10427 @override |
| 10391 VoidType substitute2(List<DartType> argumentTypes, List<DartType> parameterTyp
es); | 10428 VoidType substitute2(List<DartType> argumentTypes, List<DartType> parameterTyp
es); |
| 10392 } | 10429 } |
| OLD | NEW |