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

Unified Diff: runtime/observatory/lib/src/elements/heap_snapshot.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 side-by-side diff with in-line comments
Download patch
Index: runtime/observatory/lib/src/elements/heap_snapshot.dart
diff --git a/runtime/observatory/lib/src/elements/heap_snapshot.dart b/runtime/observatory/lib/src/elements/heap_snapshot.dart
index 025a1da6c376b2d12e49610c980547d33c6ae047..238db567256a67c7facb9c63af5e2db3a4e28746 100644
--- a/runtime/observatory/lib/src/elements/heap_snapshot.dart
+++ b/runtime/observatory/lib/src/elements/heap_snapshot.dart
@@ -462,8 +462,9 @@ class HeapSnapshotElement extends HtmlElement implements Renderable {
element.children[0].text = Utils.formatSize(item.shallowSize);
element.children[2].text = _tree.isExpanded(item) ? '▼' : '►';
element.children[3].text = '${item.instances} instances of ';
- element.children[4] = new ClassRefElement(_isolate, item.clazz,
- queue: _r.queue)..classes = ['name'];
+ element.children[4] =
+ new ClassRefElement(_isolate, item.clazz, queue: _r.queue)
+ ..classes = ['name'];
} else if (item is Iterable) {
element.children[0].text = '';
if (item.isNotEmpty) {
@@ -533,8 +534,8 @@ class HeapSnapshotElement extends HtmlElement implements Renderable {
..value = rootsToString(_roots)
..children = M.HeapSnapshotRoots.values.map((roots) {
return new OptionElement(
- value: rootsToString(roots),
- selected: _roots == roots)..text = rootsToString(roots);
+ value: rootsToString(roots), selected: _roots == roots)
+ ..text = rootsToString(roots);
}).toList(growable: false)
..onChange.listen((_) {
_roots = M.HeapSnapshotRoots.values[s.selectedIndex];
@@ -563,8 +564,8 @@ class HeapSnapshotElement extends HtmlElement implements Renderable {
..value = modeToString(_mode)
..children = HeapSnapshotTreeMode.values.map((mode) {
return new OptionElement(
- value: modeToString(mode),
- selected: _mode == mode)..text = modeToString(mode);
+ value: modeToString(mode), selected: _mode == mode)
+ ..text = modeToString(mode);
}).toList(growable: false)
..onChange.listen((_) {
_mode = HeapSnapshotTreeMode.values[s.selectedIndex];
« no previous file with comments | « runtime/observatory/lib/src/elements/debugger.dart ('k') | runtime/observatory/lib/src/elements/instance_ref.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698