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

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

Issue 1859343004: dartfmt pkg/compiler (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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/compiler/lib/src/cps_ir/cps_ir_tracer.dart ('k') | pkg/compiler/lib/src/cps_ir/effects.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/cps_ir/eagerly_load_statics.dart
diff --git a/pkg/compiler/lib/src/cps_ir/eagerly_load_statics.dart b/pkg/compiler/lib/src/cps_ir/eagerly_load_statics.dart
index e03f9cad33bc96a02b3daaa241c94945cdb25fd9..60a79771c1d92cf9cd991d22821704e1fee5e9c3 100644
--- a/pkg/compiler/lib/src/cps_ir/eagerly_load_statics.dart
+++ b/pkg/compiler/lib/src/cps_ir/eagerly_load_statics.dart
@@ -23,7 +23,7 @@ class EagerlyLoadStatics extends TrampolineRecursiveVisitor implements Pass {
<Continuation, Map<FieldElement, Primitive>>{};
static Map<FieldElement, Primitive> cloneFieldMap(
- Map<FieldElement, Primitive> map) {
+ Map<FieldElement, Primitive> map) {
return new Map<FieldElement, Primitive>.from(map);
}
@@ -62,9 +62,8 @@ class EagerlyLoadStatics extends TrampolineRecursiveVisitor implements Pass {
// No reason to create a GetStatic when the field is final.
node.replaceWithFragment(new CpsFragment(), initializer);
} else if (initializer != null) {
- GetStatic newNode = new GetStatic.witnessed(node.element,
- initializer, sourceInformation: node.sourceInformation)
- ..type = node.type;
+ GetStatic newNode = new GetStatic.witnessed(node.element, initializer,
+ sourceInformation: node.sourceInformation)..type = node.type;
node.replaceWith(newNode);
} else {
initializerFor[node.element] = node;
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_tracer.dart ('k') | pkg/compiler/lib/src/cps_ir/effects.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698