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

Unified Diff: pkg/analyzer/lib/src/dart/element/element.dart

Issue 2022993002: Rollback the previous List<TypeParameterType> change and refix. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/element/type.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/dart/element/element.dart
diff --git a/pkg/analyzer/lib/src/dart/element/element.dart b/pkg/analyzer/lib/src/dart/element/element.dart
index a4a0c8c4317aa2fcf3027dd4b327e6bac6144927..708a456e04e12682696bdebe664bd45227674563 100644
--- a/pkg/analyzer/lib/src/dart/element/element.dart
+++ b/pkg/analyzer/lib/src/dart/element/element.dart
@@ -5383,9 +5383,9 @@ class MethodElementImpl extends ExecutableElementImpl implements MethodElement {
}
@override
- List<DartType> get allEnclosingTypeParameterTypes {
+ List<TypeParameterType> get allEnclosingTypeParameterTypes {
if (isStatic) {
- return const <DartType>[];
+ return const <TypeParameterType>[];
}
return super.allEnclosingTypeParameterTypes;
}
@@ -6626,9 +6626,9 @@ class PropertyAccessorElementImpl extends ExecutableElementImpl
}
@override
- List<DartType> get allEnclosingTypeParameterTypes {
+ List<TypeParameterType> get allEnclosingTypeParameterTypes {
if (isStatic) {
- return const <DartType>[];
+ return const <TypeParameterType>[];
}
return super.allEnclosingTypeParameterTypes;
}
@@ -7269,24 +7269,24 @@ abstract class TypeParameterizedElementMixin
implements TypeParameterizedElement, ElementImpl {
int _nestingLevel;
List<TypeParameterElement> _typeParameterElements;
- List<DartType> _typeParameterTypes;
- List<DartType> _allTypeParameterTypes;
+ List<TypeParameterType> _typeParameterTypes;
+ List<TypeParameterType> _allTypeParameterTypes;
/**
* Return all type parameter types of the element that encloses element.
* Not `null`, but might be empty for top-level and static class members.
*/
- List<DartType> get allEnclosingTypeParameterTypes {
+ List<TypeParameterType> get allEnclosingTypeParameterTypes {
return enclosingTypeParameterContext?.allTypeParameterTypes ??
- const <DartType>[];
+ const <TypeParameterType>[];
}
/**
* Return all type parameter types of this element.
*/
- List<DartType> get allTypeParameterTypes {
+ List<TypeParameterType> get allTypeParameterTypes {
if (_allTypeParameterTypes == null) {
- _allTypeParameterTypes = <DartType>[];
+ _allTypeParameterTypes = <TypeParameterType>[];
// The most logical order would be (enclosing, this).
// But we have to have it like this to be consistent with (inconsistent
// by itself) element builder for generic functions.
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/element/type.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698