| OLD | NEW |
| 1 // This code was auto-generated, is not intended to be edited, and is subject to | 1 // This code was auto-generated, is not intended to be edited, and is subject to |
| 2 // significant change. Please see the README file for more information. | 2 // significant change. Please see the README file for more information. |
| 3 | 3 |
| 4 library engine.element; | 4 library engine.element; |
| 5 | 5 |
| 6 import 'dart:collection'; | 6 import 'dart:collection'; |
| 7 import 'java_core.dart'; | 7 import 'java_core.dart'; |
| 8 import 'java_engine.dart'; | 8 import 'java_engine.dart'; |
| 9 import 'utilities_collection.dart'; | 9 import 'utilities_collection.dart'; |
| 10 import 'source.dart'; | 10 import 'source.dart'; |
| (...skipping 5066 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5077 return ElementKind.SETTER; | 5077 return ElementKind.SETTER; |
| 5078 } | 5078 } |
| 5079 | 5079 |
| 5080 String get name { | 5080 String get name { |
| 5081 if (isSetter) { | 5081 if (isSetter) { |
| 5082 return "${super.name}="; | 5082 return "${super.name}="; |
| 5083 } | 5083 } |
| 5084 return super.name; | 5084 return super.name; |
| 5085 } | 5085 } |
| 5086 | 5086 |
| 5087 int get hashCode => ObjectUtilities.combineHashCodes(super.hashCode, isGetter
? 1 : 2); |
| 5088 |
| 5087 bool get isAbstract => hasModifier(Modifier.ABSTRACT); | 5089 bool get isAbstract => hasModifier(Modifier.ABSTRACT); |
| 5088 | 5090 |
| 5089 bool get isGetter => hasModifier(Modifier.GETTER); | 5091 bool get isGetter => hasModifier(Modifier.GETTER); |
| 5090 | 5092 |
| 5091 bool get isSetter => hasModifier(Modifier.SETTER); | 5093 bool get isSetter => hasModifier(Modifier.SETTER); |
| 5092 | 5094 |
| 5093 bool get isStatic => hasModifier(Modifier.STATIC); | 5095 bool get isStatic => hasModifier(Modifier.STATIC); |
| 5094 | 5096 |
| 5095 /** | 5097 /** |
| 5096 * Set whether this accessor is abstract to correspond to the given value. | 5098 * Set whether this accessor is abstract to correspond to the given value. |
| (...skipping 987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6084 */ | 6086 */ |
| 6085 static BottomTypeImpl get instance => _INSTANCE; | 6087 static BottomTypeImpl get instance => _INSTANCE; |
| 6086 | 6088 |
| 6087 /** | 6089 /** |
| 6088 * Prevent the creation of instances of this class. | 6090 * Prevent the creation of instances of this class. |
| 6089 */ | 6091 */ |
| 6090 BottomTypeImpl() : super(null, "<bottom>"); | 6092 BottomTypeImpl() : super(null, "<bottom>"); |
| 6091 | 6093 |
| 6092 bool operator ==(Object object) => identical(object, this); | 6094 bool operator ==(Object object) => identical(object, this); |
| 6093 | 6095 |
| 6096 int get hashCode => 0; |
| 6097 |
| 6094 bool get isBottom => true; | 6098 bool get isBottom => true; |
| 6095 | 6099 |
| 6096 bool isSupertypeOf(Type2 type) => false; | 6100 bool isSupertypeOf(Type2 type) => false; |
| 6097 | 6101 |
| 6098 BottomTypeImpl substitute2(List<Type2> argumentTypes, List<Type2> parameterTyp
es) => this; | 6102 BottomTypeImpl substitute2(List<Type2> argumentTypes, List<Type2> parameterTyp
es) => this; |
| 6099 | 6103 |
| 6100 bool internalIsMoreSpecificThan(Type2 type, bool withDynamic, Set<TypeImpl_Typ
ePair> visitedTypePairs) => true; | 6104 bool internalIsMoreSpecificThan(Type2 type, bool withDynamic, Set<TypeImpl_Typ
ePair> visitedTypePairs) => true; |
| 6101 | 6105 |
| 6102 bool internalIsSubtypeOf(Type2 type, Set<TypeImpl_TypePair> visitedTypePairs)
=> true; | 6106 bool internalIsSubtypeOf(Type2 type, Set<TypeImpl_TypePair> visitedTypePairs)
=> true; |
| 6103 } | 6107 } |
| (...skipping 16 matching lines...) Expand all Loading... |
| 6120 */ | 6124 */ |
| 6121 static DynamicTypeImpl get instance => _INSTANCE; | 6125 static DynamicTypeImpl get instance => _INSTANCE; |
| 6122 | 6126 |
| 6123 /** | 6127 /** |
| 6124 * Prevent the creation of instances of this class. | 6128 * Prevent the creation of instances of this class. |
| 6125 */ | 6129 */ |
| 6126 DynamicTypeImpl() : super(new DynamicElementImpl(), Keyword.DYNAMIC.syntax) { | 6130 DynamicTypeImpl() : super(new DynamicElementImpl(), Keyword.DYNAMIC.syntax) { |
| 6127 (element as DynamicElementImpl).type = this; | 6131 (element as DynamicElementImpl).type = this; |
| 6128 } | 6132 } |
| 6129 | 6133 |
| 6130 bool operator ==(Object object) => object is DynamicTypeImpl; | 6134 bool operator ==(Object object) => identical(object, this); |
| 6135 |
| 6136 int get hashCode => 0; |
| 6131 | 6137 |
| 6132 bool get isDynamic => true; | 6138 bool get isDynamic => true; |
| 6133 | 6139 |
| 6134 bool isSupertypeOf(Type2 type) => true; | 6140 bool isSupertypeOf(Type2 type) => true; |
| 6135 | 6141 |
| 6136 Type2 substitute2(List<Type2> argumentTypes, List<Type2> parameterTypes) { | 6142 Type2 substitute2(List<Type2> argumentTypes, List<Type2> parameterTypes) { |
| 6137 int length = parameterTypes.length; | 6143 int length = parameterTypes.length; |
| 6138 for (int i = 0; i < length; i++) { | 6144 for (int i = 0; i < length; i++) { |
| 6139 if (parameterTypes[i] == this) { | 6145 if (parameterTypes[i] == this) { |
| 6140 return argumentTypes[i]; | 6146 return argumentTypes[i]; |
| (...skipping 1461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7602 */ | 7608 */ |
| 7603 static VoidTypeImpl get instance => _INSTANCE; | 7609 static VoidTypeImpl get instance => _INSTANCE; |
| 7604 | 7610 |
| 7605 /** | 7611 /** |
| 7606 * Prevent the creation of instances of this class. | 7612 * Prevent the creation of instances of this class. |
| 7607 */ | 7613 */ |
| 7608 VoidTypeImpl() : super(null, Keyword.VOID.syntax); | 7614 VoidTypeImpl() : super(null, Keyword.VOID.syntax); |
| 7609 | 7615 |
| 7610 bool operator ==(Object object) => identical(object, this); | 7616 bool operator ==(Object object) => identical(object, this); |
| 7611 | 7617 |
| 7618 int get hashCode => 0; |
| 7619 |
| 7612 bool get isVoid => true; | 7620 bool get isVoid => true; |
| 7613 | 7621 |
| 7614 VoidTypeImpl substitute2(List<Type2> argumentTypes, List<Type2> parameterTypes
) => this; | 7622 VoidTypeImpl substitute2(List<Type2> argumentTypes, List<Type2> parameterTypes
) => this; |
| 7615 | 7623 |
| 7616 bool internalIsMoreSpecificThan(Type2 type, bool withDynamic, Set<TypeImpl_Typ
ePair> visitedTypePairs) => isSubtypeOf(type); | 7624 bool internalIsMoreSpecificThan(Type2 type, bool withDynamic, Set<TypeImpl_Typ
ePair> visitedTypePairs) => isSubtypeOf(type); |
| 7617 | 7625 |
| 7618 bool internalIsSubtypeOf(Type2 type, Set<TypeImpl_TypePair> visitedTypePairs)
=> identical(type, this) || identical(type, DynamicTypeImpl.instance); | 7626 bool internalIsSubtypeOf(Type2 type, Set<TypeImpl_TypePair> visitedTypePairs)
=> identical(type, this) || identical(type, DynamicTypeImpl.instance); |
| 7619 } | 7627 } |
| 7620 | 7628 |
| 7621 /** | 7629 /** |
| (...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8227 | 8235 |
| 8228 /** | 8236 /** |
| 8229 * The interface `VoidType` defines the behavior of the unique object representi
ng the type | 8237 * The interface `VoidType` defines the behavior of the unique object representi
ng the type |
| 8230 * `void`. | 8238 * `void`. |
| 8231 * | 8239 * |
| 8232 * @coverage dart.engine.type | 8240 * @coverage dart.engine.type |
| 8233 */ | 8241 */ |
| 8234 abstract class VoidType implements Type2 { | 8242 abstract class VoidType implements Type2 { |
| 8235 VoidType substitute2(List<Type2> argumentTypes, List<Type2> parameterTypes); | 8243 VoidType substitute2(List<Type2> argumentTypes, List<Type2> parameterTypes); |
| 8236 } | 8244 } |
| OLD | NEW |