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 script_inset_element; | 5 library script_inset_element; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:html'; | 8 import 'dart:html'; |
9 import 'observatory_element.dart'; | 9 import 'observatory_element.dart'; |
10 import 'service_ref.dart'; | 10 import 'service_ref.dart'; |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 element.title = "field ${field.name}"; | 223 element.title = "field ${field.name}"; |
224 | 224 |
225 addInfoBox(element, () { | 225 addInfoBox(element, () { |
226 var details = table(); | 226 var details = table(); |
227 var r = row(); | 227 var r = row(); |
228 r.append(cell("Field")); | 228 r.append(cell("Field")); |
229 r.append(cell(serviceRef(field))); | 229 r.append(cell(serviceRef(field))); |
230 details.append(r); | 230 details.append(r); |
231 | 231 |
232 if (field.isStatic) { | 232 if (field.isStatic) { |
233 r = row(); | 233 if (field.loaded) { |
234 r.append(cell("Value")); | 234 r = row(); |
235 r.append(cell(serviceRef(field.value))); | 235 r.append(cell("Value")); |
236 details.append(r); | 236 r.append(cell(serviceRef(field.staticValue))); |
| 237 details.append(r); |
| 238 } |
237 } else { | 239 } else { |
238 r = row(); | 240 r = row(); |
239 r.append(cell("Nullable")); | 241 r.append(cell("Nullable")); |
240 r.append(cell(field.guardNullable ? "null observed" | 242 r.append(cell(field.guardNullable ? "null observed" |
241 : "null not observed")); | 243 : "null not observed")); |
242 details.append(r); | 244 details.append(r); |
243 | 245 |
244 r = row(); | 246 r = row(); |
245 r.append(cell("Types")); | 247 r.append(cell("Types")); |
246 if (field.guardClass == "dynamic") { | 248 if (field.guardClass == "dynamic") { |
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
738 e.append(span('\n')); | 740 e.append(span('\n')); |
739 | 741 |
740 return e; | 742 return e; |
741 } | 743 } |
742 | 744 |
743 ScriptInsetElement.created() | 745 ScriptInsetElement.created() |
744 : super.created() { | 746 : super.created() { |
745 _updateTask = new Task(update); | 747 _updateTask = new Task(update); |
746 } | 748 } |
747 } | 749 } |
OLD | NEW |