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

Unified Diff: runtime/vm/object.h

Issue 547703002: Rework how types work in the VM Service. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: gen js Created 6 years, 3 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/json_test.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 9eb987d19117f5d39b41f3463853a5ec5596e477..5bd2d9d40132047b83f79631f989e1d2fb77a316 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -136,8 +136,8 @@ class Symbols;
/* Object is printed as JSON into stream. If ref is true only a header */ \
/* with an object id is printed. If ref is false the object is fully */ \
/* printed. */ \
- virtual const char* JSONType(bool ref) const { \
- return ref ? "@"#object : ""#object; \
+ virtual const char* JSONType() const { \
+ return ""#object; \
} \
static const ClassId kClassId = k##object##Cid; \
protected: /* NOLINT */ \
@@ -281,7 +281,7 @@ class Object {
void PrintJSON(JSONStream* stream, bool ref = true) const;
- virtual const char* JSONType(bool ref) const {
+ virtual const char* JSONType() const {
return IsNull() ? "null" : "Object";
}
« no previous file with comments | « runtime/vm/json_test.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698