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

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

Issue 2955353002: Split inference type-info accessors into members, parameters and local functions (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
« no previous file with comments | « pkg/compiler/lib/src/inferrer/inferrer_engine.dart ('k') | pkg/compiler/lib/src/inferrer/node_tracer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/inferrer/locals_handler.dart
diff --git a/pkg/compiler/lib/src/inferrer/locals_handler.dart b/pkg/compiler/lib/src/inferrer/locals_handler.dart
index b44552906553ddeb537fc002dc550793d9e84ca2..8e4ec2eb3d665677c6428447eef643b567d8d49e 100644
--- a/pkg/compiler/lib/src/inferrer/locals_handler.dart
+++ b/pkg/compiler/lib/src/inferrer/locals_handler.dart
@@ -300,7 +300,8 @@ class LocalsHandler {
TypeInformation use(Local local) {
if (capturedAndBoxed.containsKey(local)) {
- return inferrer.typeOfElement(capturedAndBoxed[local]);
+ FieldElement field = capturedAndBoxed[local];
+ return inferrer.typeOfMember(field);
} else {
if (captured.containsKey(local)) {
inferrer.recordCapturedLocalRead(local);
@@ -334,7 +335,7 @@ class LocalsHandler {
}
if (capturedAndBoxed.containsKey(local)) {
- inferrer.recordTypeOfNonFinalField(node, capturedAndBoxed[local], type);
+ inferrer.recordTypeOfNonFinalField(capturedAndBoxed[local], type);
} else if (inTryBlock) {
// We don'TypeInformation know if an assignment in a try block
// will be executed, so all assignments in that block are
« no previous file with comments | « pkg/compiler/lib/src/inferrer/inferrer_engine.dart ('k') | pkg/compiler/lib/src/inferrer/node_tracer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698