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

Unified Diff: pkg/analysis_server/tool/spec/from_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 | « no previous file | pkg/analysis_server/tool/spec/to_html.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/tool/spec/from_html.dart
diff --git a/pkg/analysis_server/tool/spec/from_html.dart b/pkg/analysis_server/tool/spec/from_html.dart
index 671b1245a71103ef442eff59a3e5c6d346904f7d..b2caf4bd1b49c5b7004b7c1eb90b6c5d0051bb95 100644
--- a/pkg/analysis_server/tool/spec/from_html.dart
+++ b/pkg/analysis_server/tool/spec/from_html.dart
@@ -394,7 +394,9 @@ Request requestFromHtml(dom.Element html, String context) {
checkName(html, 'request', context);
String method = html.attributes['method'];
context = '$context.${method != null ? method : 'method'}';
- checkAttributes(html, ['method'], context);
+ checkAttributes(html, ['method'], context,
+ optionalAttributes: ['experimental']);
+ bool experimental = html.attributes['experimental'] == 'true';
TypeDecl params;
TypeDecl result;
recurse(html, context, {
@@ -405,7 +407,8 @@ Request requestFromHtml(dom.Element html, String context) {
result = typeObjectFromHtml(child, '$context.result');
}
});
- return new Request(domainName, method, params, result, html);
+ return new Request(domainName, method, params, result, html,
+ experimental: experimental);
}
/**
« no previous file with comments | « no previous file | pkg/analysis_server/tool/spec/to_html.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698