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

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

Issue 2991313002: Split ast based parts from InferrerEngineImpl (Closed)
Patch Set: Created 3 years, 4 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/type_graph_inferrer.dart ('k') | pkg/compiler/lib/src/types/types.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
diff --git a/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart b/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
index ad844e62a90bc6a071052003bbb9d90ef02f9d2a..9e98703b4b15ff2a664ac4d13c43da9f1717999e 100644
--- a/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
+++ b/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
@@ -831,7 +831,7 @@ enum CallType {
forIn,
}
-bool validCallType(CallType callType, Spannable call) {
+bool validCallType(CallType callType, Object call) {
switch (callType) {
case CallType.complex:
return call is ast.SendSet;
@@ -855,7 +855,7 @@ bool validCallType(CallType callType, Spannable call) {
*/
abstract class CallSiteTypeInformation extends TypeInformation
with ApplyableTypeInformation {
- final Spannable _call;
+ final Object _call;
final MemberEntity caller;
final Selector selector;
final TypeMask mask;
@@ -966,7 +966,7 @@ class StaticCallSiteTypeInformation extends CallSiteTypeInformation {
}
}
-class DynamicCallSiteTypeInformation extends CallSiteTypeInformation {
+class DynamicCallSiteTypeInformation<T> extends CallSiteTypeInformation {
final CallType _callType;
final TypeInformation receiver;
final bool isConditional;
@@ -977,7 +977,7 @@ class DynamicCallSiteTypeInformation extends CallSiteTypeInformation {
DynamicCallSiteTypeInformation(
MemberTypeInformation context,
this._callType,
- ast.Node call,
+ T call,
MemberEntity enclosing,
Selector selector,
TypeMask mask,
@@ -1296,7 +1296,7 @@ class ClosureCallSiteTypeInformation extends CallSiteTypeInformation {
ClosureCallSiteTypeInformation(
MemberTypeInformation context,
- Spannable call,
+ Object call,
MemberEntity enclosing,
Selector selector,
TypeMask mask,
« no previous file with comments | « pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart ('k') | pkg/compiler/lib/src/types/types.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698