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

Unified Diff: pkg/compiler/lib/src/inferrer/inferrer_engine.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/closure.dart ('k') | pkg/compiler/lib/src/inferrer/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/inferrer_engine.dart
diff --git a/pkg/compiler/lib/src/inferrer/inferrer_engine.dart b/pkg/compiler/lib/src/inferrer/inferrer_engine.dart
index 5672c8cd732f40bf3c3243ea76c71383209bed45..1fbdc6347deb248d0ee73a1fdc6fc86e6051de76 100644
--- a/pkg/compiler/lib/src/inferrer/inferrer_engine.dart
+++ b/pkg/compiler/lib/src/inferrer/inferrer_engine.dart
@@ -760,7 +760,7 @@ class InferrerEngine {
/**
* Returns the type of [element].
*/
- TypeInformation typeOfElement(Element element) {
+ TypeInformation typeOfElement(Entity element) {
if (element is FunctionElement) return types.functionType;
return types.getInferredTypeOf(element);
}
@@ -768,7 +768,7 @@ class InferrerEngine {
/**
* Returns the return type of [element].
*/
- TypeInformation returnTypeOfElement(Element element) {
+ TypeInformation returnTypeOfElement(Entity element) {
if (element is! FunctionElement) return types.dynamicType;
return types.getInferredTypeOf(element);
}
@@ -779,7 +779,7 @@ class InferrerEngine {
* [nodeHolder] is the element holder of [node].
*/
void recordTypeOfFinalField(
- Spannable node, Element analyzed, Element element, TypeInformation type) {
+ Spannable node, Entity analyzed, Entity element, TypeInformation type) {
types.getInferredTypeOf(element).addAssignment(type);
}
@@ -788,14 +788,14 @@ class InferrerEngine {
* [type].
*/
void recordTypeOfNonFinalField(
- Spannable node, Element element, TypeInformation type) {
+ Spannable node, Entity element, TypeInformation type) {
types.getInferredTypeOf(element).addAssignment(type);
}
/**
* Records that [element] is of type [type].
*/
- void recordType(Element element, TypeInformation type) {
+ void recordType(Entity element, TypeInformation type) {
types.getInferredTypeOf(element).addAssignment(type);
}
« no previous file with comments | « pkg/compiler/lib/src/closure.dart ('k') | pkg/compiler/lib/src/inferrer/locals_handler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698