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

Unified Diff: runtime/vm/debugger_api_impl.cc

Issue 61153006: Add closure object type to debugger wire protocol (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month 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/include/dart_debugger_api.h ('k') | runtime/vm/debugger_api_impl_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/debugger_api_impl.cc
===================================================================
--- runtime/vm/debugger_api_impl.cc (revision 30163)
+++ runtime/vm/debugger_api_impl.cc (working copy)
@@ -602,6 +602,7 @@
DART_EXPORT Dart_Handle Dart_GetClosureInfo(
Dart_Handle closure,
Dart_Handle* name,
+ Dart_Handle* signature,
Dart_CodeLocation* location) {
Isolate* isolate = Isolate::Current();
DARTSCOPE(isolate);
@@ -616,6 +617,10 @@
if (name != NULL) {
*name = Api::NewHandle(isolate, func.QualifiedUserVisibleName());
}
+ if (signature != NULL) {
+ *signature = Api::NewHandle(isolate, func.UserVisibleSignature());
+ }
+
if (location != NULL) {
if (func.token_pos() >= 0) {
const Class& cls = Class::Handle(func.origin());
« no previous file with comments | « runtime/include/dart_debugger_api.h ('k') | runtime/vm/debugger_api_impl_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698