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

Unified Diff: runtime/bin/vmservice/client/lib/src/elements/function_view.dart

Issue 379223002: Observatory: Fix left over from class not being a ServiceObject (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/vmservice/client/lib/src/elements/function_view.dart
diff --git a/runtime/bin/vmservice/client/lib/src/elements/function_view.dart b/runtime/bin/vmservice/client/lib/src/elements/function_view.dart
index 3f94ce405ff5a5d0bc03f080122604ff183a5f04..4463a34f90ddc45262482f801b564e23348203df 100644
--- a/runtime/bin/vmservice/client/lib/src/elements/function_view.dart
+++ b/runtime/bin/vmservice/client/lib/src/elements/function_view.dart
@@ -25,12 +25,12 @@ class FunctionViewElement extends ObservatoryElement {
if (parent != null) {
return "${_getQualifiedName(parent)}.${function['user_name']}";
}
- var cls = (function != null &&
- function['owner'] != null &&
- function['owner'].serviceType == 'Class'
- ? function['owner'] : null);
+ Class cls = (function != null &&
+ function['owner'] != null &&
+ function['owner'].serviceType == 'Class'
+ ? function['owner'] : null);
if (cls != null) {
- return "${cls['user_name']}.${function['user_name']}";
+ return "${cls.name}.${function['user_name']}";
}
return "${function['user_name']}";
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698