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

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

Issue 2259573002: Restore missing properties (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 months 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
« no previous file with comments | « no previous file | runtime/observatory/lib/src/models/objects/instance.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | runtime/observatory/lib/src/models/objects/instance.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698