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

Unified Diff: sdk/lib/_internal/dartdoc/lib/src/json_serializer.dart

Issue 19500013: Use path package in dartdoc (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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: sdk/lib/_internal/dartdoc/lib/src/json_serializer.dart
===================================================================
--- sdk/lib/_internal/dartdoc/lib/src/json_serializer.dart (revision 25311)
+++ sdk/lib/_internal/dartdoc/lib/src/json_serializer.dart (working copy)
@@ -21,7 +21,7 @@
/// Serialize the object with pretty printing.
String prettySerialize(Object o) {
- var printer = new JsonPrinter(_prettyPrint: true);
+ var printer = new JsonPrinter(prettyPrint: true);
_serialize(null, o, printer);
return printer.toString();
}
@@ -120,8 +120,8 @@
int _indent = 0;
bool _inSet = false;
- bool _prettyPrint;
- JsonPrinter({this._prettyPrint: false}) {
+ bool prettyPrint;
+ JsonPrinter({this.prettyPrint: false}) {
_sb = new StringBuffer();
}
@@ -202,7 +202,7 @@
}
String toString() {
- if (_prettyPrint) {
+ if (prettyPrint) {
return _sb.toString();
} else {
// Convenient hack to remove the pretty printing this serializer adds by
« no previous file with comments | « sdk/lib/_internal/dartdoc/lib/src/dart2js_mirrors.dart ('k') | sdk/lib/_internal/dartdoc/test/dartdoc_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698