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

Unified Diff: runtime/observatory/lib/src/elements/logging_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/logging_list.dart
diff --git a/runtime/observatory/lib/src/elements/logging_list.dart b/runtime/observatory/lib/src/elements/logging_list.dart
index e8036390882d563d8eff15f02bb9aa956d596d65..8b8b77d7be871ce4b0612acc3c48ca2968f02ab7 100644
--- a/runtime/observatory/lib/src/elements/logging_list.dart
+++ b/runtime/observatory/lib/src/elements/logging_list.dart
@@ -28,9 +28,8 @@ class LoggingListElement extends HtmlElement implements Renderable {
set level(Level value) => _level = _r.checkAndReact(_level, value);
- factory LoggingListElement(M.IsolateRef isolate,
- M.EventRepository events,
- {RenderingQueue queue}) {
+ factory LoggingListElement(M.IsolateRef isolate, M.EventRepository events,
+ {RenderingQueue queue}) {
assert(isolate != null);
assert(events != null);
LoggingListElement e = document.createElement(tag.name);
@@ -65,17 +64,22 @@ class LoggingListElement extends HtmlElement implements Renderable {
}
void render() {
- children = _logs.where(_shouldBeVisible).map((logRecord) =>
- new DivElement()..classes = ['logItem', logRecord['level'].name]
- ..children = [
- new SpanElement()..classes = ['level']
- ..text = logRecord['level'].name,
- new SpanElement()..classes = ['time']
- ..text = Utils.formatDateTime(logRecord['time']),
- new SpanElement()..classes = ['message']
- ..text = logRecord["message"].valueAsString
- ]
- ).toList();
+ children = _logs
+ .where(_shouldBeVisible)
+ .map((logRecord) => new DivElement()
+ ..classes = ['logItem', logRecord['level'].name]
+ ..children = [
+ new SpanElement()
+ ..classes = ['level']
+ ..text = logRecord['level'].name,
+ new SpanElement()
+ ..classes = ['time']
+ ..text = Utils.formatDateTime(logRecord['time']),
+ new SpanElement()
+ ..classes = ['message']
+ ..text = logRecord["message"].valueAsString
+ ])
+ .toList();
}
bool _shouldBeVisible(Map record) => _level.compareTo(record['level']) <= 0;
« no previous file with comments | « runtime/observatory/lib/src/elements/logging.dart ('k') | runtime/observatory/lib/src/elements/megamorphiccache_ref.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698