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

Unified Diff: runtime/vm/json_stream.h

Issue 1157173005: Include 'fixedId' key when printing service ids (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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 | « runtime/vm/isolate.cc ('k') | 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 3c3bc9c1d3b83244f19c7a3f17a577179f7cb4b3..2aa195e85fb9e69e358c6c2a1b8acbc50e85aaca 100644
--- a/runtime/vm/json_stream.h
+++ b/runtime/vm/json_stream.h
@@ -122,7 +122,7 @@ class JSONStream : ValueObject {
void PrintValue(Isolate* isolate, bool ref = true);
bool PrintValueStr(const String& s, intptr_t limit);
- void PrintServiceId(const char* name, const Object& o);
+ void PrintServiceId(const Object& o);
void PrintPropertyBool(const char* name, bool b);
void PrintProperty(const char* name, intptr_t i);
void PrintProperty64(const char* name, int64_t i);
@@ -181,10 +181,12 @@ class JSONObject : public ValueObject {
stream_->CloseObject();
}
- void AddServiceId(const char* name, const Object& o) const {
- stream_->PrintServiceId(name, o);
+ void AddServiceId(const Object& o) const {
+ stream_->PrintServiceId(o);
}
+ void AddFixedServiceId(const char* format, ...) const PRINTF_ATTRIBUTE(2, 3);
+
void AddProperty(const char* name, bool b) const {
stream_->PrintPropertyBool(name, b);
}
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/json_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698