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

Unified Diff: sdk/lib/_internal/compiler/implementation/inferrer/type_graph_nodes.dart

Issue 24952003: Change TypeMask.base to be a ClassElement. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Moar declaration. Created 7 years, 3 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: sdk/lib/_internal/compiler/implementation/inferrer/type_graph_nodes.dart
diff --git a/sdk/lib/_internal/compiler/implementation/inferrer/type_graph_nodes.dart b/sdk/lib/_internal/compiler/implementation/inferrer/type_graph_nodes.dart
index fc7bfb5fd14df51d6e6967833dc35cb446f71016..1766ccdd23cb165f1005b6b966c0742a9e03b662 100644
--- a/sdk/lib/_internal/compiler/implementation/inferrer/type_graph_nodes.dart
+++ b/sdk/lib/_internal/compiler/implementation/inferrer/type_graph_nodes.dart
@@ -48,7 +48,7 @@ abstract class TypeInformation {
TypeInformation([users, assignments])
: users = (users == null) ? new Set<TypeInformation>() : users,
assignments = (assignments == null) ? <TypeInformation>[] : assignments;
-
+
void addUser(TypeInformation user) {
assert(!user.isConcrete);
@@ -157,7 +157,7 @@ class ParameterAssignments extends IterableBase<TypeInformation> {
* - Native functions and fields: because native methods contain no Dart
* code, and native fields do not have Dart assignments, we just
* trust their type annotation.
- *
+ *
*/
class ElementTypeInformation extends TypeInformation {
final Element element;
@@ -227,7 +227,7 @@ class ElementTypeInformation extends TypeInformation {
InterfaceType rawType = element.computeType(inferrer.compiler).asRaw();
return rawType.treatAsDynamic
? inferrer.types.dynamicType.type
- : new TypeMask.subtype(rawType);
+ : new TypeMask.subtype(rawType.element);
} else {
assert(element.isFunction()
|| element.isGetter()
@@ -454,7 +454,7 @@ class DynamicCallSiteTypeInformation extends CallSiteTypeInformation {
inferrer.updateParameterAssignments(
this, element, arguments, typedSelector, remove: false);
}
-
+
if (returnsElementType(typedSelector)) {
// Find the [ElementInContainerTypeInformation] node and tell
// that this node is a user of it. Later, when the element

Powered by Google App Engine
This is Rietveld 408576698