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

Unified Diff: pkg/compiler/lib/src/js_backend/runtime_types.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/js_backend/backend.dart ('k') | pkg/compiler/lib/src/js_emitter/native_emitter.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_backend/runtime_types.dart
diff --git a/pkg/compiler/lib/src/js_backend/runtime_types.dart b/pkg/compiler/lib/src/js_backend/runtime_types.dart
index 8e31d939df334c3b1e8768cb38c9473d42535c83..274f6850a18c632bc5dbad2b4890e0bca2a6f066 100644
--- a/pkg/compiler/lib/src/js_backend/runtime_types.dart
+++ b/pkg/compiler/lib/src/js_backend/runtime_types.dart
@@ -898,7 +898,7 @@ class TypeRepresentationGenerator implements DartTypeVisitor {
visitTypedefType(TypedefType type, _) {
bool shouldEncode = shouldEncodeTypedef(type);
- DartType unaliasedType = type.unalias(compiler.resolution);
+ DartType unaliasedType = type.unaliased;
if (shouldEncode) {
jsAst.ObjectInitializer initializer = unaliasedType.accept(this, null);
// We have to encode the aliased type.
@@ -968,7 +968,7 @@ class ArgumentCollector extends DartTypeVisitor {
}
visitTypedefType(TypedefType type, bool isTypeArgument) {
- type.unalias(backend.resolution).accept(this, isTypeArgument);
+ type.unaliased.accept(this, isTypeArgument);
}
visitInterfaceType(InterfaceType type, bool isTypeArgument) {
@@ -1000,7 +1000,7 @@ class FunctionArgumentCollector extends DartTypeVisitor {
}
visitTypedefType(TypedefType type, bool inFunctionType) {
- type.unalias(backend.resolution).accept(this, inFunctionType);
+ type.unaliased.accept(this, inFunctionType);
}
visitInterfaceType(InterfaceType type, bool inFunctionType) {
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | pkg/compiler/lib/src/js_emitter/native_emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698