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

Unified Diff: pkg/compiler/lib/src/inferrer/kernel_inferrer_engine.dart

Issue 3009043002: Handle variable declarations in inferrer (Closed)
Patch Set: Created 3 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/inferrer/builder_kernel.dart ('k') | pkg/compiler/lib/src/js_model/locals.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/inferrer/kernel_inferrer_engine.dart
diff --git a/pkg/compiler/lib/src/inferrer/kernel_inferrer_engine.dart b/pkg/compiler/lib/src/inferrer/kernel_inferrer_engine.dart
index 537076a5ee97cc7121d184c08d691a11b76f58b8..21dc8ec5febd9714aea9159227b132f695edc948 100644
--- a/pkg/compiler/lib/src/inferrer/kernel_inferrer_engine.dart
+++ b/pkg/compiler/lib/src/inferrer/kernel_inferrer_engine.dart
@@ -144,7 +144,14 @@ class KernelInferrerEngine extends InferrerEngineImpl<ir.Node> {
TypeInformation computeMemberTypeInformation(
MemberEntity member, ir.Node body) {
KernelTypeGraphBuilder visitor = new KernelTypeGraphBuilder(
- options, closedWorld, _closureDataLookup, this, member, body);
+ options,
+ closedWorld,
+ _closureDataLookup,
+ this,
+ member,
+ body,
+ _elementMap,
+ _globalLocalsMap.getLocalsMap(member));
return visitor.run();
}
@@ -282,8 +289,7 @@ class KernelTypeSystemStrategy implements TypeSystemStrategy<ir.Node> {
KernelToLocalsMap localsMap = _globalLocalsMap.getLocalsMap(context);
ir.FunctionNode functionNode =
localsMap.getFunctionNodeForParameter(parameter);
- DartType type =
- _elementMap.getDartType(localsMap.getParameterType(parameter));
+ DartType type = localsMap.getLocalType(_elementMap, parameter);
MemberEntity member;
bool isClosure = false;
if (functionNode.parent is ir.Member) {
« no previous file with comments | « pkg/compiler/lib/src/inferrer/builder_kernel.dart ('k') | pkg/compiler/lib/src/js_model/locals.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698