| 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; | |
| 132 case 'Script': | 128 case 'Script': |
| 133 ServiceRefElement element = new Element.tag('script-ref'); | 129 ServiceRefElement element = new Element.tag('script-ref'); |
| 134 element.ref = ref; | 130 element.ref = ref; |
| 135 return element; | 131 return element; |
| 136 case 'Instance': | 132 case 'Instance': |
| 137 case 'Sentinel': | 133 case 'Sentinel': |
| 138 ServiceRefElement element = new Element.tag('instance-ref'); | 134 ServiceRefElement element = new Element.tag('instance-ref'); |
| 139 element.ref = ref; | 135 element.ref = ref; |
| 140 if (expandKey != null) { | 136 if (expandKey != null) { |
| 141 element.expandKey = expandKey; | 137 element.expandKey = expandKey; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 162 return; | 158 return; |
| 163 } | 159 } |
| 164 children.add(element); | 160 children.add(element); |
| 165 } | 161 } |
| 166 } | 162 } |
| 167 | 163 |
| 168 @CustomTag('object-ref') | 164 @CustomTag('object-ref') |
| 169 class ObjectRefElement extends ServiceRefElement { | 165 class ObjectRefElement extends ServiceRefElement { |
| 170 ObjectRefElement.created() : super.created(); | 166 ObjectRefElement.created() : super.created(); |
| 171 } | 167 } |
| OLD | NEW |