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

Unified Diff: pkg/compiler/lib/src/resolution/resolution_strategy.dart

Issue 3010943002: Add ability to look up type parameters that are associated with ClassEntities with the element envi… (Closed)
Patch Set: Created 3 years, 3 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/compiler/lib/src/resolution/resolution_strategy.dart
diff --git a/pkg/compiler/lib/src/resolution/resolution_strategy.dart b/pkg/compiler/lib/src/resolution/resolution_strategy.dart
index 83d4aaf230babe9b116f2726e61b66ad9e077c9a..37617d51df8a499644b218186b9be5482285178b 100644
--- a/pkg/compiler/lib/src/resolution/resolution_strategy.dart
+++ b/pkg/compiler/lib/src/resolution/resolution_strategy.dart
@@ -683,6 +683,11 @@ class _CompilerElementEnvironment implements ElementEnvironment {
return field.type;
}
+ @override
+ List<DartType> getTypeVariables(covariant ClassElement cls) {
+ return cls.typeVariables;
+ }
+
@override
ResolutionFunctionType getLocalFunctionType(
covariant LocalFunctionElement function) {

Powered by Google App Engine
This is Rietveld 408576698