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

Unified Diff: pkg/compiler/lib/src/js_emitter/constant_ordering.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
Index: pkg/compiler/lib/src/js_emitter/constant_ordering.dart
diff --git a/pkg/compiler/lib/src/js_emitter/constant_ordering.dart b/pkg/compiler/lib/src/js_emitter/constant_ordering.dart
index 462d0e451e84b44de32ab0bbc56d48f7a1ecfe09..a2a0d7d5fccadb0f77d2b1c4314f5d09c0b4c638 100644
--- a/pkg/compiler/lib/src/js_emitter/constant_ordering.dart
+++ b/pkg/compiler/lib/src/js_emitter/constant_ordering.dart
@@ -7,10 +7,7 @@ library dart2js.js_emitter.constant_ordering;
import '../constants/values.dart';
import '../dart_types.dart';
-import '../elements/elements.dart'
- show Element,
- Elements,
- FieldElement;
+import '../elements/elements.dart' show Element, Elements, FieldElement;
import '../tree/tree.dart' show DartString;
import '../js_backend/js_backend.dart' show SyntheticConstantKind;
@@ -64,8 +61,8 @@ class _CompareVisitor implements ConstantValueVisitor<int, ConstantValue> {
if (a is GenericType) {
GenericType aGeneric = a;
GenericType bGeneric = b;
- r = compareLists(compareDartTypes,
- aGeneric.typeArguments, bGeneric.typeArguments);
+ r = compareLists(
+ compareDartTypes, aGeneric.typeArguments, bGeneric.typeArguments);
if (r != 0) return r;
}
throw 'unexpected compareDartTypes $a $b';
@@ -125,7 +122,8 @@ class _CompareVisitor implements ConstantValueVisitor<int, ConstantValue> {
r = compareLists(compareElements, aFields, bFields);
if (r != 0) return r;
- return compareLists(compareValues,
+ return compareLists(
+ compareValues,
aFields.map((field) => a.fields[field]).toList(),
aFields.map((field) => b.fields[field]).toList());
}

Powered by Google App Engine
This is Rietveld 408576698