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

Unified Diff: runtime/observatory/lib/src/elements/retaining_path.dart

Issue 2345023003: Use dartfmt on Observatory code (Closed)
Patch Set: merge Created 4 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 side-by-side diff with in-line comments
Download patch
Index: runtime/observatory/lib/src/elements/retaining_path.dart
diff --git a/runtime/observatory/lib/src/elements/retaining_path.dart b/runtime/observatory/lib/src/elements/retaining_path.dart
index 2fea22cd8c8ef1794800c9add0c68f657867c693..547b573c90224e012472cda8a9f3fda3ae8ed356 100644
--- a/runtime/observatory/lib/src/elements/retaining_path.dart
+++ b/runtime/observatory/lib/src/elements/retaining_path.dart
@@ -13,15 +13,11 @@ import 'package:observatory/src/elements/helpers/tag.dart';
class RetainingPathElement extends HtmlElement implements Renderable {
static const tag = const Tag<RetainingPathElement>('retaining-path',
- dependencies: const [
- CurlyBlockElement.tag,
- InstanceRefElement.tag
- ]);
+ dependencies: const [CurlyBlockElement.tag, InstanceRefElement.tag]);
RenderingScheduler<RetainingPathElement> _r;
- Stream<RenderedEvent<RetainingPathElement>> get onRendered =>
- _r.onRendered;
+ Stream<RenderedEvent<RetainingPathElement>> get onRendered => _r.onRendered;
M.IsolateRef _isolate;
M.ObjectRef _object;
@@ -87,9 +83,7 @@ class RetainingPathElement extends HtmlElement implements Renderable {
List<Element> _createContent() {
if (_path == null) {
- return [
- new SpanElement()..text = 'Loading'
- ];
+ return [new SpanElement()..text = 'Loading'];
}
return _path.elements.map(_createItem).toList();
}
@@ -98,30 +92,26 @@ class RetainingPathElement extends HtmlElement implements Renderable {
final content = <Element>[];
if (item.parentField != null) {
- content.add(
- new SpanElement()
- ..children = [
- new SpanElement()..text = 'from ',
- anyRef(_isolate, item.parentField, _instances, queue: _r.queue),
- new SpanElement()..text = ' of ',
- ]);
+ content.add(new SpanElement()
+ ..children = [
+ new SpanElement()..text = 'from ',
+ anyRef(_isolate, item.parentField, _instances, queue: _r.queue),
+ new SpanElement()..text = ' of ',
+ ]);
} else if (item.parentListIndex != null) {
content.add(
- new SpanElement()
- ..text = 'from [ ${item.parentListIndex} ] of ');
+ new SpanElement()..text = 'from [ ${item.parentListIndex} ] of ');
} else if (item.parentWordOffset != null) {
- content.add(
- new SpanElement()
- ..text = 'from word [ ${item.parentWordOffset} ] of ');
+ content.add(new SpanElement()
+ ..text = 'from word [ ${item.parentWordOffset} ] of ');
} else {
content.add(new SpanElement()..text = 'from ');
}
- content.add(
- anyRef(_isolate, item.source, _instances, queue: _r.queue)
- );
+ content.add(anyRef(_isolate, item.source, _instances, queue: _r.queue));
- return new DivElement()..classes = ['indent']
- ..children = content;
+ return new DivElement()
+ ..classes = ['indent']
+ ..children = content;
}
}
« no previous file with comments | « runtime/observatory/lib/src/elements/ports.dart ('k') | runtime/observatory/lib/src/elements/sample_buffer_control.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698