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

Unified Diff: pkg/compiler/lib/src/serialization/json_serializer.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/serialization/json_serializer.dart
diff --git a/pkg/compiler/lib/src/serialization/json_serializer.dart b/pkg/compiler/lib/src/serialization/json_serializer.dart
index 399bdbfb7157eacc0765d29ccae38985b611c53c..55ec6475109c61ae3b1f82eeb98665ccf28398c3 100644
--- a/pkg/compiler/lib/src/serialization/json_serializer.dart
+++ b/pkg/compiler/lib/src/serialization/json_serializer.dart
@@ -14,8 +14,8 @@ class JsonSerializationEncoder implements SerializationEncoder {
const JsonSerializationEncoder();
String encode(ObjectValue objectValue) {
- return new JsonEncoder.withIndent(' ').convert(
- const JsonValueEncoder().convert(objectValue));
+ return new JsonEncoder.withIndent(' ')
+ .convert(const JsonValueEncoder().convert(objectValue));
}
}
@@ -120,6 +120,7 @@ class PrettyPrintEncoder implements ValueVisitor {
void visitDouble(DoubleValue value, String indentation) {
buffer.write(value.value);
}
+
@override
void visitElement(ElementValue value, String indentation) {
buffer.write('Element(${value.id}):${value.element}');
@@ -209,4 +210,4 @@ class PrettyPrintEncoder implements ValueVisitor {
void visitUri(UriValue value, String indentation) {
buffer.write('Uri(${value.value})');
}
-}
+}
« no previous file with comments | « pkg/compiler/lib/src/serialization/impact_serialization.dart ('k') | pkg/compiler/lib/src/serialization/modelz.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698