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

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

Issue 1323573002: Prepare for computation of NewStructure in Resolution. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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/elements/modelx.dart
diff --git a/pkg/compiler/lib/src/elements/modelx.dart b/pkg/compiler/lib/src/elements/modelx.dart
index 9c4c6a32eb087ea87f353585f46ac3c5bf22df62..623d003f01226428b57d8ddb47c0e57e4d01e05b 100644
--- a/pkg/compiler/lib/src/elements/modelx.dart
+++ b/pkg/compiler/lib/src/elements/modelx.dart
@@ -2326,7 +2326,11 @@ abstract class BaseClassElementX extends ElementX
bool get isEnumClass => false;
InterfaceType computeType(Compiler compiler) {
- if (thisTypeCache == null) {
+ if (isPatch) {
+ origin.computeType(compiler);
+ thisTypeCache = origin.thisType;
+ rawTypeCache = origin.rawType;
+ } else if (thisTypeCache == null) {
computeThisAndRawType(compiler, computeTypeParameters(compiler));
}
return thisTypeCache;
« no previous file with comments | « no previous file | pkg/compiler/lib/src/resolution/class_members.dart » ('j') | pkg/compiler/lib/src/resolution/class_members.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698