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

Unified Diff: pkg/compiler/lib/src/typechecker.dart

Issue 2935663002: Remove Compiler.commonElements (Closed)
Patch Set: Remove Compiler._commonElements Created 3 years, 6 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/ssa/kernel_ast_adapter.dart ('k') | pkg/compiler/tool/perf.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/typechecker.dart
diff --git a/pkg/compiler/lib/src/typechecker.dart b/pkg/compiler/lib/src/typechecker.dart
index 88962b2db1c4e59cd57e0eeb7885c8e0dc71c395..a4478e7bf384d9be3ab9f67e30c5d66ba1e76433 100644
--- a/pkg/compiler/lib/src/typechecker.dart
+++ b/pkg/compiler/lib/src/typechecker.dart
@@ -110,7 +110,8 @@ abstract class ElementAccess {
return false;
}
}
- ResolutionInterfaceType functionType = compiler.commonElements.functionType;
+ ResolutionInterfaceType functionType =
+ compiler.resolution.commonElements.functionType;
return compiler.types
.isAssignable(computeType(compiler.resolution), functionType);
}
@@ -299,7 +300,7 @@ class TypeCheckerVisitor extends Visitor<ResolutionDartType> {
/// The immediately enclosing field, method or constructor being analyzed.
ExecutableElement executableContext;
- CommonElements get commonElements => compiler.commonElements;
+ CommonElements get commonElements => resolution.commonElements;
DiagnosticReporter get reporter => compiler.reporter;
« no previous file with comments | « pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart ('k') | pkg/compiler/tool/perf.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698