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

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: code review 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
Index: runtime/vm/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index ac7bf97c21c4e48590aea2afd1ae022a5c50ac2c..9437dcba231f340cba881dd1bd9159361ca870ca 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";
}

Powered by Google App Engine
This is Rietveld 408576698