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

Unified Diff: runtime/observatory/lib/src/elements/error_view.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/error_view.dart
diff --git a/runtime/observatory/lib/src/elements/error_view.dart b/runtime/observatory/lib/src/elements/error_view.dart
index 92fee0867a029eed7ec12ddff7d86edb02d5642f..7d9363709ca7c4437c796e9e0d446bd582090a22 100644
--- a/runtime/observatory/lib/src/elements/error_view.dart
+++ b/runtime/observatory/lib/src/elements/error_view.dart
@@ -14,25 +14,26 @@ import 'package:observatory/src/elements/nav/notify.dart';
import 'package:observatory/src/elements/nav/top_menu.dart';
import 'package:observatory/src/elements/view_footer.dart';
-class ErrorViewElement extends HtmlElement implements Renderable{
+class ErrorViewElement extends HtmlElement implements Renderable {
static const tag = const Tag<ErrorViewElement>('error-view',
- dependencies: const [NavTopMenuElement.tag,
- NavNotifyElement.tag,
- ViewFooterElement.tag]);
+ dependencies: const [
+ NavTopMenuElement.tag,
+ NavNotifyElement.tag,
+ ViewFooterElement.tag
+ ]);
RenderingScheduler _r;
- Stream<RenderedEvent<ErrorViewElement>> get onRendered =>
- _r.onRendered;
+ Stream<RenderedEvent<ErrorViewElement>> get onRendered => _r.onRendered;
M.Error _error;
M.NotificationRepository _notifications;
M.Error get error => _error;
- factory ErrorViewElement(M.NotificationRepository notifications,
- M.Error error,
- {RenderingQueue queue}) {
+ factory ErrorViewElement(
+ M.NotificationRepository notifications, M.Error error,
+ {RenderingQueue queue}) {
assert(error != null);
assert(notifications != null);
ErrorViewElement e = document.createElement(tag.name);
@@ -69,17 +70,16 @@ class ErrorViewElement extends HtmlElement implements Renderable{
new HeadingElement.h1()
..text = 'Error: ${_kindToString(_error.kind)}',
new BRElement(),
- new DivElement()..classes = ['well']
- ..children = [
- new PreElement()..text = error.message
- ]
+ new DivElement()
+ ..classes = ['well']
+ ..children = [new PreElement()..text = error.message]
],
new ViewFooterElement(queue: _r.queue)
];
}
static String _kindToString(M.ErrorKind kind) {
- switch(kind) {
+ switch (kind) {
case M.ErrorKind.unhandledException:
return 'Unhandled Exception';
case M.ErrorKind.languageError:
« no previous file with comments | « runtime/observatory/lib/src/elements/error_ref.dart ('k') | runtime/observatory/lib/src/elements/eval_box.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698