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

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

Issue 2787013002: Add experimental attribute to requests (recreated due to git failure) (Closed)
Patch Set: Created 3 years, 9 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/from_html.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 5debe85f9789e9761c7e69e3836fdf74b36add69..e9401960fe786cb3363d8afd0240dab8a2848efc 100644
--- a/pkg/analysis_server/tool/spec/to_html.dart
+++ b/pkg/analysis_server/tool/spec/to_html.dart
@@ -329,11 +329,13 @@ class ToHtmlVisitor extends HierarchicalApiVisitor
h5(() => write("Requests"));
element('ul', {}, () {
for (var request in requests) {
- element(
- 'li',
- {},
- () => link(
- 'request_${request.longMethod}', () => write(request.method)));
+ if (!request.experimental) {
+ element(
+ 'li',
+ {},
+ () => link('request_${request.longMethod}',
+ () => write(request.method)));
+ }
}
});
}
@@ -551,6 +553,9 @@ class ToHtmlVisitor extends HierarchicalApiVisitor
@override
void visitRequest(Request request) {
+ if (request.experimental) {
+ return;
+ }
dt('request', () {
anchor('request_${request.longMethod}', () {
write(request.longMethod);
« no previous file with comments | « pkg/analysis_server/tool/spec/from_html.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698