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

Unified Diff: pkg/kernel/lib/transformations/closure/converter.dart

Issue 2780513004: [Kernel] Remove code from the old type propagation. (Closed)
Patch Set: Remove empty status file section Created 3 years, 9 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/kernel/lib/text/ast_to_text.dart ('k') | pkg/kernel/lib/transformations/infer_values.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/lib/transformations/closure/converter.dart
diff --git a/pkg/kernel/lib/transformations/closure/converter.dart b/pkg/kernel/lib/transformations/closure/converter.dart
index b081d82911cba72c45be47e9184638d12470cca8..005e72295a9847b851109bea3fb39414aa465342 100644
--- a/pkg/kernel/lib/transformations/closure/converter.dart
+++ b/pkg/kernel/lib/transformations/closure/converter.dart
@@ -718,8 +718,6 @@ class ClosureConverter extends Transformer {
function.positionalParameters.map(cloner.clone).toList();
List<VariableDeclaration> namedParameters =
function.namedParameters.map(cloner.clone).toList();
- // TODO(ahe): Clone or copy inferredReturnValue?
- InferredValue inferredReturnValue = null;
List<DartType> types = typeParameters
.map((TypeParameter parameter) => new TypeParameterType(parameter))
@@ -741,8 +739,7 @@ class ClosureConverter extends Transformer {
positionalParameters: positionalParameters,
namedParameters: namedParameters,
requiredParameterCount: function.requiredParameterCount,
- returnType: substitute(function.returnType, cloner.typeSubstitution),
- inferredReturnValue: inferredReturnValue);
+ returnType: substitute(function.returnType, cloner.typeSubstitution));
}
/// Creates copies of the type variables in [original] and returns a
« no previous file with comments | « pkg/kernel/lib/text/ast_to_text.dart ('k') | pkg/kernel/lib/transformations/infer_values.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698