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

Unified Diff: runtime/vm/json_stream.h

Issue 18472009: JSONStream Print Dart Objects (Closed) Base URL: https://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
« no previous file with comments | « no previous file | runtime/vm/json_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/json_stream.h
diff --git a/runtime/vm/json_stream.h b/runtime/vm/json_stream.h
index 1b019ff569259ee77edf60cccad5b593b3e4d492..7650c9b30595892011ea1b71b192de4939f9a81c 100644
--- a/runtime/vm/json_stream.h
+++ b/runtime/vm/json_stream.h
@@ -9,6 +9,7 @@
namespace dart {
+class Object;
class JSONStream : ValueObject {
public:
@@ -27,11 +28,13 @@ class JSONStream : ValueObject {
void PrintValue(intptr_t i);
void PrintValue(double d);
void PrintValue(const char* s);
+ void PrintValue(const Object& o, bool ref = true);
void PrintPropertyBool(const char* name, bool b);
void PrintProperty(const char* name, intptr_t i);
void PrintProperty(const char* name, double d);
void PrintProperty(const char* name, const char* s);
+ void PrintProperty(const char* name, const Object& o, bool ref = true);
private:
void PrintPropertyName(const char* name);
« no previous file with comments | « no previous file | runtime/vm/json_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698