| 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 import 'dart:html'; | 5 import 'dart:html'; |
| 6 import 'dart:async'; | 6 import 'dart:async'; |
| 7 import 'package:observatory/models.dart' as M; | 7 import 'package:observatory/models.dart' as M; |
| 8 import 'package:observatory/src/elements/curly_block.dart'; | 8 import 'package:observatory/src/elements/curly_block.dart'; |
| 9 import 'package:observatory/src/elements/field_ref.dart'; | 9 import 'package:observatory/src/elements/field_ref.dart'; |
| 10 import 'package:observatory/src/elements/helpers/any_ref.dart'; | 10 import 'package:observatory/src/elements/helpers/any_ref.dart'; |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 case M.InstanceKind.int64List: | 286 case M.InstanceKind.int64List: |
| 287 case M.InstanceKind.float32List: | 287 case M.InstanceKind.float32List: |
| 288 case M.InstanceKind.float64List: | 288 case M.InstanceKind.float64List: |
| 289 case M.InstanceKind.int32x4List: | 289 case M.InstanceKind.int32x4List: |
| 290 case M.InstanceKind.float32x4List: | 290 case M.InstanceKind.float32x4List: |
| 291 case M.InstanceKind.float64x2List: | 291 case M.InstanceKind.float64x2List: |
| 292 var index = 0; | 292 var index = 0; |
| 293 return _loadedInstance.typedElements | 293 return _loadedInstance.typedElements |
| 294 .map((e) => new DivElement()..text = '[ ${index++} ] : $e') | 294 .map((e) => new DivElement()..text = '[ ${index++} ] : $e') |
| 295 .toList()..addAll(_createShowMoreButton()); | 295 .toList()..addAll(_createShowMoreButton()); |
| 296 break; | |
| 297 case M.InstanceKind.mirrorReference: | 296 case M.InstanceKind.mirrorReference: |
| 298 return [ | 297 return [ |
| 299 new SpanElement()..text = '<referent> : ', | 298 new SpanElement()..text = '<referent> : ', |
| 300 new InstanceRefElement(_isolate, _loadedInstance.referent, _instances, | 299 new InstanceRefElement(_isolate, _loadedInstance.referent, _instances, |
| 301 queue: _r.queue) | 300 queue: _r.queue) |
| 302 ]; | 301 ]; |
| 303 case M.InstanceKind.weakProperty: | 302 case M.InstanceKind.weakProperty: |
| 304 return [ | 303 return [ |
| 305 new SpanElement()..text = '<key> : ', | 304 new SpanElement()..text = '<key> : ', |
| 306 new InstanceRefElement(_isolate, _loadedInstance.key, _instances, | 305 new InstanceRefElement(_isolate, _loadedInstance.key, _instances, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 334 } else result.add(codeUnit); | 333 } else result.add(codeUnit); |
| 335 } | 334 } |
| 336 if (wasTruncated) { | 335 if (wasTruncated) { |
| 337 result.addAll("...".codeUnits); | 336 result.addAll("...".codeUnits); |
| 338 } else { | 337 } else { |
| 339 result.add("'".codeUnitAt(0)); | 338 result.add("'".codeUnitAt(0)); |
| 340 } | 339 } |
| 341 return new String.fromCharCodes(result); | 340 return new String.fromCharCodes(result); |
| 342 } | 341 } |
| 343 } | 342 } |
| OLD | NEW |