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

Unified Diff: pkg/analyzer_experimental/lib/src/generated/element.dart

Issue 15675016: More fixes for java2dart and status files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer_experimental/lib/src/generated/element.dart
diff --git a/pkg/analyzer_experimental/lib/src/generated/element.dart b/pkg/analyzer_experimental/lib/src/generated/element.dart
index 575fe43c713f4dbeb1cc0b2762eac6f6a3745050..00d699d0ec2e3984d9207fd4aecc2100e19632e7 100644
--- a/pkg/analyzer_experimental/lib/src/generated/element.dart
+++ b/pkg/analyzer_experimental/lib/src/generated/element.dart
@@ -553,6 +553,7 @@ class ElementKind implements Comparable<ElementKind> {
*/
String get displayName => _displayName;
int compareTo(ElementKind other) => ordinal - other.ordinal;
+ int get hashCode => ordinal;
String toString() => name;
}
/**
@@ -3932,6 +3933,7 @@ class Modifier implements Comparable<Modifier> {
Modifier(this.name, this.ordinal) {
}
int compareTo(Modifier other) => ordinal - other.ordinal;
+ int get hashCode => ordinal;
String toString() => name;
}
/**
@@ -5607,7 +5609,6 @@ class InterfaceTypeImpl extends TypeImpl implements InterfaceType {
* @see #getLeastUpperBound(Type)
*/
static Set<InterfaceType> computeSuperinterfaceSet(InterfaceType type) => computeSuperinterfaceSet2(type, new Set<InterfaceType>());
- List<TypeVariableElement> get typeVariables => element.typeVariables;
/**
* This method computes the longest inheritance path from some passed {@link Type} to Object. This
@@ -5846,6 +5847,7 @@ class InterfaceTypeImpl extends TypeImpl implements InterfaceType {
return supertype2.substitute2(_typeArguments, TypeVariableTypeImpl.getTypes(classElement.typeVariables));
}
List<Type2> get typeArguments => _typeArguments;
+ List<TypeVariableElement> get typeVariables => element.typeVariables;
int get hashCode {
ClassElement element2 = element;
if (element2 == null) {
@@ -6118,6 +6120,8 @@ class InterfaceTypeImpl extends TypeImpl implements InterfaceType {
}
}
return true;
+ } else if (typeS.isDartCoreFunction() && elementT.getMethod("call") != null) {
+ return true;
}
InterfaceType supertype2 = elementT.supertype;
if (supertype2 != null && ((supertype2 as InterfaceTypeImpl)).isSubtypeOf2(typeS, visitedClasses)) {

Powered by Google App Engine
This is Rietveld 408576698