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

Unified Diff: pkg/compiler/lib/src/elements/resolution_types.dart

Issue 2807593002: Use entities in impact transformers. (Closed)
Patch Set: Created 3 years, 8 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 | « pkg/compiler/lib/src/compiler.dart ('k') | pkg/compiler/lib/src/elements/types.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/elements/resolution_types.dart
diff --git a/pkg/compiler/lib/src/elements/resolution_types.dart b/pkg/compiler/lib/src/elements/resolution_types.dart
index d72a97b42f761b1e52d765f7551d9d5a860d8d96..a084b0f64c29c498a526b83af20020149b5e1b92 100644
--- a/pkg/compiler/lib/src/elements/resolution_types.dart
+++ b/pkg/compiler/lib/src/elements/resolution_types.dart
@@ -15,6 +15,7 @@ import '../common_elements.dart';
import '../ordered_typeset.dart' show OrderedTypeSet;
import '../util/util.dart' show equalElements;
import 'elements.dart';
+import 'entities.dart';
import 'modelx.dart' show TypeDeclarationElementX;
import 'types.dart';
@@ -1477,10 +1478,10 @@ class Types implements DartTypes {
* Returns the [ClassElement] which declares the type variables occurring in
* [type], or [:null:] if [type] does not contain type variables.
*/
- static ClassElement getClassContext(ResolutionDartType type) {
- ClassElement contextClass;
- type.forEachTypeVariable((ResolutionTypeVariableType typeVariable) {
- if (typeVariable.element.typeDeclaration is! ClassElement) return;
+ static ClassEntity getClassContext(DartType type) {
+ ClassEntity contextClass;
+ type.forEachTypeVariable((TypeVariableType typeVariable) {
+ if (typeVariable.element.typeDeclaration is! ClassEntity) return;
contextClass = typeVariable.element.typeDeclaration;
});
// GENERIC_METHODS: When generic method support is complete enough to
« no previous file with comments | « pkg/compiler/lib/src/compiler.dart ('k') | pkg/compiler/lib/src/elements/types.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698