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

Unified Diff: pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart

Issue 886053003: dart2dart: Remove the list of closureVariables from FunctionDefinitions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Restore inadvertently removed code. Created 5 years, 11 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/cps_ir/cps_ir_nodes.dart
diff --git a/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart b/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
index 00e3252a9459f472ab3e1b3cd194ae86aab814af..4fddfd60df509f2220000830ee4e9a37201a7cf2 100644
--- a/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
+++ b/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
@@ -735,22 +735,17 @@ class FunctionDefinition extends Node
/// Values for optional parameters.
final List<ConstantExpression> defaultParameterValues;
- /// Closure variables declared by this function.
- final List<ClosureVariable> closureVariables;
-
FunctionDefinition(this.element,
this.parameters,
this.body,
this.localConstants,
- this.defaultParameterValues,
- this.closureVariables);
+ this.defaultParameterValues);
FunctionDefinition.abstract(this.element,
this.parameters,
this.defaultParameterValues)
: body = null,
- localConstants = const <ConstDeclaration>[],
- closureVariables = const <ClosureVariable>[];
+ localConstants = const <ConstDeclaration>[];
accept(Visitor visitor) => visitor.visitFunctionDefinition(this);
applyPass(Pass pass) => pass.rewriteFunctionDefinition(this);
@@ -787,10 +782,9 @@ class ConstructorDefinition extends FunctionDefinition {
RunnableBody body,
this.initializers,
List<ConstDeclaration> localConstants,
- List<ConstantExpression> defaultParameterValues,
- List<ClosureVariable> closureVariables)
+ List<ConstantExpression> defaultParameterValues)
: super(element, parameters, body, localConstants,
- defaultParameterValues, closureVariables);
+ defaultParameterValues);
// 'Abstract' here means "has no body" and is used to represent external
// constructors.
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart ('k') | pkg/compiler/lib/src/cps_ir/cps_ir_nodes_sexpr.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698