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

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

Issue 116443002: Revert "Implement tracing for function expressions and statements, and infer types of parameters of… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years 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/inferrer_visitor.dart
diff --git a/sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart b/sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart
index 6890de7f45ffb2d2bba790ddd815ebd332b5a7e4..21fb5d715c89cc9ca87bb0f773bc03b9bfca7301 100644
--- a/sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart
+++ b/sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart
@@ -49,8 +49,6 @@ abstract class TypeSystem<T> {
T allocateMap(T keyType, T valueType, T type);
- T allocateClosure(Node node, Element element);
-
/**
* Returns the least upper bound between [firstType] and
* [secondType].
@@ -273,10 +271,6 @@ class ArgumentsTypes<T> {
bool every(bool f(T type)) {
return positional.every(f) && named.values.every(f);
}
-
- bool contains(T type) {
- return positional.contains(type) || named.containsValue(type);
- }
}
abstract class MinimalInferrerEngine<T> {
@@ -740,11 +734,6 @@ abstract class InferrerVisitor
return thisType;
} else if (node.isSuper()) {
return superType;
- } else {
- Element element = elements[node];
- if (Elements.isLocal(element)) {
- return locals.use(element);
- }
}
}

Powered by Google App Engine
This is Rietveld 408576698