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

Unified Diff: runtime/vm/json_stream.h

Issue 1150303004: Switch to using SourceLocation universally in service protocol. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: post merge 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/debugger_test.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 39bb0ac28cc81e14cbe06e32788a4942f7382e6b..c878ef7ee74aec3b770122debf8edf46d616b02f 100644
--- a/runtime/vm/json_stream.h
+++ b/runtime/vm/json_stream.h
@@ -21,6 +21,7 @@ class JSONObject;
class MessageQueue;
class Metric;
class Object;
+class Script;
class ServiceEvent;
class Breakpoint;
class String;
@@ -186,6 +187,10 @@ class JSONObject : public ValueObject {
void AddFixedServiceId(const char* format, ...) const PRINTF_ATTRIBUTE(2, 3);
+ void AddLocation(const Script& script,
+ intptr_t token_pos,
+ intptr_t end_token_pos = -1);
+
void AddProperty(const char* name, bool b) const {
stream_->PrintPropertyBool(name, b);
}
« no previous file with comments | « runtime/vm/debugger_test.cc ('k') | runtime/vm/json_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698