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

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

Issue 2954493002: Less inequivalence on Hello World! (Closed)
Patch Set: Updated cf. comments 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
Index: pkg/compiler/lib/src/typechecker.dart
diff --git a/pkg/compiler/lib/src/typechecker.dart b/pkg/compiler/lib/src/typechecker.dart
index 6f4f91efd8467aabe3c837039bee60237b527a88..5709a401817c8e61b9b1ae06caa43e9fda40d226 100644
--- a/pkg/compiler/lib/src/typechecker.dart
+++ b/pkg/compiler/lib/src/typechecker.dart
@@ -60,7 +60,7 @@ class TypeCheckerTask extends CompilerTask {
reporter.withCurrentElement(element.implementation, () {
measure(() {
TypeCheckerVisitor visitor = new TypeCheckerVisitor(
- compiler, resolvedAst.elements, compiler.types);
+ compiler, resolvedAst.elements, compiler.resolution.types);
if (element.isField) {
visitor.analyzingInitializer = true;
ResolutionDartType type =
@@ -112,7 +112,7 @@ abstract class ElementAccess {
}
ResolutionInterfaceType functionType =
compiler.resolution.commonElements.functionType;
- return compiler.types
+ return compiler.resolution.types
.isAssignable(computeType(compiler.resolution), functionType);
}
}
« no previous file with comments | « pkg/compiler/lib/src/ssa/graph_builder.dart ('k') | pkg/compiler/lib/src/universe/element_world_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698