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

Unified Diff: pkg/analysis_server/tool/spec/to_html.dart

Issue 1310263003: Reformat code to minimize churn (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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
« no previous file with comments | « pkg/analysis_server/tool/spec/text_formatter.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/tool/spec/to_html.dart
diff --git a/pkg/analysis_server/tool/spec/to_html.dart b/pkg/analysis_server/tool/spec/to_html.dart
index 005ce6a0de969f53d36717ddf68ddecde4aa5bbd..3d35b010585d2188f342632ea679331e1674bed3 100644
--- a/pkg/analysis_server/tool/spec/to_html.dart
+++ b/pkg/analysis_server/tool/spec/to_html.dart
@@ -125,6 +125,7 @@ abstract class HtmlMixin {
void box(void callback()) {
element('div', {'class': 'box'}, callback);
}
+
void br() => element('br', {});
void dd(void callback()) => element('dd', {}, callback);
void dl(void callback()) => element('dl', {}, callback);
@@ -140,6 +141,7 @@ abstract class HtmlMixin {
}
return element('h2', {'class': cls}, callback);
}
+
void h3(void callback()) => element('h3', {}, callback);
void h4(void callback()) => element('h4', {}, callback);
void h5(void callback()) => element('h5', {}, callback);
@@ -151,6 +153,7 @@ abstract class HtmlMixin {
void link(String id, void callback()) {
element('a', {'href': '#$id'}, callback);
}
+
void p(void callback()) => element('p', {}, callback);
void pre(void callback()) => element('pre', {}, callback);
void title(void callback()) => element('title', {}, callback);
@@ -526,8 +529,11 @@ class ToHtmlVisitor extends HierarchicalApiVisitor
h5(() => write("Requests"));
element('ul', {}, () {
for (var request in requests) {
- element('li', {}, () => link('request_${request.longMethod}', () =>
- write(request.method)));
+ element(
+ 'li',
+ {},
+ () => link(
+ 'request_${request.longMethod}', () => write(request.method)));
}
});
}
@@ -537,8 +543,11 @@ class ToHtmlVisitor extends HierarchicalApiVisitor
element('div', {'class': 'subindex'}, () {
element('ul', {}, () {
for (var notification in notifications) {
- element('li', {}, () => link('notification_${notification.longEvent}',
- () => write(notification.event)));
+ element(
+ 'li',
+ {},
+ () => link('notification_${notification.longEvent}',
+ () => write(notification.event)));
}
});
});
@@ -571,8 +580,11 @@ class ToHtmlVisitor extends HierarchicalApiVisitor
element('div', {'class': 'subindex'}, () {
element('ul', {}, () {
for (var refactoring in refactorings) {
- element('li', {}, () => link('refactoring_${refactoring.kind}',
- () => write(refactoring.kind)));
+ element(
+ 'li',
+ {},
+ () => link('refactoring_${refactoring.kind}',
+ () => write(refactoring.kind)));
}
});
});
« no previous file with comments | « pkg/analysis_server/tool/spec/text_formatter.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698