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

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

Issue 215213003: Rework the <field-view> page. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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/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 66f1380259c5cf4ae3c92ffbb45f06f112a50b98..3f94ce405ff5a5d0bc03f080122604ff183a5f04 100644
--- a/runtime/bin/vmservice/client/lib/src/elements/function_view.dart
+++ b/runtime/bin/vmservice/client/lib/src/elements/function_view.dart
@@ -26,14 +26,13 @@ class FunctionViewElement extends ObservatoryElement {
return "${_getQualifiedName(parent)}.${function['user_name']}";
}
var cls = (function != null &&
- function['class'] != null &&
- function['class']['user_name'] != null &&
- function['class']['user_name'] != '::'
- ? function['class'] : null);
+ function['owner'] != null &&
+ function['owner'].serviceType == 'Class'
+ ? function['owner'] : null);
if (cls != null) {
return "${cls['user_name']}.${function['user_name']}";
}
- return "${function['username']}";
+ return "${function['user_name']}";
}
void functionChanged(oldValue) {

Powered by Google App Engine
This is Rietveld 408576698