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

Unified Diff: pkg/compiler/lib/src/constants/expressions.dart

Issue 2119193002: Compute correct names for closures in operator methods. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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/constants/expressions.dart
diff --git a/pkg/compiler/lib/src/constants/expressions.dart b/pkg/compiler/lib/src/constants/expressions.dart
index e3058661915fbe0583142d597365682120bfee33..9ecbaa56b7f8572da3efe7f52b46739ae9b0f37a 100644
--- a/pkg/compiler/lib/src/constants/expressions.dart
+++ b/pkg/compiler/lib/src/constants/expressions.dart
@@ -485,17 +485,12 @@ class MapConstantExpression extends ConstantExpression {
Map<ConstantValue, ConstantValue> valueMap =
<ConstantValue, ConstantValue>{};
for (int index = 0; index < keys.length; index++) {
Johnni Winther 2016/07/04 13:40:36 dartfmt
- ConstantValue key =
- keys[index].evaluate(environment, constantSystem);
- ConstantValue value =
- values[index].evaluate(environment, constantSystem);
+ ConstantValue key = keys[index].evaluate(environment, constantSystem);
+ ConstantValue value = values[index].evaluate(environment, constantSystem);
valueMap[key] = value;
}
- return constantSystem.createMap(
- environment.compiler,
- type,
- valueMap.keys.toList(),
- valueMap.values.toList());
+ return constantSystem.createMap(environment.compiler, type,
+ valueMap.keys.toList(), valueMap.values.toList());
}
ConstantExpression apply(NormalizedArguments arguments) {
« no previous file with comments | « no previous file | pkg/compiler/lib/src/elements/elements.dart » ('j') | pkg/compiler/lib/src/js_backend/js_interop_analysis.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698