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

Unified Diff: runtime/observatory/lib/src/elements/flag_list.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/flag_list.dart
diff --git a/runtime/observatory/lib/src/elements/flag_list.dart b/runtime/observatory/lib/src/elements/flag_list.dart
index 5405008b505e332868ab84ca9c19adce184276fd..ac310c8133c9ec3b962a7609039a2c52bf95eb23 100644
--- a/runtime/observatory/lib/src/elements/flag_list.dart
+++ b/runtime/observatory/lib/src/elements/flag_list.dart
@@ -18,12 +18,14 @@ import 'package:observatory/src/elements/nav/vm_menu.dart';
import 'package:observatory/src/elements/view_footer.dart';
class FlagListElement extends HtmlElement implements Renderable {
- static const tag = const Tag<FlagListElement>('flag-list',
- dependencies: const [NavNotifyElement.tag,
- NavRefreshElement.tag,
- NavTopMenuElement.tag,
- NavVMMenuElement.tag,
- ViewFooterElement.tag,]);
+ static const tag =
+ const Tag<FlagListElement>('flag-list', dependencies: const [
+ NavNotifyElement.tag,
+ NavRefreshElement.tag,
+ NavTopMenuElement.tag,
+ NavVMMenuElement.tag,
+ ViewFooterElement.tag,
+ ]);
RenderingScheduler _r;
@@ -37,11 +39,9 @@ class FlagListElement extends HtmlElement implements Renderable {
M.VMRef get vm => _vm;
- factory FlagListElement(M.VMRef vm,
- M.EventRepository events,
- M.FlagsRepository repository,
- M.NotificationRepository notifications,
- {RenderingQueue queue}) {
+ factory FlagListElement(M.VMRef vm, M.EventRepository events,
+ M.FlagsRepository repository, M.NotificationRepository notifications,
+ {RenderingQueue queue}) {
assert(vm != null);
assert(events != null);
assert(repository != null);
@@ -131,15 +131,19 @@ class FlagListElement extends HtmlElement implements Renderable {
static List<Element> _renderFlag(M.Flag flag) {
return [
- new SpanElement()..classes = ['comment']
+ new SpanElement()
+ ..classes = ['comment']
..text = '// ${flag.comment}',
- new DivElement()..classes = flag.modified ? ['flag', 'modified']
- : ['flag', 'unmodified']
+ new DivElement()
+ ..classes =
+ flag.modified ? ['flag', 'modified'] : ['flag', 'unmodified']
..children = [
- new SpanElement()..classes = ['name']
+ new SpanElement()
+ ..classes = ['name']
..text = flag.name,
new SpanElement()..text = '=',
- new SpanElement()..classes = ['value']
+ new SpanElement()
+ ..classes = ['value']
..text = flag.valueAsString ?? 'NULL'
],
new BRElement(),
« no previous file with comments | « runtime/observatory/lib/src/elements/field_view.dart ('k') | runtime/observatory/lib/src/elements/function_ref.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698