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

Unified Diff: pkg/analysis_server/lib/src/status/pages.dart

Issue 2914383002: Expose the exceptions info in the diagnostics page. (Closed)
Patch Set: review comments Created 3 years, 7 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: pkg/analysis_server/lib/src/status/pages.dart
diff --git a/pkg/analysis_server/lib/src/status/pages.dart b/pkg/analysis_server/lib/src/status/pages.dart
index 096032f23923cc01369775e114f2099cbc5ba982..ae6f898e5c77a017fce5798c09758d899f8a84cd 100644
--- a/pkg/analysis_server/lib/src/status/pages.dart
+++ b/pkg/analysis_server/lib/src/status/pages.dart
@@ -149,6 +149,16 @@ abstract class Page {
}
}
+ void pre(void gen(), {String classes}) {
+ if (classes != null) {
+ buf.write('<pre class="$classes">');
+ } else {
+ buf.write('<pre>');
+ }
+ gen();
+ buf.writeln('</pre>');
+ }
+
void blankslate(String str) {
div(() => buf.writeln(str), classes: 'blankslate');
}

Powered by Google App Engine
This is Rietveld 408576698