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

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: 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..7c16df35518df8142a07b130deb60e13840b3cca 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,26 @@ 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);
+ }
+
+ @observable
+ bool get hasParent {
+ return (ref != null && ref['parent'] != null);
+ }
+
+ @observable
+ bool get hasClass {
Cutch 2014/03/14 19:45:20 These are better as fields which you set in refCha
+ return (ref != null &&
+ ref['class'] != null &&
+ ref['class']['name'] != null &&
+ ref['class']['name'] != '::');
+ }
+
FunctionRefElement.created() : super.created();
}

Powered by Google App Engine
This is Rietveld 408576698