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

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

Issue 1397053002: Introduce DartType.unaliased to avoid use of Resolution in the backend. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 5 years, 2 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/native/ssa.dart ('k') | pkg/compiler/lib/src/ssa/builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/resolution/typedefs.dart
diff --git a/pkg/compiler/lib/src/resolution/typedefs.dart b/pkg/compiler/lib/src/resolution/typedefs.dart
index 11f57c738323bd9ea26fa51eca6a0a74da5b886c..7d37df6ed1091a5eea8f7978edda08c3de20be99 100644
--- a/pkg/compiler/lib/src/resolution/typedefs.dart
+++ b/pkg/compiler/lib/src/resolution/typedefs.dart
@@ -53,7 +53,7 @@ class TypedefResolverVisitor extends TypeDefinitionVisitor {
scope = new MethodScope(scope, element);
signature.forEachParameter(addToScope);
- element.alias = signature.type;
+ element.aliasCache = signature.type;
void checkCyclicReference() {
element.checkCyclicReference(resolution);
@@ -118,15 +118,15 @@ class TypedefCyclicVisitor extends BaseDartTypeVisitor {
MessageKind.CYCLIC_TYPEDEF,
{'typedefName': element.name},
element.name, element);
- element.alias =
- new MalformedType(erroneousElement, typedefElement.alias);
+ element.aliasCache =
+ new MalformedType(erroneousElement, typedefElement.aliasCache);
element.hasBeenCheckedForCycles = true;
}
} else {
seenTypedefs = seenTypedefs.prepend(typedefElement);
seenTypedefsCount++;
type.visitChildren(this, null);
- typedefElement.alias.accept(this, null);
+ typedefElement.aliasCache.accept(this, null);
seenTypedefs = seenTypedefs.tail;
seenTypedefsCount--;
}
« no previous file with comments | « pkg/compiler/lib/src/native/ssa.dart ('k') | pkg/compiler/lib/src/ssa/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698