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

Unified Diff: pkg/compiler/lib/src/js_backend/runtime_types.dart

Issue 1383503002: Add Resolution and Parsing interfaces for computeType, ensureResolved and parseNode. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Add TODOs. Created 5 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/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 d6f02eb3ef71366ef04fc33569cf0db9a2cd09b1..b48cb05d6b9140c1c3a023e25a62c1c83b1b9cbe 100644
--- a/pkg/compiler/lib/src/js_backend/runtime_types.dart
+++ b/pkg/compiler/lib/src/js_backend/runtime_types.dart
@@ -744,7 +744,7 @@ class TypeRepresentationGenerator implements DartTypeVisitor {
visitTypedefType(TypedefType type, _) {
bool shouldEncode = shouldEncodeTypedef(type);
- DartType unaliasedType = type.unalias(compiler);
+ DartType unaliasedType = type.unalias(compiler.resolution);
if (shouldEncode) {
jsAst.ObjectInitializer initializer = unaliasedType.accept(this, null);
// We have to encode the aliased type.
@@ -814,7 +814,7 @@ class ArgumentCollector extends DartTypeVisitor {
}
visitTypedefType(TypedefType type, bool isTypeArgument) {
- type.unalias(backend.compiler).accept(this, isTypeArgument);
+ type.unalias(backend.resolution).accept(this, isTypeArgument);
}
visitInterfaceType(InterfaceType type, bool isTypeArgument) {
@@ -846,7 +846,7 @@ class FunctionArgumentCollector extends DartTypeVisitor {
}
visitTypedefType(TypedefType type, bool inFunctionType) {
- type.unalias(backend.compiler).accept(this, inFunctionType);
+ type.unalias(backend.resolution).accept(this, inFunctionType);
}
visitInterfaceType(InterfaceType type, bool inFunctionType) {
« no previous file with comments | « pkg/compiler/lib/src/js_backend/patch_resolver.dart ('k') | pkg/compiler/lib/src/js_backend/type_variable_handler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698