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

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

Issue 2829463003: Format all remaining unformatted runtime files other than multitests. (Closed)
Patch Set: Created 3 years, 8 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
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 class_view_element; 5 library class_view_element;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:html'; 8 import 'dart:html';
9 import 'package:observatory/models.dart' as M; 9 import 'package:observatory/models.dart' as M;
10 import 'package:observatory/src/elements/class_allocation_profile.dart'; 10 import 'package:observatory/src/elements/class_allocation_profile.dart';
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 new DivElement() 377 new DivElement()
378 ..classes = ['memberName'] 378 ..classes = ['memberName']
379 ..text = 'extended by', 379 ..text = 'extended by',
380 new DivElement() 380 new DivElement()
381 ..classes = ['memberValue'] 381 ..classes = ['memberValue']
382 ..children = (_cls.subclasses 382 ..children = (_cls.subclasses
383 .expand((subcls) => [ 383 .expand((subcls) => [
384 new ClassRefElement(_isolate, subcls, queue: _r.queue), 384 new ClassRefElement(_isolate, subcls, queue: _r.queue),
385 new SpanElement()..text = ', ' 385 new SpanElement()..text = ', '
386 ]) 386 ])
387 .toList()..removeLast()) 387 .toList()
388 ..removeLast())
388 ]); 389 ]);
389 } 390 }
390 391
391 members.add(new BRElement()); 392 members.add(new BRElement());
392 393
393 if (_cls.interfaces.length > 0) { 394 if (_cls.interfaces.length > 0) {
394 members.add(new DivElement() 395 members.add(new DivElement()
395 ..classes = ['memberItem'] 396 ..classes = ['memberItem']
396 ..children = [ 397 ..children = [
397 new DivElement() 398 new DivElement()
398 ..classes = ['memberName'] 399 ..classes = ['memberName']
399 ..text = 'implements', 400 ..text = 'implements',
400 new DivElement() 401 new DivElement()
401 ..classes = ['memberValue'] 402 ..classes = ['memberValue']
402 ..children = (_cls.interfaces 403 ..children = (_cls.interfaces
403 .expand((interf) => [ 404 .expand((interf) => [
404 new InstanceRefElement(_isolate, interf, _instances, 405 new InstanceRefElement(_isolate, interf, _instances,
405 queue: _r.queue), 406 queue: _r.queue),
406 new SpanElement()..text = ', ' 407 new SpanElement()..text = ', '
407 ]) 408 ])
408 .toList()..removeLast()) 409 .toList()
410 ..removeLast())
409 ]); 411 ]);
410 } 412 }
411 if (_cls.name != _cls.vmName) { 413 if (_cls.name != _cls.vmName) {
412 members.add(new DivElement() 414 members.add(new DivElement()
413 ..classes = ['memberItem'] 415 ..classes = ['memberItem']
414 ..children = [ 416 ..children = [
415 new DivElement() 417 new DivElement()
416 ..classes = ['memberName'] 418 ..classes = ['memberName']
417 ..text = 'vm name', 419 ..text = 'vm name',
418 new DivElement() 420 new DivElement()
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 await _loadAdditionalData(); 503 await _loadAdditionalData();
502 _r.dirty(); 504 _r.dirty();
503 } 505 }
504 506
505 Future _loadAdditionalData() async { 507 Future _loadAdditionalData() async {
506 _classFields = 508 _classFields =
507 await Future.wait(_cls.fields.map((f) => _fields.get(_isolate, f.id))); 509 await Future.wait(_cls.fields.map((f) => _fields.get(_isolate, f.id)));
508 _r.dirty(); 510 _r.dirty();
509 } 511 }
510 } 512 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/class_ref.dart ('k') | runtime/observatory/lib/src/elements/code_ref.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698