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

Unified Diff: lib/kernel_visitor.dart

Issue 2417843003: Don't use const, lists should be mutable in Kernel. (Closed)
Patch Set: Created 4 years, 2 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 | « lib/kernel.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/kernel_visitor.dart
diff --git a/lib/kernel_visitor.dart b/lib/kernel_visitor.dart
index a73ca58a25a5883371f1a722ca62fd72d8cd1634..63370633be60c735e28b8e6bc5a4092d7c1ab800 100644
--- a/lib/kernel_visitor.dart
+++ b/lib/kernel_visitor.dart
@@ -802,7 +802,7 @@ class KernelVisitor extends Object
if (node.initializer != null) {
initializer = visitForValue(node.initializer);
}
- variables = const <ir.VariableDeclaration>[];
+ variables = <ir.VariableDeclaration>[];
}
ir.Expression condition = visitForValue(node.condition);
List<ir.Expression> updates = <ir.Expression>[];
@@ -1506,8 +1506,8 @@ class KernelVisitor extends Object
if (kernel.hasHierarchyProblem(constructor.enclosingClass)) {
constructorInitializers.add(new ir.InvalidInitializer());
} else if (constructor.isSynthesized) {
- List<ir.Expression> arguments = const <ir.Expression>[];
- List<ir.NamedExpression> named = const <ir.NamedExpression>[];
+ List<ir.Expression> arguments = <ir.Expression>[];
+ List<ir.NamedExpression> named = <ir.NamedExpression>[];
FunctionSignature signature = constructor.functionSignature;
if (signature.parameterCount != 0) {
// Mixin application implicit super call.
« no previous file with comments | « lib/kernel.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698