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

Side by Side Diff: runtime/bin/vmservice/observatory/lib/src/elements/service_view.dart

Issue 501583007: Treat null like the object it is in the Observatory and Service. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: sync and build Created 6 years, 3 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 | Annotate | Revision Log
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 library service_object_view_element; 5 library service_object_view_element;
6 6
7 import 'dart:html'; 7 import 'dart:html';
8 import 'package:logging/logging.dart'; 8 import 'package:logging/logging.dart';
9 import 'package:observatory/service.dart'; 9 import 'package:observatory/service.dart';
10 import 'package:observatory/tracer.dart'; 10 import 'package:observatory/tracer.dart';
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // reasonable way. 81 // reasonable way.
82 case 'Type': 82 case 'Type':
83 case 'Array': 83 case 'Array':
84 case 'Bool': 84 case 'Bool':
85 case 'Closure': 85 case 'Closure':
86 case 'Double': 86 case 'Double':
87 case 'GrowableObjectArray': 87 case 'GrowableObjectArray':
88 case 'Instance': 88 case 'Instance':
89 case 'Smi': 89 case 'Smi':
90 case 'Mint': 90 case 'Mint':
91 case 'Null':
91 case 'Bigint': 92 case 'Bigint':
92 case 'String': 93 case 'String':
93 InstanceViewElement element = new Element.tag('instance-view'); 94 InstanceViewElement element = new Element.tag('instance-view');
94 element.instance = object; 95 element.instance = object;
95 return element; 96 return element;
96 case 'IO': 97 case 'IO':
97 IOViewElement element = new Element.tag('io-view'); 98 IOViewElement element = new Element.tag('io-view');
98 element.io = object; 99 element.io = object;
99 return element; 100 return element;
100 case 'HttpServerList': 101 case 'HttpServerList':
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 255
255 dynamic expander() { 256 dynamic expander() {
256 return expandEvent; 257 return expandEvent;
257 } 258 }
258 259
259 void expandEvent(bool exp, var done) { 260 void expandEvent(bool exp, var done) {
260 expand = exp; 261 expand = exp;
261 done(); 262 done();
262 } 263 }
263 } 264 }
OLDNEW
« no previous file with comments | « runtime/bin/vmservice/observatory/lib/src/elements/service_ref.dart ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698