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

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

Issue 2926663002: Reapply (plus add some more) Entity-ify some portions of LocalsHandler and Closure. (Closed)
Patch Set: a few more entity changes to make dartanalyzer happy. 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/ssa/locals_handler.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 8ea792a05a0f36147005aadc55228914376fd13f..945572fc60fad82b67feee2efd0fcb3f114fac94 100644
--- a/pkg/compiler/lib/src/inferrer/locals_handler.dart
+++ b/pkg/compiler/lib/src/inferrer/locals_handler.dart
@@ -245,8 +245,8 @@ class LocalsHandler {
final TypeSystem types;
final InferrerEngine inferrer;
final VariableScope locals;
- final Map<Local, Element> captured;
- final Map<Local, Element> capturedAndBoxed;
+ final Map<Local, FieldEntity> captured;
+ final Map<Local, FieldEntity> capturedAndBoxed;
final FieldInitializationScope fieldScope;
LocalsHandler tryBlock;
bool seenReturnOrThrow = false;
@@ -261,8 +261,8 @@ class LocalsHandler {
LocalsHandler(this.inferrer, this.types, this.options, Node block,
[this.fieldScope])
: locals = new VariableScope(block),
- captured = new Map<Local, Element>(),
- capturedAndBoxed = new Map<Local, Element>(),
+ captured = new Map<Local, FieldEntity>(),
+ capturedAndBoxed = new Map<Local, FieldEntity>(),
tryBlock = null;
LocalsHandler.from(LocalsHandler other, Node block,
@@ -355,11 +355,11 @@ class LocalsHandler {
}
}
- void setCaptured(Local local, Element field) {
+ void setCaptured(Local local, FieldEntity field) {
captured[local] = field;
}
- void setCapturedAndBoxed(Local local, Element field) {
+ void setCapturedAndBoxed(Local local, FieldEntity field) {
capturedAndBoxed[local] = field;
}
« no previous file with comments | « pkg/compiler/lib/src/inferrer/inferrer_engine.dart ('k') | pkg/compiler/lib/src/ssa/locals_handler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698