OLD | NEW |
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 |
9 import 'package:logging/logging.dart'; | 9 import 'package:logging/logging.dart'; |
10 import 'package:observatory/service.dart'; | 10 import 'package:observatory/service.dart'; |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 return element; | 118 return element; |
119 case 'Library': | 119 case 'Library': |
120 LibraryRefElement element = new Element.tag('library-ref'); | 120 LibraryRefElement element = new Element.tag('library-ref'); |
121 element.ref = ref; | 121 element.ref = ref; |
122 element.asValue = asValue; | 122 element.asValue = asValue; |
123 return element; | 123 return element; |
124 case 'Object': | 124 case 'Object': |
125 ServiceRefElement element = new Element.tag('object-ref'); | 125 ServiceRefElement element = new Element.tag('object-ref'); |
126 element.ref = ref; | 126 element.ref = ref; |
127 return element; | 127 return element; |
| 128 case '_ObjectStore': |
| 129 ServiceRefElement element = new Element.tag('objectstore-ref'); |
| 130 element.ref = ref; |
| 131 return element; |
128 case 'Script': | 132 case 'Script': |
129 ServiceRefElement element = new Element.tag('script-ref'); | 133 ServiceRefElement element = new Element.tag('script-ref'); |
130 element.ref = ref; | 134 element.ref = ref; |
131 return element; | 135 return element; |
132 case 'Instance': | 136 case 'Instance': |
133 case 'Sentinel': | 137 case 'Sentinel': |
134 ServiceRefElement element = new Element.tag('instance-ref'); | 138 ServiceRefElement element = new Element.tag('instance-ref'); |
135 element.ref = ref; | 139 element.ref = ref; |
136 if (expandKey != null) { | 140 if (expandKey != null) { |
137 element.expandKey = expandKey; | 141 element.expandKey = expandKey; |
(...skipping 20 matching lines...) Expand all Loading... |
158 return; | 162 return; |
159 } | 163 } |
160 children.add(element); | 164 children.add(element); |
161 } | 165 } |
162 } | 166 } |
163 | 167 |
164 @CustomTag('object-ref') | 168 @CustomTag('object-ref') |
165 class ObjectRefElement extends ServiceRefElement { | 169 class ObjectRefElement extends ServiceRefElement { |
166 ObjectRefElement.created() : super.created(); | 170 ObjectRefElement.created() : super.created(); |
167 } | 171 } |
OLD | NEW |