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

Unified Diff: pkg/compiler/lib/src/resolution/registry.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
« no previous file with comments | « pkg/compiler/lib/src/resolution/members.dart ('k') | pkg/compiler/lib/src/resolution/resolution.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/resolution/registry.dart
diff --git a/pkg/compiler/lib/src/resolution/registry.dart b/pkg/compiler/lib/src/resolution/registry.dart
index de12ef01a2723388b05da8eb3da556ac20eb049b..345b68326dbf24aeb9b6ae1af7abb3f974d35e64 100644
--- a/pkg/compiler/lib/src/resolution/registry.dart
+++ b/pkg/compiler/lib/src/resolution/registry.dart
@@ -405,7 +405,7 @@ class ResolutionRegistry implements Registry {
// Use [registerInstantiatedType] of `rawType` instead.
@deprecated
void registerInstantiatedClass(ClassElement element) {
- element.ensureResolved(compiler);
+ element.ensureResolved(compiler.resolution);
registerInstantiatedType(element.rawType);
}
@@ -447,7 +447,7 @@ class ResolutionRegistry implements Registry {
}
void registerClosure(LocalFunctionElement element) {
- if (element.computeType(compiler).containsTypeVariables) {
+ if (element.computeType(compiler.resolution).containsTypeVariables) {
backend.registerClosureWithFreeTypeVariables(element, world, this);
}
world.registerClosure(element);
« no previous file with comments | « pkg/compiler/lib/src/resolution/members.dart ('k') | pkg/compiler/lib/src/resolution/resolution.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698