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

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

Issue 199363002: Rework library and class view pages. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge 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_ref.dart
diff --git a/runtime/bin/vmservice/client/lib/src/elements/function_ref.dart b/runtime/bin/vmservice/client/lib/src/elements/function_ref.dart
index 3133ed754cdf991f38094e5c94a8618783c59861..0223bf1ba5ffffc07d42560acd9c201ba675f54b 100644
--- a/runtime/bin/vmservice/client/lib/src/elements/function_ref.dart
+++ b/runtime/bin/vmservice/client/lib/src/elements/function_ref.dart
@@ -9,5 +9,21 @@ import 'service_ref.dart';
@CustomTag('function-ref')
class FunctionRefElement extends ServiceRefElement {
+ @published bool qualified = true;
+
+ void refChanged(oldValue) {
+ super.refChanged(oldValue);
+ notifyPropertyChange(#hasParent, 0, 1);
+ notifyPropertyChange(#hasClass, 0, 1);
+ hasParent = (ref != null && ref['parent'] != null);
+ hasClass = (ref != null &&
+ ref['class'] != null &&
+ ref['class']['name'] != null &&
+ ref['class']['name'] != '::');
+ }
+
+ @observable bool hasParent = false;
+ @observable bool hasClass = false;
+
FunctionRefElement.created() : super.created();
}

Powered by Google App Engine
This is Rietveld 408576698