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

Unified Diff: runtime/vm/json_stream.cc

Issue 1537523002: Add dart:developer.postEvent for posting events to the service protocol from Dart code (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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/json_stream.h ('k') | runtime/vm/service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/json_stream.cc
diff --git a/runtime/vm/json_stream.cc b/runtime/vm/json_stream.cc
index a69eede2b1fb4564fdf6c5dd12bb180524fd059f..4851875703cd3b4c12c6e552b63d2a039c1169fc 100644
--- a/runtime/vm/json_stream.cc
+++ b/runtime/vm/json_stream.cc
@@ -262,6 +262,13 @@ void JSONStream::AppendSerializedObject(const char* serialized_object) {
}
+void JSONStream::AppendSerializedObject(const char* property_name,
+ const char* serialized_object) {
+ PrintCommaIfNeeded();
+ PrintPropertyName(property_name);
+ buffer_.AddString(serialized_object);
+}
+
void JSONStream::Clear() {
buffer_.Clear();
open_objects_ = 0;
« no previous file with comments | « runtime/vm/json_stream.h ('k') | runtime/vm/service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698