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

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

Issue 2941033002: Finish strong mode cleaning of dart2js. (Closed)
Patch Set: Add bug numbers and address 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_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 96b5923ab496dc6d4f5ba1a8d4ff2dbef7df3af6..639f047d0c940948d5b24f614abf22fdb8814f64 100644
--- a/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
+++ b/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
@@ -994,7 +994,8 @@ class DynamicCallSiteTypeInformation extends CallSiteTypeInformation {
// Add calls to new targets to the graph.
targets
.where((target) => !oldTargets.contains(target))
- .forEach((MemberElement element) {
+ .forEach((MemberEntity _element) {
+ MemberElement element = _element;
MemberTypeInformation callee =
inferrer.types.getInferredTypeOf(element);
callee.addCall(caller, call);
@@ -1007,7 +1008,8 @@ class DynamicCallSiteTypeInformation extends CallSiteTypeInformation {
// Walk over the old targets, and remove calls that cannot happen anymore.
oldTargets
.where((target) => !targets.contains(target))
- .forEach((MemberElement element) {
+ .forEach((MemberEntity _element) {
+ MemberElement element = _element;
MemberTypeInformation callee =
inferrer.types.getInferredTypeOf(element);
callee.removeCall(caller, call);
@@ -1368,7 +1370,7 @@ class ListTypeInformation extends TypeInformation with TracedTypeInformation {
}
TypeMask computeType(InferrerEngine inferrer) {
- var mask = type;
+ dynamic mask = type;
if (!mask.isContainer ||
mask.elementType != elementType.type ||
mask.length != inferredLength) {
« no previous file with comments | « pkg/compiler/lib/src/inferrer/type_graph_dump.dart ('k') | pkg/compiler/lib/src/js_backend/backend_serialization.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698