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

Unified Diff: runtime/vm/object.cc

Issue 1158103002: Use words! closureFunc -> function, closureCtxt -> context. (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/observatory/tests/service/contexts_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 3314c72efe8a016b79b7350f1873ae1c91e2eb9d..6d8a27b62f46273e256c909697616732ddc98102 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -14144,10 +14144,8 @@ void Instance::PrintJSONImpl(JSONStream* stream, bool ref) const {
PrintSharedInstanceJSON(&jsobj, ref);
jsobj.AddServiceId("id", *this);
if (IsClosure()) {
- const Function& closureFunc = Function::Handle(Closure::function(*this));
- jsobj.AddProperty("closureFunc", closureFunc);
- const Context& closureCtxt = Context::Handle(Closure::context(*this));
- jsobj.AddProperty("closureCtxt", closureCtxt);
+ jsobj.AddProperty("function", Function::Handle(Closure::function(*this)));
+ jsobj.AddProperty("context", Context::Handle(Closure::context(*this)));
}
if (ref) {
return;
« no previous file with comments | « runtime/observatory/tests/service/contexts_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698