| 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'; |
| 11 | 11 |
| 12 import 'package:sharedfrontend/elements.dart' as shared; | |
| 13 | |
| 14 import 'ast.dart'; | 12 import 'ast.dart'; |
| 15 import 'constant.dart' show EvaluationResultImpl; | 13 import 'constant.dart' show EvaluationResultImpl; |
| 16 import 'engine.dart' show AnalysisContext, AnalysisEngine, AnalysisException; | 14 import 'engine.dart' show AnalysisContext, AnalysisEngine, AnalysisException; |
| 17 import 'html.dart' show XmlAttributeNode, XmlTagNode; | 15 import 'html.dart' show XmlAttributeNode, XmlTagNode; |
| 18 import 'java_core.dart'; | 16 import 'java_core.dart'; |
| 19 import 'java_engine.dart'; | 17 import 'java_engine.dart'; |
| 20 import 'resolver.dart'; | 18 import 'resolver.dart'; |
| 21 import 'scanner.dart' show Keyword; | 19 import 'scanner.dart' show Keyword; |
| 22 import 'sdk.dart' show DartSdk; | 20 import 'sdk.dart' show DartSdk; |
| 23 import 'source.dart'; | 21 import 'source.dart'; |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 | 104 |
| 107 @override | 105 @override |
| 108 BottomTypeImpl substitute2(List<DartType> argumentTypes, | 106 BottomTypeImpl substitute2(List<DartType> argumentTypes, |
| 109 List<DartType> parameterTypes) => | 107 List<DartType> parameterTypes) => |
| 110 this; | 108 this; |
| 111 } | 109 } |
| 112 | 110 |
| 113 /** | 111 /** |
| 114 * The interface `ClassElement` defines the behavior of elements that represent
a class. | 112 * The interface `ClassElement` defines the behavior of elements that represent
a class. |
| 115 */ | 113 */ |
| 116 abstract class ClassElement implements Element, shared.ClassElement { | 114 abstract class ClassElement implements Element { |
| 117 /** | 115 /** |
| 118 * Return an array containing all of the accessors (getters and setters) decla
red in this class. | 116 * Return an array containing all of the accessors (getters and setters) decla
red in this class. |
| 119 * | 117 * |
| 120 * @return the accessors declared in this class | 118 * @return the accessors declared in this class |
| 121 */ | 119 */ |
| 122 List<PropertyAccessorElement> get accessors; | 120 List<PropertyAccessorElement> get accessors; |
| 123 | 121 |
| 124 /** | 122 /** |
| 125 * Return an array containing all the supertypes defined for this class and it
s supertypes. This | 123 * Return an array containing all the supertypes defined for this class and it
s supertypes. This |
| 126 * includes superclasses, mixins and interfaces. | 124 * includes superclasses, mixins and interfaces. |
| (...skipping 2102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2229 * <i>synthetic</i>. Examples of synthetic elements include | 2227 * <i>synthetic</i>. Examples of synthetic elements include |
| 2230 * * default constructors in classes that do not define any explicit constructor
s, | 2228 * * default constructors in classes that do not define any explicit constructor
s, |
| 2231 * * getters and setters that are induced by explicit field declarations, | 2229 * * getters and setters that are induced by explicit field declarations, |
| 2232 * * fields that are induced by explicit declarations of getters and setters, an
d | 2230 * * fields that are induced by explicit declarations of getters and setters, an
d |
| 2233 * * functions representing the initialization expression for a variable. | 2231 * * functions representing the initialization expression for a variable. |
| 2234 * | 2232 * |
| 2235 * Second, there are elements in the element model that do not have a name. Thes
e correspond to | 2233 * Second, there are elements in the element model that do not have a name. Thes
e correspond to |
| 2236 * unnamed functions and exist in order to more accurately represent the semanti
c structure of the | 2234 * unnamed functions and exist in order to more accurately represent the semanti
c structure of the |
| 2237 * program. | 2235 * program. |
| 2238 */ | 2236 */ |
| 2239 abstract class Element extends shared.Element { | 2237 abstract class Element { |
| 2240 /** | 2238 /** |
| 2241 * An Unicode right arrow. | 2239 * An Unicode right arrow. |
| 2242 */ | 2240 */ |
| 2243 static final String RIGHT_ARROW = " \u2192 "; | 2241 static final String RIGHT_ARROW = " \u2192 "; |
| 2244 | 2242 |
| 2245 /** | 2243 /** |
| 2246 * A comparator that can be used to sort elements by their name offset. Elemen
ts with a smaller | 2244 * A comparator that can be used to sort elements by their name offset. Elemen
ts with a smaller |
| 2247 * offset will be sorted to be before elements with a larger name offset. | 2245 * offset will be sorted to be before elements with a larger name offset. |
| 2248 */ | 2246 */ |
| 2249 static final Comparator<Element> SORT_BY_OFFSET = | 2247 static final Comparator<Element> SORT_BY_OFFSET = |
| (...skipping 4872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7122 @override | 7120 @override |
| 7123 ElementKind get kind => ElementKind.LABEL; | 7121 ElementKind get kind => ElementKind.LABEL; |
| 7124 | 7122 |
| 7125 @override | 7123 @override |
| 7126 accept(ElementVisitor visitor) => visitor.visitLabelElement(this); | 7124 accept(ElementVisitor visitor) => visitor.visitLabelElement(this); |
| 7127 } | 7125 } |
| 7128 | 7126 |
| 7129 /** | 7127 /** |
| 7130 * The interface `LibraryElement` defines the behavior of elements representing
a library. | 7128 * The interface `LibraryElement` defines the behavior of elements representing
a library. |
| 7131 */ | 7129 */ |
| 7132 abstract class LibraryElement implements Element, shared.LibraryElement { | 7130 abstract class LibraryElement implements Element { |
| 7133 /** | 7131 /** |
| 7134 * Return the compilation unit that defines this library. | 7132 * Return the compilation unit that defines this library. |
| 7135 * | 7133 * |
| 7136 * @return the compilation unit that defines this library | 7134 * @return the compilation unit that defines this library |
| 7137 */ | 7135 */ |
| 7138 CompilationUnitElement get definingCompilationUnit; | 7136 CompilationUnitElement get definingCompilationUnit; |
| 7139 | 7137 |
| 7140 /** | 7138 /** |
| 7141 * Return the entry point for this library, or `null` if this library does not
have an entry | 7139 * Return the entry point for this library, or `null` if this library does not
have an entry |
| 7142 * point. The entry point is defined to be a zero argument top-level function
whose name is | 7140 * point. The entry point is defined to be a zero argument top-level function
whose name is |
| (...skipping 4019 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11162 // bottom <: void (as bottom is a subtype of all types). | 11160 // bottom <: void (as bottom is a subtype of all types). |
| 11163 // void <: dynamic (as dynamic is a supertype of all types) | 11161 // void <: dynamic (as dynamic is a supertype of all types) |
| 11164 return identical(type, this) || type.isDynamic; | 11162 return identical(type, this) || type.isDynamic; |
| 11165 } | 11163 } |
| 11166 | 11164 |
| 11167 @override | 11165 @override |
| 11168 VoidTypeImpl substitute2(List<DartType> argumentTypes, | 11166 VoidTypeImpl substitute2(List<DartType> argumentTypes, |
| 11169 List<DartType> parameterTypes) => | 11167 List<DartType> parameterTypes) => |
| 11170 this; | 11168 this; |
| 11171 } | 11169 } |
| OLD | NEW |