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

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

Issue 2968743002: Use .callMethod instead of LocalFunctionElement as key in inference (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/inferrer/type_graph_inferrer.dart
diff --git a/pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart b/pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart
index 6f541ebef565b4b30df523312c981aa1a5f3a404..58a31a491b7667e60d11bed3580cc093ef10c064 100644
--- a/pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart
+++ b/pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart
@@ -69,12 +69,6 @@ class TypeGraphInferrer implements TypesInferrer {
inferrer.runOverAllElements();
}
- @deprecated
- TypeMask getReturnTypeOfLocalFunction(LocalFunctionElement element) {
- if (compiler.disableTypeInference) return _dynamicType;
- return inferrer.types.getInferredTypeOfLocalFunction(element).type;
- }
-
TypeMask getReturnTypeOfMember(MemberElement element) {
if (compiler.disableTypeInference) return _dynamicType;
// Currently, closure calls return dynamic.
@@ -87,12 +81,6 @@ class TypeGraphInferrer implements TypesInferrer {
return _dynamicType;
}
- @deprecated
- TypeMask getTypeOfLocalFunction(LocalFunctionElement element) {
- if (compiler.disableTypeInference) return _dynamicType;
- return commonMasks.functionType;
- }
-
TypeMask getTypeOfMember(MemberElement element) {
if (compiler.disableTypeInference) return _dynamicType;
// The inferrer stores the return type for a function, so we have to
@@ -156,14 +144,6 @@ class TypeGraphInferrer implements TypesInferrer {
return inferrer.getCallersOf(element);
}
- @deprecated
- bool isLocalFunctionCalledOnce(LocalFunctionElement element) {
- if (compiler.disableTypeInference) return false;
- MemberTypeInformation info =
- inferrer.types.getInferredTypeOfLocalFunction(element);
- return info.isCalledOnce();
- }
-
bool isMemberCalledOnce(MemberElement element) {
if (compiler.disableTypeInference) return false;
MemberTypeInformation info =
« no previous file with comments | « pkg/compiler/lib/src/inferrer/type_graph_dump.dart ('k') | pkg/compiler/lib/src/inferrer/type_graph_nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698