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

Side by Side Diff: runtime/observatory/lib/src/elements/service_ref.dart

Issue 1463123002: - Display a pseudo-receiver for static function activations. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library service_ref_element; 5 library service_ref_element;
6 6
7 import 'dart:html'; 7 import 'dart:html';
8
8 import 'package:logging/logging.dart'; 9 import 'package:logging/logging.dart';
10 import 'package:observatory/service.dart';
9 import 'package:polymer/polymer.dart'; 11 import 'package:polymer/polymer.dart';
12
13 import 'class_ref.dart';
14 import 'library_ref.dart';
10 import 'observatory_element.dart'; 15 import 'observatory_element.dart';
11 import 'package:observatory/service.dart';
12 16
13 @CustomTag('service-ref') 17 @CustomTag('service-ref')
14 class ServiceRefElement extends ObservatoryElement { 18 class ServiceRefElement extends ObservatoryElement {
15 @published ServiceObject ref; 19 @published ServiceObject ref;
16 @published bool internal = false; 20 @published bool internal = false;
17 @published String expandKey; 21 @published String expandKey;
18 ServiceRefElement.created() : super.created(); 22 ServiceRefElement.created() : super.created();
19 23
20 void refChanged(oldValue) { 24 void refChanged(oldValue) {
21 notifyPropertyChange(#url, "", url); 25 notifyPropertyChange(#url, "", url);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 onDone(); 78 onDone();
75 } 79 }
76 } 80 }
77 } 81 }
78 82
79 83
80 @CustomTag('any-service-ref') 84 @CustomTag('any-service-ref')
81 class AnyServiceRefElement extends ObservatoryElement { 85 class AnyServiceRefElement extends ObservatoryElement {
82 @published ServiceObject ref; 86 @published ServiceObject ref;
83 @published String expandKey; 87 @published String expandKey;
88 @published bool asValue = false;
84 AnyServiceRefElement.created() : super.created(); 89 AnyServiceRefElement.created() : super.created();
85 90
86 Element _constructElementForRef() { 91 Element _constructElementForRef() {
87 var type = ref.type; 92 var type = ref.type;
88 switch (type) { 93 switch (type) {
89 case 'Class': 94 case 'Class':
90 ServiceRefElement element = new Element.tag('class-ref'); 95 ClassRefElement element = new Element.tag('class-ref');
91 element.ref = ref; 96 element.ref = ref;
97 element.asValue = asValue;
92 return element; 98 return element;
93 case 'Code': 99 case 'Code':
94 ServiceRefElement element = new Element.tag('code-ref'); 100 ServiceRefElement element = new Element.tag('code-ref');
95 element.ref = ref; 101 element.ref = ref;
96 return element; 102 return element;
97 case 'Context': 103 case 'Context':
98 ServiceRefElement element = new Element.tag('context-ref'); 104 ServiceRefElement element = new Element.tag('context-ref');
99 element.ref = ref; 105 element.ref = ref;
100 return element; 106 return element;
101 case 'Error': 107 case 'Error':
102 ServiceRefElement element = new Element.tag('error-ref'); 108 ServiceRefElement element = new Element.tag('error-ref');
103 element.ref = ref; 109 element.ref = ref;
104 return element; 110 return element;
105 case 'Field': 111 case 'Field':
106 ServiceRefElement element = new Element.tag('field-ref'); 112 ServiceRefElement element = new Element.tag('field-ref');
107 element.ref = ref; 113 element.ref = ref;
108 return element; 114 return element;
109 case 'Function': 115 case 'Function':
110 ServiceRefElement element = new Element.tag('function-ref'); 116 ServiceRefElement element = new Element.tag('function-ref');
111 element.ref = ref; 117 element.ref = ref;
112 return element; 118 return element;
113 case 'Library': 119 case 'Library':
114 ServiceRefElement element = new Element.tag('library-ref'); 120 LibraryRefElement element = new Element.tag('library-ref');
115 element.ref = ref; 121 element.ref = ref;
122 element.asValue = asValue;
116 return element; 123 return element;
117 case 'Object': 124 case 'Object':
118 ServiceRefElement element = new Element.tag('object-ref'); 125 ServiceRefElement element = new Element.tag('object-ref');
119 element.ref = ref; 126 element.ref = ref;
120 return element; 127 return element;
121 case 'Script': 128 case 'Script':
122 ServiceRefElement element = new Element.tag('script-ref'); 129 ServiceRefElement element = new Element.tag('script-ref');
123 element.ref = ref; 130 element.ref = ref;
124 return element; 131 return element;
125 case 'Instance': 132 case 'Instance':
(...skipping 25 matching lines...) Expand all
151 return; 158 return;
152 } 159 }
153 children.add(element); 160 children.add(element);
154 } 161 }
155 } 162 }
156 163
157 @CustomTag('object-ref') 164 @CustomTag('object-ref')
158 class ObjectRefElement extends ServiceRefElement { 165 class ObjectRefElement extends ServiceRefElement {
159 ObjectRefElement.created() : super.created(); 166 ObjectRefElement.created() : super.created();
160 } 167 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/library_ref.html ('k') | runtime/observatory/lib/src/elements/timeline_page.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698