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

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

Issue 376293003: Observatory: Promote function to ServiceObject (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: add deployed/ 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
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 5ed629823df55476456b7bd1b1438e21536a6761..32d79ea6c872e2ed2a3f59e479081eeea6504e41 100644
--- a/runtime/bin/vmservice/client/lib/src/elements/function_ref.dart
+++ b/runtime/bin/vmservice/client/lib/src/elements/function_ref.dart
@@ -5,32 +5,11 @@
library function_ref_element;
import 'package:polymer/polymer.dart';
-import 'package:observatory/service.dart';
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);
- ServiceMap refMap = ref;
- isDart = (refMap != null) &&
- (refMap['kind'] != 'Collected') &&
- (refMap['kind'] != 'Native') &&
- (refMap['kind'] != 'Tag') &&
- (refMap['kind'] != 'Reused');
- hasParent = (refMap != null && refMap['parent'] != null);
- hasClass = (refMap != null &&
- refMap['owner'] != null &&
- refMap['owner'].serviceType == 'Class');
- }
-
- @observable bool hasParent = false;
- @observable bool hasClass = false;
- @observable bool isDart = false;
-
FunctionRefElement.created() : super.created();
}

Powered by Google App Engine
This is Rietveld 408576698